diff options
author | Lara Lazier <laramglazier@gmail.com> | 2021-07-05 10:17:59 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-07-09 18:21:33 +0200 |
commit | 481077b28b3edee0d6c6cfbd48774270f819aaf1 (patch) | |
tree | d923a07368c3583b2e50cee8f409d8ce97ae01bd /target/i386/svm.h | |
parent | bca6eb34f0318b1b8211c9d227d5439e2d44286d (diff) | |
download | qemu-481077b28b3edee0d6c6cfbd48774270f819aaf1.zip |
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>
Diffstat (limited to 'target/i386/svm.h')
-rw-r--r-- | target/i386/svm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/i386/svm.h b/target/i386/svm.h index 5098733053..adc058dc76 100644 --- a/target/i386/svm.h +++ b/target/i386/svm.h @@ -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; |