|
@@ -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 = {
|
|
|
|
|
|
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;
|