Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xen/pvh: Piggyback on PVHVM XenBus.

PVH is a PV guest with a twist - there are certain things
that work in it like HVM and some like PV. For the XenBus
mechanism we want to use the PVHVM mechanism.

Signed-off-by: Mukesh Rathor <mukesh.rathor@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>

authored by

Mukesh Rathor and committed by
Konrad Rzeszutek Wilk
be3e9cf3 6926f6d6

+2 -1
+2 -1
drivers/xen/xenbus/xenbus_client.c
··· 45 45 #include <xen/grant_table.h> 46 46 #include <xen/xenbus.h> 47 47 #include <xen/xen.h> 48 + #include <xen/features.h> 48 49 49 50 #include "xenbus_probe.h" 50 51 ··· 744 743 745 744 void __init xenbus_ring_ops_init(void) 746 745 { 747 - if (xen_pv_domain()) 746 + if (!xen_feature(XENFEAT_auto_translated_physmap)) 748 747 ring_ops = &ring_ops_pv; 749 748 else 750 749 ring_ops = &ring_ops_hvm;