diff options
author | Paolo Bonzini | 2022-02-25 15:42:06 +0100 |
---|---|---|
committer | Paolo Bonzini | 2022-03-15 11:26:20 +0100 |
commit | 991ec97625e1281ba22bd81426a7226a76baf60a (patch) | |
tree | d30558e13ba3207b9f2b7a6886c43d89e512b4fc /linux-headers/linux/psci.h | |
parent | kvm/msi: do explicit commit when adding msi routes (diff) | |
download | qemu-991ec97625e1281ba22bd81426a7226a76baf60a.tar.gz qemu-991ec97625e1281ba22bd81426a7226a76baf60a.tar.xz qemu-991ec97625e1281ba22bd81426a7226a76baf60a.zip |
target/i386: only include bits in pg_mode if they are not ignored
LA57/PKE/PKS is only relevant in 64-bit mode, and NXE is only relevant if
PAE is in use. Since there is code that checks PG_MODE_LA57 to determine
the canonicality of addresses, make sure that the bit is not set by
mistake in 32-bit mode. While it would not be a problem because 32-bit
addresses by definition fit in both 48-bit and 57-bit address spaces,
it is nicer if get_pg_mode() actually returns whether a feature is enabled,
and it allows a few simplifications in the page table walker.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'linux-headers/linux/psci.h')
0 files changed, 0 insertions, 0 deletions