From patchwork Fri Jun 26 17:29:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Auger Eric X-Patchwork-Id: 50371 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 122DB22902 for ; Fri, 26 Jun 2015 17:29:49 +0000 (UTC) Received: by lbbwc1 with SMTP id wc1sf28237895lbb.3 for ; Fri, 26 Jun 2015 10:29:47 -0700 (PDT) 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:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=so04mfurb1AMSWv47f9XtbVJEZid8XI2Mp865zc+9tM=; b=X93rPdTBRvjK/qbCoUm/5VZhkE/r7JhLMihAsZuf8pwWYA/FyCUJebXlJUXF7mipiy S0D8S33D0ltaMWHwCGol8oSkcZ9a1xBINcJJEh/03WRfn1m7GFqDwZsfPJysfM5YeE61 Gv0a9+wSGwbPwosUsQ2Hcm67yVo7I9HDR89et1BPcZrkRColgbXQwes4divF/NsPWfgV AYFtZGjTOXxEF3y+5w9Y9KDyWNhzFP1851HruUOHan2BcYU95Cle91q2wIHRVHFOyrXn ET3dQMyLhw4yNYD/P/0q8aDBxTnXX54EFMJNK3SvFUgjZ0woI48NNUZck7CdIh5r7bV7 eLsg== X-Gm-Message-State: ALoCoQmwjnbpNcNsIEIzEvmKubCY7TDKKk2tRH6oLJtZiItLAx0WOV1gPmLtkzoHB7oUcWhhVqi8 X-Received: by 10.112.9.100 with SMTP id y4mr1823473lba.20.1435339787599; Fri, 26 Jun 2015 10:29:47 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.205.6 with SMTP id lc6ls559549lac.80.gmail; Fri, 26 Jun 2015 10:29:47 -0700 (PDT) X-Received: by 10.152.27.74 with SMTP id r10mr2590576lag.31.1435339787359; Fri, 26 Jun 2015 10:29:47 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id wh7si13250533lbb.123.2015.06.26.10.29.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Jun 2015 10:29:47 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbbvz5 with SMTP id vz5so68609645lbb.0 for ; Fri, 26 Jun 2015 10:29:47 -0700 (PDT) X-Received: by 10.152.36.102 with SMTP id p6mr2557932laj.19.1435339787277; Fri, 26 Jun 2015 10:29:47 -0700 (PDT) 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.112.108.230 with SMTP id hn6csp70015lbb; Fri, 26 Jun 2015 10:29:46 -0700 (PDT) X-Received: by 10.180.90.209 with SMTP id by17mr6827108wib.2.1435339783118; Fri, 26 Jun 2015 10:29:43 -0700 (PDT) Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com. [209.85.212.170]) by mx.google.com with ESMTPS id q6si4020814wix.94.2015.06.26.10.29.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Jun 2015 10:29:43 -0700 (PDT) Received-SPF: pass (google.com: domain of eric.auger@linaro.org designates 209.85.212.170 as permitted sender) client-ip=209.85.212.170; Received: by wicnd19 with SMTP id nd19so50882598wic.1 for ; Fri, 26 Jun 2015 10:29:43 -0700 (PDT) X-Received: by 10.180.92.40 with SMTP id cj8mr6553895wib.92.1435339782951; Fri, 26 Jun 2015 10:29:42 -0700 (PDT) Received: from midway01-04-00.lavalab ([81.128.185.50]) by mx.google.com with ESMTPSA id m10sm3088489wib.17.2015.06.26.10.29.41 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 26 Jun 2015 10:29:42 -0700 (PDT) From: Eric Auger To: eric.auger@st.com, eric.auger@linaro.org, qemu-devel@nongnu.org, peter.maydell@linaro.org, alex.williamson@redhat.com, pbonzini@redhat.com Cc: peter.crosthwaite@xilinx.com, christoffer.dall@linaro.org, patches@linaro.org Subject: [PATCH v18 5/6] kvm: some fixes to kvm_resamplefds_allowed Date: Fri, 26 Jun 2015 18:29:26 +0100 Message-Id: <1435339767-2301-6-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1435339767-2301-1-git-send-email-eric.auger@linaro.org> References: <1435339767-2301-1-git-send-email-eric.auger@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: eric.auger@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) 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: , 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 --- 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;