Merge branch 'kvm-userspace-hypercall' into HEAD
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 20 Jan 2025 12:03:06 +0000 (07:03 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 20 Jan 2025 12:03:06 +0000 (07:03 -0500)
commit3eba032bb720931c6fe8ab3575d0c9bf05bcf8c5
tree2a510303e54d26d86b4b6c29c5c014009193b5e1
parent43f640f4b941d0f31114d2e0bd9b70c86b7d84ca
parentc50be1c9457d6c7486a7f592aa96ffbb8c3cde96
Merge branch 'kvm-userspace-hypercall' into HEAD

Make the completion of hypercalls go through the complete_hypercall
function pointer argument, no matter if the hypercall exits to
userspace or not.  Previously, the code assumed that KVM_HC_MAP_GPA_RANGE
specifically went to userspace, and all the others did not; the new code
need not special case KVM_HC_MAP_GPA_RANGE and in fact does not care at
all whether there was an exit to userspace or not.
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/svm/sev.c
arch/x86/kvm/x86.c
arch/x86/kvm/x86.h