* [PATCH 01/14] asmlinkage, kvm: Make kvm_rebooting visible
@ 2014-02-08 7:51 Andi Kleen
2014-02-08 8:13 ` Paolo Bonzini
2014-02-10 23:46 ` Andrew Morton
0 siblings, 2 replies; 3+ messages in thread
From: Andi Kleen @ 2014-02-08 7:51 UTC (permalink / raw)
To: akpm; +Cc: x86, linux-kernel, Andi Kleen, gleb, pbonzini, kvm
kvm_rebooting is referenced from assembler code, thus
needs to be visible.
Cc: gleb@redhat.com
Cc: pbonzini@redhat.com
Cc: kvm@vger.kernel.org
Signed-off-by: Andi Kleen <ak@linux.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 03a0381..b5ec7fb 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -102,7 +102,7 @@ static void kvm_release_pfn_dirty(pfn_t pfn);
static void mark_page_dirty_in_slot(struct kvm *kvm,
struct kvm_memory_slot *memslot, gfn_t gfn);
-bool kvm_rebooting;
+__visible bool kvm_rebooting;
EXPORT_SYMBOL_GPL(kvm_rebooting);
static bool largepages_enabled = true;
--
1.8.5.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 01/14] asmlinkage, kvm: Make kvm_rebooting visible
2014-02-08 7:51 [PATCH 01/14] asmlinkage, kvm: Make kvm_rebooting visible Andi Kleen
@ 2014-02-08 8:13 ` Paolo Bonzini
2014-02-10 23:46 ` Andrew Morton
1 sibling, 0 replies; 3+ messages in thread
From: Paolo Bonzini @ 2014-02-08 8:13 UTC (permalink / raw)
To: Andi Kleen, akpm; +Cc: x86, linux-kernel, gleb, kvm
Il 08/02/2014 08:51, Andi Kleen ha scritto:
> kvm_rebooting is referenced from assembler code, thus
> needs to be visible.
>
> Cc: gleb@redhat.com
> Cc: pbonzini@redhat.com
> Cc: kvm@vger.kernel.org
> Signed-off-by: Andi Kleen <ak@linux.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 03a0381..b5ec7fb 100644
> --- a/virt/kvm/kvm_main.c
> +++ b/virt/kvm/kvm_main.c
> @@ -102,7 +102,7 @@ static void kvm_release_pfn_dirty(pfn_t pfn);
> static void mark_page_dirty_in_slot(struct kvm *kvm,
> struct kvm_memory_slot *memslot, gfn_t gfn);
>
> -bool kvm_rebooting;
> +__visible bool kvm_rebooting;
> EXPORT_SYMBOL_GPL(kvm_rebooting);
>
> static bool largepages_enabled = true;
>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 01/14] asmlinkage, kvm: Make kvm_rebooting visible
2014-02-08 7:51 [PATCH 01/14] asmlinkage, kvm: Make kvm_rebooting visible Andi Kleen
2014-02-08 8:13 ` Paolo Bonzini
@ 2014-02-10 23:46 ` Andrew Morton
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Morton @ 2014-02-10 23:46 UTC (permalink / raw)
To: Andi Kleen; +Cc: x86, linux-kernel, gleb, pbonzini, kvm
On Sat, 8 Feb 2014 08:51:57 +0100 Andi Kleen <ak@linux.intel.com> wrote:
> kvm_rebooting is referenced from assembler code, thus
> needs to be visible.
So I read the gcc page and looked at the __visible definition but I
still don't really get it. What goes wrong if the __visible isn't
present on these referenced-from-asm identifiers?
> Cc: gleb@redhat.com
> Cc: pbonzini@redhat.com
Grumble. Email addresses go into commits with display names and <>.
At least, 89.3% of them do. Some sucker has to go through these and
fix them up. I'd prefer it not be me ;)
>
> ...
>
> --- a/virt/kvm/kvm_main.c
> +++ b/virt/kvm/kvm_main.c
> @@ -102,7 +102,7 @@ static void kvm_release_pfn_dirty(pfn_t pfn);
> static void mark_page_dirty_in_slot(struct kvm *kvm,
> struct kvm_memory_slot *memslot, gfn_t gfn);
>
> -bool kvm_rebooting;
> +__visible bool kvm_rebooting;
> EXPORT_SYMBOL_GPL(kvm_rebooting);
>
> static bool largepages_enabled = true;
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-02-10 23:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-08 7:51 [PATCH 01/14] asmlinkage, kvm: Make kvm_rebooting visible Andi Kleen
2014-02-08 8:13 ` Paolo Bonzini
2014-02-10 23:46 ` Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox