]> 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)
commit553c2a351ef856ffecb5b982a06ff1e80657b9b5
treed16c6beeb8b8123f0185e31bfd1a8dda3ae5b028
parent9dfa92f8e328b03e85d849dbf511f7f10c58bd59
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