On Mon, Jun 25, 2018 at 02:08:14PM +0100, Julien Grall wrote:
> Currently, the toolstack is considering Arm guest always PV. However,
> they are very similar to PVH because HW virtualization extension are used
> and QEMU is not started. So switch Arm guest type to PVH.
> 
> Furthermore, the default type for Arm in xl will now be PVH to allow
> smooth transition for user.
> 
> Signed-off-by: Julien Grall <julien.gr...@arm.com>
> 
> ---
> 
> This was discussed at Xen Summit and also in various thread on
> xen-devel. The latest one was when Andrew sent a patch to deny guest creation
> on Arm with XEN_DOMCTL_CDF_hap unset.
> 
> I suspect we first implemented Arm guest as PV in libxl because PVH was
> non-existent and the type was easier to avoid spawning QEMU. Note that
> Linux and Xen are already considering Arm guest as PVH.
> 
> This patch is denying the creation of PV guest on Arm. This will have an
> impact on any toolstack selecting PV for Arm (e.g libvirt) or anyone
> using 'type="pv"' in libxl configuration file.
> 
> I am not entirely sure whether this is the best solution, any opinions?
> ---
>  docs/man/xl.cfg.pod.5.in |  3 ++-
>  tools/libxl/libxl_arm.c  | 10 +++++++++-
>  tools/xl/xl_parse.c      |  4 ++++
>  3 files changed, 15 insertions(+), 2 deletions(-)
> 
> diff --git a/docs/man/xl.cfg.pod.5.in b/docs/man/xl.cfg.pod.5.in
> index 47d88243b1..2c2af01515 100644
> --- a/docs/man/xl.cfg.pod.5.in
> +++ b/docs/man/xl.cfg.pod.5.in
> @@ -86,7 +86,8 @@ guest operating systems. This is the default.
>  
>  Specifies that this is to be an PVH domain. That is a lightweight HVM-like
>  guest without a device model and without many of the emulated devices
> -available to HVM guests. Note that this mode requires a PVH aware kernel.
> +available to HVM guests. Note that this mode requires a PVH aware kernel on
> +x86.

Have we ever advertised on ARM which guest type users should set? Are
they aware of the fact that it is PV in toolstack and HVM in Xen?

If users are oblivious to the underlying implementation, I think we can
skip telling them PVH in ARM world.

Wei.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to