aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/virt
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
commit8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch)
treea8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /drivers/virt
parent406089d01562f1e2bf9f089fd7637009ebaad589 (diff)
Patched in Tegra support.
Diffstat (limited to 'drivers/virt')
-rw-r--r--drivers/virt/Kconfig1
-rw-r--r--drivers/virt/fsl_hypervisor.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/virt/Kconfig b/drivers/virt/Kconfig
index 99ebdde590f..2dcdbc9364d 100644
--- a/drivers/virt/Kconfig
+++ b/drivers/virt/Kconfig
@@ -15,7 +15,6 @@ if VIRT_DRIVERS
15config FSL_HV_MANAGER 15config FSL_HV_MANAGER
16 tristate "Freescale hypervisor management driver" 16 tristate "Freescale hypervisor management driver"
17 depends on FSL_SOC 17 depends on FSL_SOC
18 select EPAPR_PARAVIRT
19 help 18 help
20 The Freescale hypervisor management driver provides several services 19 The Freescale hypervisor management driver provides several services
21 to drivers and applications related to the Freescale hypervisor: 20 to drivers and applications related to the Freescale hypervisor:
diff --git a/drivers/virt/fsl_hypervisor.c b/drivers/virt/fsl_hypervisor.c
index d294f67d6f8..3d9162151fd 100644
--- a/drivers/virt/fsl_hypervisor.c
+++ b/drivers/virt/fsl_hypervisor.c
@@ -706,7 +706,6 @@ static const struct file_operations fsl_hv_fops = {
706 .poll = fsl_hv_poll, 706 .poll = fsl_hv_poll,
707 .read = fsl_hv_read, 707 .read = fsl_hv_read,
708 .unlocked_ioctl = fsl_hv_ioctl, 708 .unlocked_ioctl = fsl_hv_ioctl,
709 .compat_ioctl = fsl_hv_ioctl,
710}; 709};
711 710
712static struct miscdevice fsl_hv_misc_dev = { 711static struct miscdevice fsl_hv_misc_dev = {
@@ -796,6 +795,9 @@ static int has_fsl_hypervisor(void)
796 struct device_node *node; 795 struct device_node *node;
797 int ret; 796 int ret;
798 797
798 if (!(mfmsr() & MSR_GS))
799 return 0;
800
799 node = of_find_node_by_path("/hypervisor"); 801 node = of_find_node_by_path("/hypervisor");
800 if (!node) 802 if (!node)
801 return 0; 803 return 0;