qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH for-1.7] target-i386: Fix build by providing stub kvm_arch_get_supported_cpuid()
@ 2013-11-11 21:22 Peter Maydell
  2013-11-11 21:28 ` Andreas Tobler
  2013-11-11 22:19 ` Paolo Bonzini
  0 siblings, 2 replies; 35+ messages in thread
From: Peter Maydell @ 2013-11-11 21:22 UTC (permalink / raw)
  To: qemu-devel
  Cc: Gleb Natapov, kvm, patches, Andreas Tobler, Anthony Liguori,
	Paolo Bonzini

Fix build failures with clang when KVM is not enabled by
providing a stub version of kvm_arch_get_supported_cpuid().

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
I wouldn't be surprised if this also affected debug gcc
builds with KVM disabled, but I haven't checked.

Incidentally, since this is an x86 specific function its
prototype should be moved into target-i386/kvm_i386.h, but
that's a separate patch.

 target-i386/kvm-stub.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/target-i386/kvm-stub.c b/target-i386/kvm-stub.c
index 11429c4..18fe938 100644
--- a/target-i386/kvm-stub.c
+++ b/target-i386/kvm-stub.c
@@ -16,3 +16,9 @@ bool kvm_allows_irq0_override(void)
 {
     return 1;
 }
+
+uint32_t kvm_arch_get_supported_cpuid(KVMState *env, uint32_t function,
+                                      uint32_t index, int reg)
+{
+    return 0;
+}
-- 
1.7.11.4

^ permalink raw reply related	[flat|nested] 35+ messages in thread

end of thread, other threads:[~2013-11-13 22:24 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-11 21:22 [Qemu-devel] [PATCH for-1.7] target-i386: Fix build by providing stub kvm_arch_get_supported_cpuid() Peter Maydell
2013-11-11 21:28 ` Andreas Tobler
2013-11-11 22:19 ` Paolo Bonzini
2013-11-11 22:38   ` Peter Maydell
2013-11-11 23:11     ` Paolo Bonzini
2013-11-11 23:21       ` Anthony Liguori
2013-11-12  7:09         ` Paolo Bonzini
2013-11-12 11:07         ` Peter Maydell
2013-11-12 12:09           ` Paolo Bonzini
2013-11-12 12:16             ` Peter Maydell
2013-11-12 13:12               ` Paolo Bonzini
2013-11-12 13:21                 ` Peter Maydell
2013-11-12 13:26                   ` Gleb Natapov
2013-11-12 13:23                 ` Gleb Natapov
2013-11-12 13:57                   ` Paolo Bonzini
2013-11-12 14:09                     ` Gleb Natapov
2013-11-12 14:14                       ` Peter Maydell
2013-11-12 14:57                       ` Paolo Bonzini
2013-11-12 15:13                         ` Peter Maydell
2013-11-12 15:21                           ` Paolo Bonzini
2013-11-12 15:32                             ` Peter Maydell
2013-11-12 15:58                               ` Paolo Bonzini
2013-11-12 16:08                                 ` Peter Maydell
2013-11-12 17:04                                   ` Anthony Liguori
2013-11-12 17:20                                     ` Peter Maydell
2013-11-12 18:54                                     ` Richard Henderson
2013-11-12 18:57                                       ` Peter Maydell
2013-11-12 19:15                                         ` Stefan Weil
2013-11-12 22:53                                       ` Paolo Bonzini
2013-11-13  2:27                                         ` Richard Henderson
2013-11-13  7:25                                           ` Paolo Bonzini
2013-11-13 22:23                                             ` Peter Maydell
2013-11-13  7:26                                           ` Gleb Natapov
2013-11-12 14:01                 ` Peter Maydell
2013-11-11 23:23       ` Peter Maydell

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).