From patchwork Mon Nov 11 21:22:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 21451 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f70.google.com (mail-qa0-f70.google.com [209.85.216.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1CFB123FBA for ; Mon, 11 Nov 2013 21:22:08 +0000 (UTC) Received: by mail-qa0-f70.google.com with SMTP id f11sf4612182qae.5 for ; Mon, 11 Nov 2013 13:22:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=N4jInKayC99O8wMDH0mvppEZ2Pj9+EhJQQvVAkNXjYE=; b=CH0WU5IICYOwrNUP9B6qqPP9fc3A1wCGeRMfIG5LhcqWWHLyBAw+R8Pss2BxpuCojY 5fo5hFDs/Cfch1BsfzajjZbVZ2CFotkvdPMPDjggtutxupCr6r6coPQMj4T+B44OnJmm S8Z4+tBwmNvtvnxKPRyK4wofWog2BiGouz/6+BIUfZwwtlUpkozn4hJR4NSGdf0UNp9h LBvRS36mouqbgIHH2/di3UVwN02o3ezlPwBTvu4xUzKCUDPF+FML/kOcUQFqe4Iop/94 MYDwspqREeOaSa3TDdXT3tFXGOGecgW8IyTMO5dAsGiHRRsn5OpyJPIg9qXP3YWiwByK nZUQ== X-Gm-Message-State: ALoCoQmS20UPGKaXRG2JvhTMprc1db40KH9coVaQeH7MgmaZO1F65u/nR3kNfxKwW1mZK9vf9sAR X-Received: by 10.58.137.135 with SMTP id qi7mr10573932veb.25.1384204928275; Mon, 11 Nov 2013 13:22:08 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.129.101 with SMTP id nv5ls1108833qeb.53.gmail; Mon, 11 Nov 2013 13:22:08 -0800 (PST) X-Received: by 10.52.248.197 with SMTP id yo5mr21863773vdc.0.1384204928163; Mon, 11 Nov 2013 13:22:08 -0800 (PST) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id uy8si10377956vcb.130.2013.11.11.13.22.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 11 Nov 2013 13:22:08 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id if17so3718354vcb.13 for ; Mon, 11 Nov 2013 13:22:08 -0800 (PST) X-Received: by 10.220.253.66 with SMTP id mz2mr26075611vcb.10.1384204927967; Mon, 11 Nov 2013 13:22:07 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp117807vcz; Mon, 11 Nov 2013 13:22:07 -0800 (PST) X-Received: by 10.180.79.230 with SMTP id m6mr13773917wix.19.1384204927000; Mon, 11 Nov 2013 13:22:07 -0800 (PST) Received: from mnementh.archaic.org.uk (1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.1.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id za4si10356373wjc.96.2013.11.11.13.22.06 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 11 Nov 2013 13:22:06 -0800 (PST) Received-SPF: neutral (google.com: 2001:8b0:1d0::1 is neither permitted nor denied by best guess record for domain of pm215@archaic.org.uk) client-ip=2001:8b0:1d0::1; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1Vfyvq-00029X-Mh; Mon, 11 Nov 2013 21:22:02 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Andreas Tobler , Paolo Bonzini , Gleb Natapov , kvm@vger.kernel.org, Anthony Liguori Subject: [PATCH for-1.7] target-i386: Fix build by providing stub kvm_arch_get_supported_cpuid() Date: Mon, 11 Nov 2013 21:22:02 +0000 Message-Id: <1384204922-8250-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 --- 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; +}