Miscellaneous x86 emulator fixes
Status from this message: Applied all, thanks.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest8 patches 3 repliesApplied
- v18 patches 1 replySuperseded
Changes in v2 from the cover letter
- move IOPL permission checking functions into emulate.c
- rename them to more intuitive names
- fix tr segment limit checking
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | KVM: Add group8 instruction decoding.arch/ | +6 | 0 replies | |
| 2/8 | KVM: Add group9 instruction decoding.arch/ | +7 | 0 replies | |
| 3/8 | KVM: Add Virtual-8086 mode of emulation.arch/ arch/ arch/ | +10 | 0 replies | |
| 4/8 | KVM: fix memory access during x86 emulation.arch/ arch/ arch/ +4 more | +142 | 0 replies | |
| 5/8 | KVM: Check IOPL level during io instruction emulation.arch/ arch/ arch/ | +87 | 0 replies | |
| 6/8 | KVM: Fix popf emulation.arch/ | +54 | 0 replies | |
| 7/8 | KVM: Check CPL level during privilege instruction emulation.arch/ | +20 | 0 replies | |
| 8/8 | KVM: Add LOCK prefix validity checking.arch/ | +48 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/8] Miscellaneous x86 emulator fixes
X86 emulator fails to do permission/correctness checking like real CPU does for some instruction. This patch series fixes some of those discrepancies.
Changelog:
v1->v2
- move IOPL permission checking functions into emulate.c
- rename them to more intuitive names
- fix tr segment limit checking
Gleb Natapov (8):
KVM: Add group8 instruction decoding.
KVM: Add group9 instruction decoding.
KVM: Add Virtual-8086 mode of emulation.
KVM: fix memory access during x86 emulation.
KVM: Check IOPL level during io instruction emulation.
KVM: Fix popf emulation.
KVM: Check CPL level during privilege instruction emulation.
KVM: Add LOCK prefix validity checking.
arch/x86/include/asm/kvm_emulate.h | 15 ++- arch/x86/include/asm/kvm_host.h | 8 +- arch/x86/kvm/emulate.c | 286 ++++++++++++++++++++++++++++-------- arch/x86/kvm/mmu.c | 17 +-- arch/x86/kvm/mmu.h | 6 + arch/x86/kvm/paging_tmpl.h | 11 +- arch/x86/kvm/x86.c | 144 +++++++++++++----- 7 files changed, 368 insertions(+), 119 deletions(-)