kernel
kernel copied to clipboard
[6.6-velinux] Intel: SierreForest MAXPHYADDR support
Description
This is to backport the following 2 upstream commits to support SRF MAXPHYADDR. SRF doesn't support 5-level EPT but has 52-bit physical address(MAXPHYADDR). With some specific Qemu version, this can cause KVM infinite loop when guest BIOS puts RAM memory or 64-bit PCI BAR in high physical address.
b628cb523c65420031b310050a3733aa7fbe2e88 KVM: x86: Advertise max mappable GPA in CPUID.0x80000008.GuestPhysBits 980b8bc01938c8bcc9742c1051f64b5f0ed178ac KVM: selftests: x86: Prioritize getting max_gfn from GuestPhysBits
Test
- Sanity Test, build and run VM
- On SRF platform, passthrough a NIC which has a 64-bit BAR to VM, the VM can boot successfully without hang.