Commit 1edd270
committed
KVM: remove kvm_arch_gmem_prepare_needed()
JIRA: https://issues.redhat.com/browse/RHEL-32435
It is enough to return 0 if a guest need not do any preparation.
This is in fact how sev_gmem_prepare() works for non-SNP guests,
and it extends naturally to Intel hosts: the x86 callback for
gmem_prepare is optional and returns 0 if not defined.
Reviewed-by: Michael Roth <michael.roth@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 7239ed7)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>1 parent 0e4e12d commit 1edd270
File tree
3 files changed
+3
-16
lines changed- arch/x86/kvm
- include/linux
- virt/kvm
3 files changed
+3
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13616 | 13616 | | |
13617 | 13617 | | |
13618 | 13618 | | |
13619 | | - | |
13620 | | - | |
13621 | | - | |
13622 | | - | |
13623 | | - | |
13624 | 13619 | | |
13625 | 13620 | | |
13626 | 13621 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2445 | 2445 | | |
2446 | 2446 | | |
2447 | 2447 | | |
2448 | | - | |
2449 | 2448 | | |
2450 | 2449 | | |
2451 | 2450 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
42 | 35 | | |
43 | 36 | | |
44 | 37 | | |
| |||
0 commit comments