Re: [PATCH] target/i386: Added consistency checks for CR3

2021-07-23 Thread Paolo Bonzini
On 23/07/21 13:27, Lara Lazier wrote: All MBZ in CR3 must be zero (APM2 15.5) Added checks in both helper_vmrun and helper_write_crN. When EFER.LMA is zero the upper 32 bits needs to be zeroed. Signed-off-by: Lara Lazier --- target/i386/tcg/sysemu/misc_helper.c | 7 +++ target/i386/tcg/

[PATCH] target/i386: Added consistency checks for CR3

2021-07-23 Thread Lara Lazier
All MBZ in CR3 must be zero (APM2 15.5) Added checks in both helper_vmrun and helper_write_crN. When EFER.LMA is zero the upper 32 bits needs to be zeroed. Signed-off-by: Lara Lazier --- target/i386/tcg/sysemu/misc_helper.c | 7 +++ target/i386/tcg/sysemu/svm_helper.c | 10 +++--- 2 fi