[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4BE6705C.3000206@zytor.com>
Date: Sun, 09 May 2010 01:20:44 -0700
From: "H. Peter Anvin" <hpa@...or.com>
To: mingo@...hat.com, hpa@...or.com, linux-kernel@...r.kernel.org,
greg@...ah.com, hjanssen@...rosoft.com, ksrinivasan@...ell.com,
dtor@...are.com, tglx@...utronix.de, akataria@...are.com
CC: linux-tip-commits@...r.kernel.org
Subject: Re: [tip:x86/cpu] Modify the VMware balloon driver for the new x86_hyper
API
On 05/09/2010 01:19 AM, tip-bot for H. Peter Anvin wrote:
>
> MODULE_AUTHOR("VMware, Inc.");
> MODULE_DESCRIPTION("VMware Memory Control (Balloon) Driver");
> @@ -767,7 +767,7 @@ static int __init vmballoon_init(void)
> * Check if we are running on VMware's hypervisor and bail out
> * if we are not.
> */
> - if (!vmware_platform())
> + if (x86_hyper != &x86_hyper_vmware)
> return -ENODEV;
>
> vmballoon_wq = create_freezeable_workqueue("vmmemctl");
Note: I did not change the existing code, but this is an example of a
very common bug: the appropriate error code for "hardware is not
present" is ENXIO, not ENODEV.
-hpa
--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists