提交 be3e9cf3 编写于 作者: M Mukesh Rathor 提交者: Konrad Rzeszutek Wilk

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: NMukesh Rathor <mukesh.rathor@oracle.com>
Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: NDavid Vrabel <david.vrabel@citrix.com>
Acked-by: NStefano Stabellini <stefano.stabellini@eu.citrix.com>
上级 6926f6d6
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
#include <xen/grant_table.h> #include <xen/grant_table.h>
#include <xen/xenbus.h> #include <xen/xenbus.h>
#include <xen/xen.h> #include <xen/xen.h>
#include <xen/features.h>
#include "xenbus_probe.h" #include "xenbus_probe.h"
...@@ -743,7 +744,7 @@ static const struct xenbus_ring_ops ring_ops_hvm = { ...@@ -743,7 +744,7 @@ static const struct xenbus_ring_ops ring_ops_hvm = {
void __init xenbus_ring_ops_init(void) void __init xenbus_ring_ops_init(void)
{ {
if (xen_pv_domain()) if (!xen_feature(XENFEAT_auto_translated_physmap))
ring_ops = &ring_ops_pv; ring_ops = &ring_ops_pv;
else else
ring_ops = &ring_ops_hvm; ring_ops = &ring_ops_hvm;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册