aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-11-13 20:04:36 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2017-11-13 20:04:36 -0500
commit43ff2f4db9d0f76452b77cfa645f02b471143b24 (patch)
treee325c1498c9945ec29c5b960008426e2f9592092 /drivers
parent13e57da4a5eaae0b400cf06c37b7e9b5347b7335 (diff)
parent418492ba40b2c2bbdaf1a169aac5b1673bde8189 (diff)
Merge branch 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 platform updates from Ingo Molnar: "The main changes in this cycle were: - a refactoring of the early virt init code by merging 'struct x86_hyper' into 'struct x86_platform' and 'struct x86_init', which allows simplifications and also the addition of a new ->guest_late_init() callback. (Juergen Gross) - timer_setup() conversion of the UV code (Kees Cook)" * 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/virt/xen: Use guest_late_init to detect Xen PVH guest x86/virt, x86/platform: Add ->guest_late_init() callback to hypervisor_x86 structure x86/virt, x86/acpi: Add test for ACPI_FADT_NO_VGA x86/virt: Add enum for hypervisors to replace x86_hyper x86/virt, x86/platform: Merge 'struct x86_hyper' into 'struct x86_platform' and 'struct x86_init' x86/platform/UV: Convert timers to use timer_setup()
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hv/vmbus_drv.c2
-rw-r--r--drivers/input/mouse/vmmouse.c10
-rw-r--r--drivers/misc/vmw_balloon.c2
3 files changed, 6 insertions, 8 deletions
diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c
index 937801ac2fe0..2cd134dd94d2 100644
--- a/drivers/hv/vmbus_drv.c
+++ b/drivers/hv/vmbus_drv.c
@@ -1534,7 +1534,7 @@ static int __init hv_acpi_init(void)
1534{ 1534{
1535 int ret, t; 1535 int ret, t;
1536 1536
1537 if (x86_hyper != &x86_hyper_ms_hyperv) 1537 if (x86_hyper_type != X86_HYPER_MS_HYPERV)
1538 return -ENODEV; 1538 return -ENODEV;
1539 1539
1540 init_completion(&probe_event); 1540 init_completion(&probe_event);
diff --git a/drivers/input/mouse/vmmouse.c b/drivers/input/mouse/vmmouse.c
index 0f586780ceb4..1ae5c1ef3f5b 100644
--- a/drivers/input/mouse/vmmouse.c
+++ b/drivers/input/mouse/vmmouse.c
@@ -316,11 +316,9 @@ static int vmmouse_enable(struct psmouse *psmouse)
316/* 316/*
317 * Array of supported hypervisors. 317 * Array of supported hypervisors.
318 */ 318 */
319static const struct hypervisor_x86 *vmmouse_supported_hypervisors[] = { 319static enum x86_hypervisor_type vmmouse_supported_hypervisors[] = {
320 &x86_hyper_vmware, 320 X86_HYPER_VMWARE,
321#ifdef CONFIG_KVM_GUEST 321 X86_HYPER_KVM,
322 &x86_hyper_kvm,
323#endif
324}; 322};
325 323
326/** 324/**
@@ -331,7 +329,7 @@ static bool vmmouse_check_hypervisor(void)
331 int i; 329 int i;
332 330
333 for (i = 0; i < ARRAY_SIZE(vmmouse_supported_hypervisors); i++) 331 for (i = 0; i < ARRAY_SIZE(vmmouse_supported_hypervisors); i++)
334 if (vmmouse_supported_hypervisors[i] == x86_hyper) 332 if (vmmouse_supported_hypervisors[i] == x86_hyper_type)
335 return true; 333 return true;
336 334
337 return false; 335 return false;
diff --git a/drivers/misc/vmw_balloon.c b/drivers/misc/vmw_balloon.c
index 1e688bfec567..9047c0a529b2 100644
--- a/drivers/misc/vmw_balloon.c
+++ b/drivers/misc/vmw_balloon.c
@@ -1271,7 +1271,7 @@ static int __init vmballoon_init(void)
1271 * Check if we are running on VMware's hypervisor and bail out 1271 * Check if we are running on VMware's hypervisor and bail out
1272 * if we are not. 1272 * if we are not.
1273 */ 1273 */
1274 if (x86_hyper != &x86_hyper_vmware) 1274 if (x86_hyper_type != X86_HYPER_VMWARE)
1275 return -ENODEV; 1275 return -ENODEV;
1276 1276
1277 for (is_2m_pages = 0; is_2m_pages < VMW_BALLOON_NUM_PAGE_SIZES; 1277 for (is_2m_pages = 0; is_2m_pages < VMW_BALLOON_NUM_PAGE_SIZES;