diff options
-rw-r--r-- | drivers/xen/xenbus/xenbus_client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/xen/xenbus/xenbus_client.c b/drivers/xen/xenbus/xenbus_client.c index ec097d6f964d..01d59e66565d 100644 --- a/drivers/xen/xenbus/xenbus_client.c +++ b/drivers/xen/xenbus/xenbus_client.c | |||
@@ -45,6 +45,7 @@ | |||
45 | #include <xen/grant_table.h> | 45 | #include <xen/grant_table.h> |
46 | #include <xen/xenbus.h> | 46 | #include <xen/xenbus.h> |
47 | #include <xen/xen.h> | 47 | #include <xen/xen.h> |
48 | #include <xen/features.h> | ||
48 | 49 | ||
49 | #include "xenbus_probe.h" | 50 | #include "xenbus_probe.h" |
50 | 51 | ||
@@ -743,7 +744,7 @@ static const struct xenbus_ring_ops ring_ops_hvm = { | |||
743 | 744 | ||
744 | void __init xenbus_ring_ops_init(void) | 745 | void __init xenbus_ring_ops_init(void) |
745 | { | 746 | { |
746 | if (xen_pv_domain()) | 747 | if (!xen_feature(XENFEAT_auto_translated_physmap)) |
747 | ring_ops = &ring_ops_pv; | 748 | ring_ops = &ring_ops_pv; |
748 | else | 749 | else |
749 | ring_ops = &ring_ops_hvm; | 750 | ring_ops = &ring_ops_hvm; |