History

KVM: X86: Introduce KVM_HC_MAP_GPA_RANGE hypercall

This hypercall is used by the SEV guest to notify a change in the page encryption status to the hypervisor. The hypercall should be invoked only when the encryption attribute is changed from encrypted -> decrypted and vice versa. By default all guest pages are considered encrypted. The hypercall exits to userspace to manage the guest shared regions and integrate with the userspace VMM's migration code.

Ashish Kalra committed 5 years ago

Commit 0dbb1121 parent e3cb6fa9 files · +123 −0Browse files

Showing the changes to include/uapi (2 of 9 files). Show all

Unified · Split

2 files
  1. include/uapi/linux/kvm.h +1 −0
  2. include/uapi/linux/kvm_para.h +1 −0
include/uapi/linux/kvm.h+1−0
@@ -1085,6 +1085,7 @@ struct kvm_ppc_resize_hpt { · 1084 unmodified lines
10851085 #define KVM_CAP_PTP_KVM 198
10861086 #define KVM_CAP_HYPERV_ENFORCE_CPUID 199
10871087 #define KVM_CAP_SREGS2 200
1088+#define KVM_CAP_EXIT_HYPERCALL 201
10881089
10891090 #ifdef KVM_CAP_IRQ_ROUTING
10901091
include/uapi/linux/kvm_para.h+1−0
@@ -29,6 +29,7 @@ · 28 unmodified lines
2929 #define KVM_HC_CLOCK_PAIRING 9
3030 #define KVM_HC_SEND_IPI 10
3131 #define KVM_HC_SCHED_YIELD 11
32+#define KVM_HC_MAP_GPA_RANGE 12
3233
3334 /*
3435 * hypercalls use architecture specific