OSDN Git Service

target/i386: check CPUID_PAE to determine 36 bit processor address space
authorAni Sinha <anisinha@redhat.com>
Tue, 12 Sep 2023 12:06:50 +0000 (17:36 +0530)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 25 Oct 2023 15:35:14 +0000 (17:35 +0200)
commitd83005424774fcfb85aec76effac169cadb375fd
tree79d6554c01ff60b79a6ce0ee1f68307836f91745
parente000687f1266d031528758271d0b16e288394ede
target/i386: check CPUID_PAE to determine 36 bit processor address space

PAE mode in x86 supports 36 bit address space. Check the PAE CPUID on the
guest processor and set phys_bits to 36 if PAE feature is set. This is in
addition to checking the presence of PSE36 CPUID feature for setting 36 bit
phys_bits.

Signed-off-by: Ani Sinha <anisinha@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-ID: <20230912120650.371781-1-anisinha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c