]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: Fail on MMIO completion for nested posted interrupts
authorJim Mattson <jmattson@google.com>
Fri, 4 Jun 2021 17:26:05 +0000 (10:26 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Jun 2021 17:09:31 +0000 (13:09 -0400)
commit439d4a57a1fc07ea24ca9f1613b39bd2b9966158
treed631f551bb1dd91d85148f0a7e54eb616487dba4
parent9e74e774891379d7cbf1571988b1e4c0ba6b36f2
KVM: nVMX: Fail on MMIO completion for nested posted interrupts

When the kernel has no mapping for the vmcs02 virtual APIC page,
userspace MMIO completion is necessary to process nested posted
interrupts. This is not a configuration that KVM supports. Rather than
silently ignoring the problem, try to exit to userspace with
KVM_INTERNAL_ERROR.

Note that the event that triggers this error is consumed as a
side-effect of a call to kvm_check_nested_events. On some paths
(notably through kvm_vcpu_check_block), the error is dropped. In any
case, this is an incremental improvement over always ignoring the
error.

Signed-off-by: Jim Mattson <jmattson@google.com>
Message-Id: <20210604172611.281819-7-jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c