[RFC] 5-level paging Support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

Now both qemu and kvm support 5-level paging.

We can start qemu with a "cpu,+la57" to set 57-bit vitrual address space.

So VM can be aware that it need to enable  5-level paging.


We can also set another "cpu,phys-bits=52" to set the VM physical address space.

Actually, VM can still turn on 5 level paging even without "phys-bits=52", yet this means

the guest physical address width are limited, meaning less practical benefits.


In to support 5-level paging, I suggest to add  two attribute for the domain cpu element in libvirt.

<cpu la57='yes', phys-bits='52'\>

Here we need to be able to set  phys-bits  directly, because it is potentially migration sensitive.

If la57='no',  libvirt will ignore phys-bits, no matter whether hardware support la57.

If la57='yes',  libvirt will probe the host capability, and will throw error if hardware does support la57.

If la57='yes',  even phys-bits less than 52, libvirt will also pass it to qemu though less practical benefits.



[info]

[1] [Qemu-devel] [PATCH] x86: implement la57 paging mode

[2] [Qemu-devel] [PATCH v4 2/5] x86: Allow physical address bits to be set



BR

Shaohe Feng

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux