Skip to content

Commit be3e9cf

Browse files
Mukesh Rathorkonradwilk
authored andcommitted
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>
1 parent 6926f6d commit be3e9cf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/xen/xenbus/xenbus_client.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
#include <xen/grant_table.h>
4646
#include <xen/xenbus.h>
4747
#include <xen/xen.h>
48+
#include <xen/features.h>
4849

4950
#include "xenbus_probe.h"
5051

@@ -743,7 +744,7 @@ static const struct xenbus_ring_ops ring_ops_hvm = {
743744

744745
void __init xenbus_ring_ops_init(void)
745746
{
746-
if (xen_pv_domain())
747+
if (!xen_feature(XENFEAT_auto_translated_physmap))
747748
ring_ops = &ring_ops_pv;
748749
else
749750
ring_ops = &ring_ops_hvm;

0 commit comments

Comments
 (0)