Skip to content

Emulator segment checks

Avi Kivity kvm 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7KVM: x86 emulator: Add helpers for memory access using segmented addressesarch/x86/kvm/emulate.c+52 -230 replies
2/7KVM: x86 emulator: move invlpg emulation into a functionarch/x86/kvm/emulate.c+10 -40 replies
3/7KVM: x86 emulator: change address linearization to return an error codearch/x86/kvm/emulate.c+39 -80 replies
4/7KVM: x86 emulator: pass access size and read/write intent to linearize()arch/x86/kvm/emulate.c+6 -50 replies
5/7KVM: x86 emulator: move linearize() downwardsarch/x86/kvm/emulate.c+15 -150 replies
6/7KVM: x86 emulator: move desc_limit_scaled()arch/x86/kvm/emulate.c+7 -70 replies
7/7KVM: x86 emulator: implement segment permission checksarch/x86/kvm/emulate.c+63 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] Emulator segment checks

This patchset implements segment checks for the emulator. These are needed for guests which can both get the emulator to execute an instruction from an unprivilged context, and also rely on segmentation for security.

Avi Kivity (7):
KVM: x86 emulator: Add helpers for memory access using segmented
addresses
KVM: x86 emulator: move invlpg emulation into a function
KVM: x86 emulator: change address linearization to return an error
code
KVM: x86 emulator: pass access size and read/write intent to
linearize()
KVM: x86 emulator: move linearize() downwards
KVM: x86 emulator: move desc_limit_scaled()
KVM: x86 emulator: implement segment permission checks

 arch/x86/kvm/emulate.c |  222 ++++++++++++++++++++++++++++++++++++++----------
 1 files changed, 176 insertions(+), 46 deletions(-)