[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 05/14] target-i386: Enable control registers for
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 05/14] target-i386: Enable control registers for MPX |
Date: |
Thu, 9 Jul 2015 15:12:43 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 |
On 09/07/2015 10:17, Richard Henderson wrote:
> + /* ??? Vol 1, 16.5.6 Intel MPX and SMM says that IA32_BNDCFGS
> + is saved at offset 7ED0. Vol 3, 34.4.1.1, Table 32-2, has
> + 7EA0-7ED7 as "reserved". What's this, and what's really
> + supposed to happen? */
> x86_stq_phys(cs, sm_state + 0x7ed0, env->efer);
The format that QEMU (and KVM) are using is based on AMD's format for
the state save area. In my copy of the AMD manual this is Table 10-1.
Reserved areas in there are 0xfef0-0xfefb and 0xff04-0xff1f.
I definitely should update KVM to save/restore BNDCFGS. Thanks for the
heads up!
Paolo
- [Qemu-devel] [PATCH 00/14] target-i386: Implement MPX extension, Richard Henderson, 2015/07/09
- [Qemu-devel] [PATCH 01/14] target-i386: Split fxsave/fxrstor implementation, Richard Henderson, 2015/07/09
- [Qemu-devel] [PATCH 02/14] target-i386: Rearrange processing of 0F 01, Richard Henderson, 2015/07/09
- [Qemu-devel] [PATCH 03/14] target-i386: Add XSAVE extension, Richard Henderson, 2015/07/09
- [Qemu-devel] [PATCH 04/14] target-i386: Implement XSAVEOPT, Richard Henderson, 2015/07/09
- [Qemu-devel] [PATCH 05/14] target-i386: Enable control registers for MPX, Richard Henderson, 2015/07/09
- [Qemu-devel] [PATCH 06/14] target-i386: Perform set/reset_inhibit_irq inline, Richard Henderson, 2015/07/09
- [Qemu-devel] [PATCH 07/14] target-i386: Split up gen_lea_modrm, Richard Henderson, 2015/07/09
- [Qemu-devel] [PATCH 08/14] target-i386: Implement BNDMK, Richard Henderson, 2015/07/09
- [Qemu-devel] [PATCH 09/14] target-i386: Implement BNDMOV, Richard Henderson, 2015/07/09
- [Qemu-devel] [PATCH 11/14] target-i386: Update BNDSTATUS for exceptions raised by BOUND, Richard Henderson, 2015/07/09
- [Qemu-devel] [PATCH 12/14] target-i386: Implement BNDLDX, BNDSTX, Richard Henderson, 2015/07/09
- [Qemu-devel] [PATCH 10/14] target-i386: Implement BNDCL, BNDCU, BNDCN, Richard Henderson, 2015/07/09
- [Qemu-devel] [PATCH 13/14] target-i386: Clear bndregs during legacy near jumps, Richard Henderson, 2015/07/09