Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9B906C388F7 for ; Fri, 13 Nov 2020 10:48:09 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0A12220678 for ; Fri, 13 Nov 2020 10:48:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="NmCPhe0h" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0A12220678 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.26310.54588 (Exim 4.92) (envelope-from ) id 1kdWcS-00042q-S3; Fri, 13 Nov 2020 10:47:52 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 26310.54588; Fri, 13 Nov 2020 10:47:52 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kdWcS-00042j-Oq; Fri, 13 Nov 2020 10:47:52 +0000 Received: by outflank-mailman (input) for mailman id 26310; Fri, 13 Nov 2020 10:47:51 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kdWcQ-00042S-UL for xen-devel@lists.xenproject.org; Fri, 13 Nov 2020 10:47:50 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 7bb8428c-ad8f-4234-87ff-98f54f036ff2; Fri, 13 Nov 2020 10:47:49 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id CE881AED6; Fri, 13 Nov 2020 10:47:48 +0000 (UTC) Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kdWcQ-00042S-UL for xen-devel@lists.xenproject.org; Fri, 13 Nov 2020 10:47:50 +0000 X-Inumbo-ID: 7bb8428c-ad8f-4234-87ff-98f54f036ff2 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 7bb8428c-ad8f-4234-87ff-98f54f036ff2; Fri, 13 Nov 2020 10:47:49 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1605264468; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NxNY7is0eX0w859VRwxbHMJiokokTDN3mH+bsPMPMiU=; b=NmCPhe0hEk45rpA08e2loHxpRvIweNF0J+Xvmc+Os4AYLoOoHBniPhyfUyLET3T0Uixj2Y GPTnYUPif2QkQdFcdpnauGW5OUvyAIC57l2wLz2wyBkZ5O4eiJY7gjKM5Ok05TAwCoK9ik +knbcTqcuOdMrdrsXatOlArNZpUNFxA= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id CE881AED6; Fri, 13 Nov 2020 10:47:48 +0000 (UTC) Subject: Re: [PATCH 08/10] vpci/arm: Allow updating BAR's header for non-ECAM bridges To: Oleksandr Andrushchenko , Oleksandr Andrushchenko Cc: "iwj@xenproject.org" , "wl@xen.org" , "xen-devel@lists.xenproject.org" , "julien.grall@arm.com" , "Bertrand.Marquis@arm.com" , "sstabellini@kernel.org" , "roger.pau@citrix.com" , "Rahul.Singh@arm.com" References: <20201109125031.26409-1-andr2000@gmail.com> <20201109125031.26409-9-andr2000@gmail.com> <1f0a3eb7-be20-95a0-0c1e-c7d45e3279f8@epam.com> From: Jan Beulich Message-ID: <34e81e3e-7d65-432a-95a6-c8ef437b23dc@suse.com> Date: Fri, 13 Nov 2020 11:47:48 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.3 MIME-Version: 1.0 In-Reply-To: <1f0a3eb7-be20-95a0-0c1e-c7d45e3279f8@epam.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 13.11.2020 11:39, Oleksandr Andrushchenko wrote: > > On 11/13/20 12:29 PM, Jan Beulich wrote: >> On 09.11.2020 13:50, Oleksandr Andrushchenko wrote: >>> From: Oleksandr Andrushchenko >>> >>> Non-ECAM host bridges in hwdom go directly to PCI config space, >>> not through vpci (they use their specific method for accessing PCI >>> configuration, e.g. dedicated registers etc.). >> And access to these dedicated registers can't be intercepted? > > It can. But then you have to fully emulate that bridge, e.g. > > "if we write A to regB and after that write C to regZ then it > > means we are accessing config space. If we write...." Sounds pretty much like the I/O port based access mechanism on x86, which also has some sort of "enable". Of course, I/O port accesses are particularly easy to intercept and handle... > I mean this would need lots of code in Xen to achieve that Possibly, but look at the amount of code we have in Xen on the x86 side to handle MCFG writes by Dom0. Jan