vmw_balloon.c (9938b04472d5c59f8bd8152a548533a8599596a2) vmw_balloon.c (03b2a320b19f1424e9ac9c21696be9c60b6d0d93)
1/*
2 * VMware Balloon driver.
3 *
4 * Copyright (C) 2000-2014, VMware, Inc. All Rights Reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; version 2 of the License and no later version.

--- 1257 unchanged lines hidden (view full) ---

1266static int __init vmballoon_init(void)
1267{
1268 int error;
1269 unsigned is_2m_pages;
1270 /*
1271 * Check if we are running on VMware's hypervisor and bail out
1272 * if we are not.
1273 */
1/*
2 * VMware Balloon driver.
3 *
4 * Copyright (C) 2000-2014, VMware, Inc. All Rights Reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; version 2 of the License and no later version.

--- 1257 unchanged lines hidden (view full) ---

1266static int __init vmballoon_init(void)
1267{
1268 int error;
1269 unsigned is_2m_pages;
1270 /*
1271 * Check if we are running on VMware's hypervisor and bail out
1272 * if we are not.
1273 */
1274 if (x86_hyper != &x86_hyper_vmware)
1274 if (x86_hyper_type != X86_HYPER_VMWARE)
1275 return -ENODEV;
1276
1277 for (is_2m_pages = 0; is_2m_pages < VMW_BALLOON_NUM_PAGE_SIZES;
1278 is_2m_pages++) {
1279 INIT_LIST_HEAD(&balloon.page_sizes[is_2m_pages].pages);
1280 INIT_LIST_HEAD(&balloon.page_sizes[is_2m_pages].refused_pages);
1281 }
1282

--- 36 unchanged lines hidden ---
1275 return -ENODEV;
1276
1277 for (is_2m_pages = 0; is_2m_pages < VMW_BALLOON_NUM_PAGE_SIZES;
1278 is_2m_pages++) {
1279 INIT_LIST_HEAD(&balloon.page_sizes[is_2m_pages].pages);
1280 INIT_LIST_HEAD(&balloon.page_sizes[is_2m_pages].refused_pages);
1281 }
1282

--- 36 unchanged lines hidden ---