diff options
| author | Sean Christopherson <seanjc@google.com> | 2026-02-24 17:20:49 -0800 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-03-02 16:06:49 -0800 |
| commit | e2138c4a5be1e50d75281136bdc3e709cb07ec5e (patch) | |
| tree | 3bbb0777a0250c90de08b6a6a6954e00003e2931 /include/linux | |
| parent | 4f09e62afcd6c7a2c3428a3453ced7e56475dc70 (diff) | |
KVM: x86: Add helpers to prepare kvm_run for userspace MMIO exit
Add helpers to fill kvm_run for userspace MMIO exits to deduplicate a
variety of code, and to allow for a cleaner return path in
emulator_read_write().
Opportunistically add a KVM_BUG_ON() to ensure the caller is limiting the
length of a single MMIO access to 8 bytes (the largest size userspace is
prepared to handled, as the ABI was baked before things like MOVDQ came
along).
No functional change intended.
Cc: Rick Edgecombe <rick.p.edgecombe@intel.com>
Cc: Binbin Wu <binbin.wu@linux.intel.com>
Cc: Xiaoyao Li <xiaoyao.li@intel.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Michael Roth <michael.roth@amd.com>
Tested-by: Tom Lendacky <thomas.lendacky@gmail.com>
Tested-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
Link: https://patch.msgid.link/20260225012049.920665-15-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
