mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
target/i386: Added MSRPM and IOPM size check
The address of the last entry in the MSRPM and in the IOPM must be smaller than the largest physical address. (APM2 15.10-15.11) Signed-off-by: Lara Lazier <laramglazier@gmail.com> Message-Id: <20210705081802.18960-2-laramglazier@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
bca6eb34f0
commit
481077b28b
2 changed files with 18 additions and 0 deletions
|
@ -137,6 +137,9 @@
|
|||
|
||||
#define SVM_CR0_RESERVED_MASK 0xffffffff00000000U
|
||||
|
||||
#define SVM_MSRPM_SIZE (1ULL << 13)
|
||||
#define SVM_IOPM_SIZE ((1ULL << 13) + 1)
|
||||
|
||||
struct QEMU_PACKED vmcb_control_area {
|
||||
uint16_t intercept_cr_read;
|
||||
uint16_t intercept_cr_write;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue