mirror of
https://github.com/adulau/aha.git
synced 2025-01-03 22:53:18 +00:00
KVM: MMU: Fix is_empty_shadow_page() check
The check is only looking at one of two possible empty ptes. Signed-off-by: Avi Kivity <avi@qumranet.com>
This commit is contained in:
parent
ebb0e6264c
commit
3c9155106d
1 changed files with 1 additions and 1 deletions
|
@ -658,7 +658,7 @@ static int is_empty_shadow_page(u64 *spt)
|
|||
u64 *end;
|
||||
|
||||
for (pos = spt, end = pos + PAGE_SIZE / sizeof(u64); pos != end; pos++)
|
||||
if (*pos != shadow_trap_nonpresent_pte) {
|
||||
if (is_shadow_present_pte(*pos)) {
|
||||
printk(KERN_ERR "%s: %p %llx\n", __func__,
|
||||
pos, *pos);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue