From patchwork Fri Jun 26 15:30:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Auger Eric X-Patchwork-Id: 50365 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id ECBCD228FD for ; Fri, 26 Jun 2015 15:30:58 +0000 (UTC) Received: by lagx9 with SMTP id x9sf1590367lag.2 for ; Fri, 26 Jun 2015 08:30:58 -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=ZA467ziGkMflpNq3Viey1rv5v5LqBc37ZdL+EwEV5ecF35UTOqCVUwBarFOKDn1wB/ 3/9WIWWUcJLoT6j7pzdqYgPHFkvThl2mC3sP+4HMd7DvjCukVWMRZ+ve66dq2WiHmO6j flIB2Ec9spW+DYxzs0suIdLK1yqVKa/HS4fPxRBase73TYiCnYNIitLqXJTowVSI1uMv 3EEn7DB3j8vZRZgi9IWuCpq2My881R2Fb9sjEf6dFGfhgmqpN7Re5CLVZYs1ikY6WeS0 hZYO1ofmsOr3WdmN4xhtEJZ5S5Nk402hxtVReytxKZDVWG93WX8f4GQ6OCKnA+p0JU52 XzhQ== X-Gm-Message-State: ALoCoQkx5wBA2zNiXhOi705APFq5g9ASyb4QUXy+6PA4XAIfPEd9lWgwz++ZffRS/h00VUMMlDG7 X-Received: by 10.152.219.166 with SMTP id pp6mr1474702lac.1.1435332657990; Fri, 26 Jun 2015 08:30:57 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.8.1 with SMTP id n1ls445291laa.87.gmail; Fri, 26 Jun 2015 08:30:57 -0700 (PDT) X-Received: by 10.152.179.234 with SMTP id dj10mr2101851lac.73.1435332657848; Fri, 26 Jun 2015 08:30:57 -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 a4si27678006lae.4.2015.06.26.08.30.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Jun 2015 08:30:57 -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 vz5so66723722lbb.0 for ; Fri, 26 Jun 2015 08:30:57 -0700 (PDT) X-Received: by 10.152.179.234 with SMTP id dj10mr2101822lac.73.1435332657433; Fri, 26 Jun 2015 08:30:57 -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 hn6csp4866lbb; Fri, 26 Jun 2015 08:30:56 -0700 (PDT) X-Received: by 10.194.23.225 with SMTP id p1mr4056680wjf.155.1435332653926; Fri, 26 Jun 2015 08:30:53 -0700 (PDT) Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com. [209.85.212.175]) by mx.google.com with ESMTPS id bp4si59159195wjb.14.2015.06.26.08.30.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Jun 2015 08:30:53 -0700 (PDT) Received-SPF: pass (google.com: domain of eric.auger@linaro.org designates 209.85.212.175 as permitted sender) client-ip=209.85.212.175; Received: by wicnd19 with SMTP id nd19so48241065wic.1 for ; Fri, 26 Jun 2015 08:30:53 -0700 (PDT) X-Received: by 10.180.72.176 with SMTP id e16mr6180612wiv.12.1435332653593; Fri, 26 Jun 2015 08:30:53 -0700 (PDT) Received: from midway01-04-00.lavalab ([81.128.185.50]) by mx.google.com with ESMTPSA id b5sm2688575wic.3.2015.06.26.08.30.51 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 26 Jun 2015 08:30:51 -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 v17 5/6] kvm: some fixes to kvm_resamplefds_allowed Date: Fri, 26 Jun 2015 16:30:33 +0100 Message-Id: <1435332634-10721-6-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1435332634-10721-1-git-send-email-eric.auger@linaro.org> References: <1435332634-10721-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 --- 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;