From patchwork Mon Jul 6 18:35:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Williamson X-Patchwork-Id: 50776 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 995E0218EA for ; Mon, 6 Jul 2015 18:37:16 +0000 (UTC) Received: by wgbbj7 with SMTP id bj7sf53240503wgb.2 for ; Mon, 06 Jul 2015 11:37:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:user-agent:mime-version:content-type :content-transfer-encoding:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=sXo//kadECaFMGjgdvXVXQJoZ0CU8Jv/lyywXAzgr30=; b=An5cp54VhP6D4RvBRpWwYWCcWLZuwKlV3C+BSIg0t98i+oex9I+YzTkN1yGohxzPbG dGh6HnDkbX2Czb9HTIrLi6Mysr2h2hOtylp5HuDqqjTgyQyumZ4HY6q8FYwuFNOoL3Wy n8QrvGyQaUJOOdX6YDTP/Lo3NRlv0TpnH8TAY0CAphibY0kJh+Mw125JvkifWfjABlD7 3647yyQ25tT20PS+6jt7j4Leln8nSwtj8MZ0KeSvcbNtnoiNy2RGDHm+sqf4o/Oi2Pdb O38b3zp6IHUobHBixohqQsEZ9vJCx++bvCG4m79nv334zFaLdLPVwL7xRr0zW97i5mih GoSg== X-Gm-Message-State: ALoCoQmJchrF/BO6ibi6/95V9H9kPaB5efQlqNkksmaV3oCfgZOqmQCanIJasgteNW7Zfed7q5iu X-Received: by 10.180.9.197 with SMTP id c5mr5639645wib.0.1436207835887; Mon, 06 Jul 2015 11:37:15 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.18 with SMTP id s18ls734389lal.63.gmail; Mon, 06 Jul 2015 11:37:15 -0700 (PDT) X-Received: by 10.153.4.40 with SMTP id cb8mr216091lad.39.1436207835523; Mon, 06 Jul 2015 11:37:15 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id l9si15935696lam.36.2015.07.06.11.37.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Jul 2015 11:37:15 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by laar3 with SMTP id r3so166840398laa.0 for ; Mon, 06 Jul 2015 11:37:15 -0700 (PDT) X-Received: by 10.112.220.7 with SMTP id ps7mr246888lbc.72.1436207835196; Mon, 06 Jul 2015 11:37:15 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp1896267lbb; Mon, 6 Jul 2015 11:37:14 -0700 (PDT) X-Received: by 10.70.34.38 with SMTP id w6mr389445pdi.147.1436207833484; Mon, 06 Jul 2015 11:37:13 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id bi1si30233020pbb.130.2015.07.06.11.37.12 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 06 Jul 2015 11:37:13 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:52436 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCBGR-0006Uf-Gu for patch@linaro.org; Mon, 06 Jul 2015 14:37:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36549) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCBEk-0004Or-Mh for qemu-devel@nongnu.org; Mon, 06 Jul 2015 14:35:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCBEi-0003DK-KK for qemu-devel@nongnu.org; Mon, 06 Jul 2015 14:35:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54944) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCBEi-0003D5-FE for qemu-devel@nongnu.org; Mon, 06 Jul 2015 14:35:24 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 22DCC91E96 for ; Mon, 6 Jul 2015 18:35:24 +0000 (UTC) Received: from gimli.home (ovpn-113-190.phx2.redhat.com [10.3.113.190]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t66IZNxO003664; Mon, 6 Jul 2015 14:35:23 -0400 From: Alex Williamson To: qemu-devel@nongnu.org Date: Mon, 06 Jul 2015 12:35:23 -0600 Message-ID: <20150706183523.15635.12718.stgit@gimli.home> In-Reply-To: <20150706183311.15635.76314.stgit@gimli.home> References: <20150706183311.15635.76314.stgit@gimli.home> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PULL 08/11] kvm: some fixes to kvm_resamplefds_allowed X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: alex.williamson@redhat.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Eric Auger Commit f41389ae3c54b introduced kvm_resamplefds_enabled() and associated kvm_resamplefds_allowed boolean. This patch adds non-KVM version for kvm_resamplefds_enabled and also declares kvm_resamplefds_allowed in kvm-stub as it is done for fellow kvm_irqfds_allowed. Signed-off-by: Eric Auger Reviewed-by: Peter Maydell Signed-off-by: Alex Williamson --- include/sysemu/kvm.h | 1 + kvm-stub.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/sysemu/kvm.h b/include/sysemu/kvm.h index ba612fc..983e99e 100644 --- a/include/sysemu/kvm.h +++ b/include/sysemu/kvm.h @@ -152,6 +152,7 @@ extern bool kvm_readonly_mem_allowed; #define kvm_halt_in_kernel() (false) #define kvm_eventfds_enabled() (false) #define kvm_irqfds_enabled() (false) +#define kvm_resamplefds_enabled() (false) #define kvm_msi_via_irqfd_enabled() (false) #define kvm_gsi_routing_allowed() (false) #define kvm_gsi_direct_mapping() (false) diff --git a/kvm-stub.c b/kvm-stub.c index 977de21..d9ad624 100644 --- a/kvm-stub.c +++ b/kvm-stub.c @@ -24,6 +24,7 @@ bool kvm_kernel_irqchip; bool kvm_async_interrupts_allowed; bool kvm_eventfds_allowed; bool kvm_irqfds_allowed; +bool kvm_resamplefds_allowed; bool kvm_msi_via_irqfd_allowed; bool kvm_gsi_routing_allowed; bool kvm_gsi_direct_mapping;