Commit 8046d29
committed
KVM: x86/mmu: Reject direct bits in gpa passed to KVM_PRE_FAULT_MEMORY
Only let userspace pass the same addresses that were used in KVM_SET_USER_MEMORY_REGION
(or KVM_SET_USER_MEMORY_REGION2); gpas in the the upper half of the address space
are an implementation detail of TDX and KVM.
Extracted from a patch by Sean Christopherson <[email protected]>.
Signed-off-by: Paolo Bonzini <[email protected]>1 parent aa2024c commit 8046d29
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4903 | 4903 | | |
4904 | 4904 | | |
4905 | 4905 | | |
| 4906 | + | |
| 4907 | + | |
| 4908 | + | |
4906 | 4909 | | |
4907 | 4910 | | |
4908 | 4911 | | |
| |||
0 commit comments