From patchwork Fri Jan 10 00:43:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Wood X-Patchwork-Id: 3463941 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D0EDB9F374 for ; Fri, 10 Jan 2014 00:43:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CE65E2011B for ; Fri, 10 Jan 2014 00:43:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C51302010F for ; Fri, 10 Jan 2014 00:43:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753753AbaAJAn2 (ORCPT ); Thu, 9 Jan 2014 19:43:28 -0500 Received: from mail-bn1blp0187.outbound.protection.outlook.com ([207.46.163.187]:50460 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752526AbaAJAn0 (ORCPT ); Thu, 9 Jan 2014 19:43:26 -0500 Received: from snotra.am.freescale.net (192.88.168.49) by BY2PR03MB396.namprd03.prod.outlook.com (10.141.141.26) with Microsoft SMTP Server (TLS) id 15.0.847.13; Fri, 10 Jan 2014 00:43:23 +0000 From: Scott Wood To: Gleb Natapov , Paolo Bonzini CC: , , Scott Wood , Stephen Hemminger , Alexander Graf Subject: [PATCH] kvm: Provide kvm_vcpu_eligible_for_directed_yield() stub Date: Thu, 9 Jan 2014 18:43:16 -0600 Message-ID: <1389314596-18814-1-git-send-email-scottwood@freescale.com> X-Mailer: git-send-email 1.8.3.2 MIME-Version: 1.0 X-Originating-IP: [192.88.168.49] X-ClientProxiedBy: DM2PR02CA005.namprd02.prod.outlook.com (10.141.52.143) To BY2PR03MB396.namprd03.prod.outlook.com (10.141.141.26) X-Forefront-PRVS: 00872B689F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009001)(189002)(199002)(46102001)(74366001)(48376002)(80022001)(65816001)(87976001)(77156001)(77096001)(66066001)(33646001)(85306002)(4396001)(47736001)(47976001)(50986001)(59766001)(50226001)(49866001)(54316002)(51856001)(79102001)(53806001)(42186004)(87266001)(56776001)(87286001)(76482001)(47776003)(63696002)(31966008)(74662001)(69226001)(76796001)(88136002)(81342001)(81686001)(74502001)(47446002)(77982001)(85852003)(19580395003)(83072002)(80976001)(83322001)(19580405001)(74706001)(50466002)(89996001)(74876001)(36756003)(76786001)(76176001)(81542001)(92566001)(81816001)(56816005)(90146001)(92726001)(62966002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR03MB396; H:snotra.am.freescale.net; CLIP:192.88.168.49; FPR:; RD:InfoNoRecords; MX:1; A:1; LANG:en; X-OriginatorOrg: freescale.com Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_50, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Commit 7940876e1330671708186ac3386aa521ffb5c182 ("kvm: make local functions static") broke KVM PPC builds due to removing (rather than moving) the stub version of kvm_vcpu_eligible_for_directed_yield(). This patch reintroduces it. Signed-off-by: Scott Wood Cc: Stephen Hemminger Cc: Alexander Graf --- virt/kvm/kvm_main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 4733fa1..f896665 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -1771,6 +1771,11 @@ static bool kvm_vcpu_eligible_for_directed_yield(struct kvm_vcpu *vcpu) return eligible; } +#else +static bool kvm_vcpu_eligible_for_directed_yield(struct kvm_vcpu *vcpu) +{ + return true; +} #endif void kvm_vcpu_on_spin(struct kvm_vcpu *me)