]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Extract posted interrupt support to separate files
authorXiaoyao Li <xiaoyao.li@intel.com>
Wed, 23 Sep 2020 18:31:11 +0000 (11:31 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Sep 2020 11:57:38 +0000 (07:57 -0400)
commitcf6bfcd9c2a290597b86d71a3615bfcd3754145e
treed16c6beeb8b8123f0185e31bfd1a8dda3ae5b028
parent5f56cd613fe26c8d773cd49c78e1023c83f94253
KVM: VMX: Extract posted interrupt support to separate files

Extract the posted interrupt code so that it can be reused for Trust
Domain Extensions (TDX), which requires posted interrupts and can use
KVM VMX's implementation almost verbatim.  TDX is different enough from
raw VMX that it is highly desirable to implement the guts of TDX in a
separate file, i.e. reusing posted interrupt code by shoving TDX support
into vmx.c would be a mess.

Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Co-developed-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20200923183112.3030-2-sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/Makefile
arch/x86/kvm/vmx/posted_intr.c [new file with mode: 0644]
arch/x86/kvm/vmx/posted_intr.h [new file with mode: 0644]
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/vmx/vmx.h