kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Geoff Levand <geoff@infradead.org>
Cc: Marcelo Tosatti <mtosatti@redhat.com>,
	kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu
Subject: Re: [PATCH 3/7] kvm: Move kvm_spurious_fault dec out of x86
Date: Fri, 05 Apr 2013 09:56:17 +0200	[thread overview]
Message-ID: <515E83A1.6010208@redhat.com> (raw)
In-Reply-To: <395f9961a11debede220990c020e5d011cdf40b1.1365117838.git.geoff@infradead.org>

Il 05/04/2013 01:33, Geoff Levand ha scritto:
> The routine kvm_spurious_fault() is a common kvm routine, so
> move its declaration from arch/x86/include/asm/kvm_host.h to
> arch/arm/include/asm/kvm_host.h.
> 
> Fixes sparse warning when building on arm64:
> 
>   virt/kvm/kvm_main.c:warning: symbol 'kvm_spurious_fault' was not declared. Should it be static?

Please move it to arch/x86/kvm/x86.c instead.

Thanks!

Paolo

> Signed-off-by: Geoff Levand <geoff@infradead.org>
> ---
>  arch/x86/include/asm/kvm_host.h |    6 ------
>  include/linux/kvm_host.h        |    7 +++++++
>  2 files changed, 7 insertions(+), 6 deletions(-)
> 
> diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
> index 40fc39f..da7c126 100644
> --- a/arch/x86/include/asm/kvm_host.h
> +++ b/arch/x86/include/asm/kvm_host.h
> @@ -964,12 +964,6 @@ enum {
>  #define HF_IRET_MASK		(1 << 4)
>  #define HF_GUEST_MASK		(1 << 5) /* VCPU is in guest-mode */
>  
> -/*
> - * Hardware virtualization extension instructions may fault if a
> - * reboot turns off virtualization while processes are running.
> - * Trap the fault and ignore the instruction if that happens.
> - */
> -asmlinkage void kvm_spurious_fault(void);
>  extern bool kvm_rebooting;
>  
>  #define ____kvm_handle_fault_on_reboot(insn, cleanup_insn)	\
> diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
> index 8ef2212..4bfb062 100644
> --- a/include/linux/kvm_host.h
> +++ b/include/linux/kvm_host.h
> @@ -1031,6 +1031,13 @@ static inline bool kvm_check_request(int req, struct kvm_vcpu *vcpu)
>  	}
>  }
>  
> +/*
> + * Hardware virtualization extension instructions may fault if a
> + * reboot turns off virtualization while processes are running.
> + * Trap the fault and ignore the instruction if that happens.
> + */
> +asmlinkage void kvm_spurious_fault(void);
> +
>  #ifdef CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT
>  
>  static inline void kvm_vcpu_set_in_spin_loop(struct kvm_vcpu *vcpu, bool val)
> 


  parent reply	other threads:[~2013-04-05  7:56 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-04 23:33 [PATCH 0/7] KVM minor fixups Geoff Levand
2013-04-04 23:33 ` [PATCH 1/7] kvm: Make local routines static Geoff Levand
2013-04-04 23:33 ` [PATCH 7/7] kvm/arm: Remove unused kvm_arch_set_memory_region Geoff Levand
2013-04-04 23:58   ` Christoffer Dall
2013-04-04 23:33 ` [PATCH 5/7] kvm/arm: Fix missing include build error Geoff Levand
2013-04-04 23:51   ` Christoffer Dall
2013-04-05  0:04     ` Geoff Levand
2013-04-05  0:15       ` Christoffer Dall
2013-04-05  0:24         ` Geoff Levand
2013-04-04 23:33 ` [PATCH 6/7] kvm/arm: Make force_vm_exit static Geoff Levand
2013-04-04 23:57   ` Christoffer Dall
2013-04-04 23:33 ` [PATCH 4/7] kvm: Move kvm_rebooting dec out of x86 Geoff Levand
2013-04-04 23:33 ` [PATCH 2/7] kvm: Move vm_list, kvm_lock dec's " Geoff Levand
2013-04-04 23:33 ` [PATCH 3/7] kvm: Move kvm_spurious_fault dec " Geoff Levand
2013-04-05  7:48   ` Paolo Bonzini
2013-04-05  7:56   ` Paolo Bonzini [this message]
2013-04-04 23:53 ` [PATCH 0/7] KVM minor fixups Christoffer Dall
2013-04-04 23:57   ` Geoff Levand
2013-04-05  0:01     ` Christoffer Dall
2013-04-05  7:56 ` Paolo Bonzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=515E83A1.6010208@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=geoff@infradead.org \
    --cc=kvm@vger.kernel.org \
    --cc=kvmarm@lists.cs.columbia.edu \
    --cc=mtosatti@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).