Message ID | 20180209143937.28866-43-andre.przywara@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp679965ljc; Fri, 9 Feb 2018 06:42:20 -0800 (PST) X-Google-Smtp-Source: AH8x227lI/pR0R8xCnCgcmi9nQNqBqGFndRmVmnXE5Q2lgCMrRggN3OHKGPKJaQ7zrErHqy+8fqg X-Received: by 10.107.180.146 with SMTP id d140mr3549959iof.166.1518187340807; Fri, 09 Feb 2018 06:42:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518187340; cv=none; d=google.com; s=arc-20160816; b=GzhECdkjAibOduhjkdo64VZFYa+wnd1JjbIM13s1iBdYksbfFV5lGPysfbDS6h1xBS T4hmLX2lsK57x8bJUGyC8u7MIHWoRDpui7hjcd1Hmh0ax/XbMbFaiQGmEmDoLrNXeP+j dQWkVEG0PMeRrKVa52XhI/MyJg2uKoI5ihm1oJjDVSMmujW1bJ7u3WWYzYr2UwSiAqOM PDgQb/xE6QoD+yJ1kN1GpD9+Pu/ODBmdQV1ayPdVxpLoagaS4/bXyPT4LuiaXi7hOXWG 5sf/UIa4Efmbi+FtQh33kb9+W9aTeB2XBdG1hjQScvvR79XTynQbhqub57FjuuUdZulR TE7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:references:in-reply-to:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=6EMdov2SQAXaXGWfUbxItLFx1o2dIVC2LJqVf5YSpP8=; b=MpLz0ZQ8+0hOJZdK0a0jNEjTtb2c+VqXyggcOqPZhi3jBT8v+QQO0jHyswGfvjCPGr rkBheAi87DxowCziac6OuRrVD3uSUBS+XP9DyR3xz3nn5sipA0hQvouPsVD9dANNOhBl zARz0PxeMBUDV60w0zmE82JjG1giHyt1JKLB4lGubTiGVDwalvALILlYY6xyNR2uVcXL p5DsymCCKo6ufgqFEuCJq6OiuazzxESY7pwKlPKrpyaWTcdSZP0QW67FaXn22hoNY8Wo vv9/PDZ3hzGsEZ6C1nSIlRx963V2E8/WclgQPUU1xzKP4M5anLuDBD79UntxqvLh3kiF 2eZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=QkD7svwN; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <xen-devel-bounces@lists.xenproject.org> Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id z66si1659496itg.26.2018.02.09.06.42.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Feb 2018 06:42:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=QkD7svwN; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <xen-devel-bounces@lists.xenproject.org>) id 1ek9qr-0001qz-8r; Fri, 09 Feb 2018 14:40:33 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <srs0=vdwz=fd=linaro.org=andre.przywara@srs-us1.protection.inumbo.net>) id 1ek9qp-0001lM-TO for xen-devel@lists.xenproject.org; Fri, 09 Feb 2018 14:40:31 +0000 X-Inumbo-ID: 1c06c6cb-0da7-11e8-ba59-bc764e045a96 Received: from mail-wr0-x241.google.com (unknown [2a00:1450:400c:c0c::241]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 1c06c6cb-0da7-11e8-ba59-bc764e045a96; Fri, 09 Feb 2018 15:40:02 +0100 (CET) Received: by mail-wr0-x241.google.com with SMTP id w50so8486874wrc.2 for <xen-devel@lists.xenproject.org>; Fri, 09 Feb 2018 06:40:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=i3iE/T/1oh6CaRmeNb3JQFsHUbxcfL1pf4ToJ61B9E0=; b=QkD7svwN6yFwYgB5f8rUw7GDmzaC/goMtq9aVMxh3LaB0VHV0AIprGv9ctfAu5dwA8 u2uGsTg2bFtO+RjvPy5BIaBSVkMzev19wFhGqHquuTN6mZw2eY68i+KzINQUVH/9cQIc sj56GEZcxaYRRaCRsMZgfyqzC8HgCUClYbysM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=i3iE/T/1oh6CaRmeNb3JQFsHUbxcfL1pf4ToJ61B9E0=; b=QUaUirHJXATlFm3svpQ2bmrssGzJ3s/d2SL5I/YYkt4pOcxxwtJDosTEUcuPGnQen3 KbJ2WDhD+bSqQ+fxI23oLZlonzoDIowbMzlRf65i4QPWDsHqzPFJ2K7KE4wfKoqmgA7S yomaC+gEuS1htLQ8zEcis+L9Oa6oc6OWv1yBd1PLbFWsGkOkSxMB0iX7GWdAjJG1bazB 2w73bEJeMpg3m1zsAy6DoKnLnP+Oh8q1CRxAAySB93ibkla0uJmnWdVCaJfi7AUZThpZ iwEwG7b9NKsdbEg9zQhAeiZgm7xFEmUJcGgXr8hdHW4G6xxe5bPBtas9u8iY2WaGqR73 NtAA== X-Gm-Message-State: APf1xPDDKjO/Cb1b2ttaR3b2eq4hUA/BGOGN838skgpas1AQP79Hv0r9 e7Plkb04ilTUFiNKg9Z9w6PW/w== X-Received: by 10.223.161.208 with SMTP id v16mr2493609wrv.11.1518187229401; Fri, 09 Feb 2018 06:40:29 -0800 (PST) Received: from e104803-lin.lan (mail.andrep.de. [217.160.17.100]) by smtp.gmail.com with ESMTPSA id b35sm2552229wra.13.2018.02.09.06.40.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Feb 2018 06:40:28 -0800 (PST) From: Andre Przywara <andre.przywara@linaro.org> To: Stefano Stabellini <sstabellini@kernel.org>, Julien Grall <julien.grall@arm.com>, xen-devel@lists.xenproject.org Date: Fri, 9 Feb 2018 14:39:30 +0000 Message-Id: <20180209143937.28866-43-andre.przywara@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180209143937.28866-1-andre.przywara@linaro.org> References: <20180209143937.28866-1-andre.przywara@linaro.org> Subject: [Xen-devel] [RFC PATCH 42/49] ARM: new VGIC: provide system register emulation stub X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion <xen-devel.lists.xenproject.org> List-Unsubscribe: <https://lists.xenproject.org/mailman/options/xen-devel>, <mailto:xen-devel-request@lists.xenproject.org?subject=unsubscribe> List-Post: <mailto:xen-devel@lists.xenproject.org> List-Help: <mailto:xen-devel-request@lists.xenproject.org?subject=help> List-Subscribe: <https://lists.xenproject.org/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xenproject.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" <xen-devel-bounces@lists.xenproject.org> |
Series |
New VGIC(-v2) implementation
|
expand
|
diff --git a/xen/arch/arm/vgic/vgic.c b/xen/arch/arm/vgic/vgic.c index 97ffdba5ad..d91028bd43 100644 --- a/xen/arch/arm/vgic/vgic.c +++ b/xen/arch/arm/vgic/vgic.c @@ -790,6 +790,13 @@ struct irq_desc *vgic_get_hw_irq_desc(struct domain *d, struct vcpu *v, return desc; } +bool vgic_emulate(struct cpu_user_regs *regs, union hsr hsr) +{ + ASSERT(current->domain->arch.vgic.version == GIC_V3); + + return false; +} + /* * was: * int kvm_vgic_map_phys_irq(struct vcpu *vcpu, u32 virt_irq, u32 phys_irq)
The Xen arch code traps system registers writes from the guest and will relay anything GIC related to the VGIC. Since this affects only GICv3 (which we don't yet emulate), provide a stub implementation of vgic_emulate() for now. Signed-off-by: Andre Przywara <andre.przywara@linaro.org> --- xen/arch/arm/vgic/vgic.c | 7 +++++++ 1 file changed, 7 insertions(+)