mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
target/i386: add guest-phys-bits cpu property
Allows to set guest-phys-bits (cpuid leaf 80000008, eax[23:16]) via -cpu $model,guest-phys-bits=$nr. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-ID: <20240318155336.156197-3-kraxel@redhat.com> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
85fa9acda8
commit
513ba32dcc
3 changed files with 33 additions and 1 deletions
|
@ -2027,6 +2027,14 @@ struct ArchCPU {
|
|||
/* Number of physical address bits supported */
|
||||
uint32_t phys_bits;
|
||||
|
||||
/*
|
||||
* Number of guest physical address bits available. Usually this is
|
||||
* identical to host physical address bits. With NPT or EPT 4-level
|
||||
* paging, guest physical address space might be restricted to 48 bits
|
||||
* even if the host cpu supports more physical address bits.
|
||||
*/
|
||||
uint32_t guest_phys_bits;
|
||||
|
||||
/* in order to simplify APIC support, we leave this pointer to the
|
||||
user */
|
||||
struct DeviceState *apic_state;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue