]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit8888cdd0996c2d51cd417f9a60a282c034f3fa28
treed16c6beeb8b8123f0185e31bfd1a8dda3ae5b028
parent127037591c84e8d550e8951d274a5e291d3ed56f
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