提交 43df95c4 编写于 作者: J Jeremy Fitzhardinge

xenfs: enable for HVM domains too

Signed-off-by: NJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
上级 59151001
...@@ -65,7 +65,7 @@ static struct file_system_type xenfs_type = { ...@@ -65,7 +65,7 @@ static struct file_system_type xenfs_type = {
static int __init xenfs_init(void) static int __init xenfs_init(void)
{ {
if (xen_pv_domain()) if (xen_domain())
return register_filesystem(&xenfs_type); return register_filesystem(&xenfs_type);
printk(KERN_INFO "XENFS: not registering filesystem on non-xen platform\n"); printk(KERN_INFO "XENFS: not registering filesystem on non-xen platform\n");
...@@ -74,7 +74,7 @@ static int __init xenfs_init(void) ...@@ -74,7 +74,7 @@ static int __init xenfs_init(void)
static void __exit xenfs_exit(void) static void __exit xenfs_exit(void)
{ {
if (xen_pv_domain()) if (xen_domain())
unregister_filesystem(&xenfs_type); unregister_filesystem(&xenfs_type);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册