From patchwork Sun May 25 18:06:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 30895 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f72.google.com (mail-pb0-f72.google.com [209.85.160.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 39430203AC for ; Sun, 25 May 2014 18:08:38 +0000 (UTC) Received: by mail-pb0-f72.google.com with SMTP id ma3sf32214735pbc.7 for ; Sun, 25 May 2014 11:08:37 -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:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-post:list-help:list-subscribe:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:list-archive:content-type:content-transfer-encoding; bh=BvKa71JrSg2krwXAgqs4ORmXhQO82VJK0V+bMdHT4hI=; b=A8+5IYT1mX6V6zheH5B2AvzvjQUjHMPvuuAHkH4NVjnuyoaAE/L9qAWsc4aGE5BOdb bSO7kIYahcP5/OhWxytclYSJG/KAlbme2nAfWBS5j9fdWKgzASsc/NaGpktihwW290Ju JCvKKVufFEcAzff9B9o9EeVl63okORmAFjGHgTBXaMXpPRFqVjtf1iFQd7zEHV85h+g8 GSKRt50lFqxL5HXYbkfJKzUijQQuD94XSLqiu8rjI8nqG5e092L5ZzyZjL/vjpuUaZo6 zigwdQRD6scdsxJx8PsQ2tNqcqGliRg+w82qJcecyiX9RgKbgnkqGVg+xVKQs7NKoGaL euXg== X-Gm-Message-State: ALoCoQkOT3rzDoBOslqzTZI9I6nn6GjWESxx4K/YUVLWxq8AHVE5Dr0YoRcteUJsvRYl/v1JASQ4 X-Received: by 10.66.217.170 with SMTP id oz10mr8763483pac.9.1401041317514; Sun, 25 May 2014 11:08:37 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.19.83 with SMTP id 77ls2382436qgg.28.gmail; Sun, 25 May 2014 11:08:37 -0700 (PDT) X-Received: by 10.220.106.7 with SMTP id v7mr1739385vco.46.1401041317389; Sun, 25 May 2014 11:08:37 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id yz10si5052663vdb.80.2014.05.25.11.08.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 25 May 2014 11:08:37 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id il7so8353897vcb.32 for ; Sun, 25 May 2014 11:08:37 -0700 (PDT) X-Received: by 10.220.98.143 with SMTP id q15mr2662815vcn.38.1401041317316; Sun, 25 May 2014 11:08:37 -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.220.221.72 with SMTP id ib8csp51942vcb; Sun, 25 May 2014 11:08:37 -0700 (PDT) X-Received: by 10.224.138.3 with SMTP id y3mr26062044qat.78.1401041316936; Sun, 25 May 2014 11:08:36 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id v7si5012498qay.21.2014.05.25.11.08.36 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 25 May 2014 11:08:36 -0700 (PDT) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wocoo-0001Xt-FU; Sun, 25 May 2014 18:06:46 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wocom-0001XU-NI for xen-devel@lists.xensource.com; Sun, 25 May 2014 18:06:44 +0000 Received: from [85.158.139.211:41538] by server-4.bemta-5.messagelabs.com id 02/0E-30750-33132835; Sun, 25 May 2014 18:06:43 +0000 X-Env-Sender: Stefano.Stabellini@citrix.com X-Msg-Ref: server-6.tower-206.messagelabs.com!1401041201!6250755!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n X-StarScan-Received: X-StarScan-Version: 6.11.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 6701 invoked from network); 25 May 2014 18:06:43 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-6.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 25 May 2014 18:06:43 -0000 X-IronPort-AV: E=Sophos;i="4.98,907,1392163200"; d="scan'208";a="135542929" Received: from accessns.citrite.net (HELO FTLPEX01CL02.citrite.net) ([10.9.154.239]) by FTLPIPO01.CITRIX.COM with ESMTP; 25 May 2014 18:06:41 +0000 Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.79) with Microsoft SMTP Server id 14.3.181.6; Sun, 25 May 2014 14:06:41 -0400 Received: from kaball.uk.xensource.com ([10.80.2.59]) by ukmail1.uk.xensource.com with esmtp (Exim 4.69) (envelope-from ) id 1Wocod-00045L-Nj; Sun, 25 May 2014 19:06:35 +0100 From: Stefano Stabellini To: Date: Sun, 25 May 2014 19:06:31 +0100 Message-ID: <1401041192-20424-1-git-send-email-stefano.stabellini@eu.citrix.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 X-DLP: MIA1 Cc: julien.grall@citrix.com, Ian.Campbell@citrix.com, Stefano Stabellini Subject: [Xen-devel] [PATCH 1/2] xen/arm: add a warning if the guest asks for SPI delivery to vcpu != 0. X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: stefano.stabellini@eu.citrix.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.220.173 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 List-Archive: Signed-off-by: Stefano Stabellini --- xen/arch/arm/vgic.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xen/arch/arm/vgic.c b/xen/arch/arm/vgic.c index 4869b87..e4f38a0 100644 --- a/xen/arch/arm/vgic.c +++ b/xen/arch/arm/vgic.c @@ -581,6 +581,11 @@ static int vgic_distr_mmio_write(struct vcpu *v, mmio_info_t *info) if ( dabt.size != 0 && dabt.size != 2 ) goto bad_width; rank = vgic_irq_rank(v, 8, gicd_reg - GICD_ITARGETSR); if ( rank == NULL) goto write_ignore; + if ( *r ) + { + gdprintk(XENLOG_DEBUG, "SPI delivery to seconday cpus is unimplemented\n"); + return 1; + } vgic_lock_rank(v, rank); if ( dabt.size == 2 ) rank->itargets[REG_RANK_INDEX(8, gicd_reg - GICD_ITARGETSR)] = *r;