[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <52002899.6060209@gmail.com>
Date: Mon, 05 Aug 2013 15:35:05 -0700
From: David Daney <ddaney.cavm@...il.com>
To: Andi Kleen <andi@...stfloor.org>, Andi Kleen <ak@...ux.intel.com>
CC: gleb@...hat.com, kvm@...r.kernel.org, pbonzini@...hat.com,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] kvm: Make kvm_rebooting visible
On 08/05/2013 03:12 PM, Andi Kleen wrote:
> From: Andi Kleen <ak@...ux.intel.com>
>
> kvm_rebooting is referenced from assembler code, thus
> needs to be visible.
>
> Signed-off-by: Andi Kleen <ak@...ux.intel.com>
> ---
> virt/kvm/kvm_main.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
> index 1580dd4..eff6abd 100644
> --- a/virt/kvm/kvm_main.c
> +++ b/virt/kvm/kvm_main.c
> @@ -95,7 +95,7 @@ static void hardware_disable_all(void);
>
> static void kvm_io_bus_destroy(struct kvm_io_bus *bus);
>
> -bool kvm_rebooting;
> +__visible bool kvm_rebooting;
> EXPORT_SYMBOL_GPL(kvm_rebooting);
How many of these are there kernel wide?
Could you do something like this instead:
DEFINE_AND_EXPORT_GPL(bool, kvm_rebooting);
The definition of DEFINE_AND_EXPORT_GPL(_type, _name) is left as an
exercise for the reader.
David Daney
--
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