Skip to content

target-i386: Implement MPX extension

Richard Henderson qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14target-i386: Split fxsave/fxrstor implementationtarget-i386/fpu_helper.c target-i386/helper.h target-i386/translate.c+90 -630 replies
2/14target-i386: Rearrange processing of 0F 01target-i386/translate.c+247 -2230 replies
3/14target-i386: Add XSAVE extensiontarget-i386/cpu.c target-i386/cpu.h target-i386/fpu_helper.c +4 more+245 -261 reply
4/14target-i386: Implement XSAVEOPTtarget-i386/cpu.c target-i386/fpu_helper.c target-i386/helper.h +1 more+49 -92 replies
5/14target-i386: Enable control registers for MPXtarget-i386/Makefile.objs target-i386/cpu.c target-i386/cpu.h +7 more+179 -167 replies
6/14target-i386: Perform set/reset_inhibit_irq inlinetarget-i386/cc_helper.c target-i386/helper.h target-i386/translate.c+28 -210 replies
7/14target-i386: Split up gen_lea_modrmtarget-i386/translate.c+85 -1140 replies
8/14target-i386: Implement BNDMKtarget-i386/translate.c+53 -10 replies
9/14target-i386: Implement BNDMOVtarget-i386/translate.c+72 -10 replies
10/14target-i386: Implement BNDCL, BNDCU, BNDCNtarget-i386/helper.h target-i386/mpx_helper.c target-i386/translate.c+55 -10 replies
11/14target-i386: Update BNDSTATUS for exceptions raised by BOUNDtarget-i386/mem_helper.c+6 -00 replies
12/14target-i386: Implement BNDLDX, BNDSTXtarget-i386/helper.h target-i386/mpx_helper.c target-i386/translate.c+158 -00 replies
13/14target-i386: Clear bndregs during legacy near jumpstarget-i386/translate.c+25 -00 replies
14/14target-i386: Enable XCR0 features for user-modetarget-i386/cpu.c+20 -23 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/14] target-i386: Implement MPX extension

I'm still in the process of testing this, as there's no code written for it yet and hardware to compare against doesn't start shipping until (probably) August.

But in the meantime there are a number of holes that I found in XSAVE support that might affect KVM, and one question wrt SMM support that affects MPX. So I thought I'd get some feedback on this sooner than later.

This patch set depends on the addressing cleanup patchset that I just posted. It ought to depend on Pavel Dovgalyuk's exception handling cleanup patchset, but I haven't included that in my tree.

Comments?

r~

Richard Henderson (14):
target-i386: Split fxsave/fxrstor implementation
target-i386: Rearrange processing of 0F 01
target-i386: Add XSAVE extension
target-i386: Implement XSAVEOPT
target-i386: Enable control registers for MPX
target-i386: Perform set/reset_inhibit_irq inline
target-i386: Split up gen_lea_modrm
target-i386: Implement BNDMK
target-i386: Implement BNDMOV
target-i386: Implement BNDCL, BNDCU, BNDCN
target-i386: Update BNDSTATUS for exceptions raised by BOUND
target-i386: Implement BNDLDX, BNDSTX
target-i386: Clear bndregs during legacy near jumps
target-i386: Enable XCR0 features for user-mode

 target-i386/Makefile.objs |    2 +-
 target-i386/cc_helper.c   |   10 -
 target-i386/cpu.c         |   81 ++--
 target-i386/cpu.h         |   23 +-
 target-i386/fpu_helper.c  |  354 ++++++++++++---
 target-i386/helper.c      |   17 +-
 target-i386/helper.h      |   17 +-
 target-i386/kvm.c         |   21 +-
 target-i386/mem_helper.c  |    6 +
 target-i386/misc_helper.c |    9 +
 target-i386/mpx_helper.c  |  152 +++++++
 target-i386/smm_helper.c  |    4 +
 target-i386/translate.c   | 1063 ++++++++++++++++++++++++++++++---------------
 13 files changed, 1297 insertions(+), 462 deletions(-)
 create mode 100644 target-i386/mpx_helper.c
Signature · 1 line
2.4.3