summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/kvm/lib/userfaultfd_util.c
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2024-01-22 15:53:15 -0800
committerPaolo Bonzini <pbonzini@redhat.com>2024-04-19 12:15:20 -0400
commit949019b98289b801edce7e92e022a0e95fc4cc3b (patch)
tree0b5e499bc5c5fbd05cb4cd585e6fcf719f1b389d /tools/testing/selftests/kvm/lib/userfaultfd_util.c
parent7fa5e2929198fe728fb6ad9cbc9e395185867743 (diff)
KVM: x86/mmu: Track shadow MMIO value on a per-VM basis
TDX will use a different shadow PTE entry value for MMIO from VMX. Add a member to kvm_arch and track value for MMIO per-VM instead of a global variable. By using the per-VM EPT entry value for MMIO, the existing VMX logic is kept working. Introduce a separate setter function so that guest TD can use a different value later. Signed-off-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com> Message-Id: <229a18434e5d83f45b1fcd7bf1544d79db1becb6.1705965635.git.isaku.yamahata@intel.com> Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com> Reviewed-by: Binbin Wu <binbin.wu@linux.intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/testing/selftests/kvm/lib/userfaultfd_util.c')
0 files changed, 0 insertions, 0 deletions