Re: [PATCH for-9.1 v5 3/3] kvm: add support for guest physical bits

2024-03-27 Thread Zhao Liu
Hi Paolo, On Mon, Mar 25, 2024 at 03:14:22PM +0100, Paolo Bonzini wrote: > Date: Mon, 25 Mar 2024 15:14:22 +0100 > From: Paolo Bonzini > Subject: [PATCH for-9.1 v5 3/3] kvm: add support for guest physical bits > X-Mailer: git-send-email 2.44.0 [snip] > static bool kvm_cpu_rea

[PATCH for-9.1 v5 3/3] kvm: add support for guest physical bits

2024-03-25 Thread Paolo Bonzini
From: Gerd Hoffmann Query kvm for supported guest physical address bits, in cpuid function 8008, eax[23:16]. Usually this is identical to host physical address bits. With NPT or EPT being used this might be restricted to 48 (max 4-level paging address space size) even if the host cpu