From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AD4EFCED24E for ; Tue, 8 Oct 2024 00:34:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=j2t8/t87oydMOb+fbPCK5eA4VfKKGx5GRAmEejqA5qo=; b=mKXsOSaoyeZXPXmUtZJnWdqWEq 3hhdOaqSFQBsk9V0X/eMxdcr+Lxf/zzvr3QoBNGTZpbRAFO6SF3dfiCLNfcgYav9IgXg3RUbeqoOV RQaQAD85NCJdmyUECXjNnF5y1B8Nnt7p6LBMnoGAOMtts3EFF7N0E1lYs5Z7BDQBUwDoHcy9+JgAi Rr1/1xDWFxfhSGYSLGr0ICZODfHGJMYgStFmVGrKwFbAsNbwg7tpzJOZsocpNdAy/ArLdAx2xohpS 4RJz+5vxNtGQe0L7QwR6uOkOj7CEB8C/fT7nZefaQGBWmt5VkcI29ZpBlKODPOnET0unfIhTc67gQ 7ousQi+w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sxyAq-000000047Vf-2rzX; Tue, 08 Oct 2024 00:34:00 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sxy95-000000047IQ-33b5 for linux-arm-kernel@lists.infradead.org; Tue, 08 Oct 2024 00:32:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1728347530; h=from:from:reply-to:subject:subject: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=j2t8/t87oydMOb+fbPCK5eA4VfKKGx5GRAmEejqA5qo=; b=humjoJwEim+qOlMIaLMncCIX3FX5ACxhoc8MZdyAAcUa+klvjVlCf0UxoPXsZQrsQy7ghu hkVZ6HC+1YCZ0l87uEU/X9L+Rf2CPJQNXFcg4vakNdKiPwjOUQWtBd/B96JHjlbDg+o8KO FqWvu2KRObhHu/BqCpBZbJ+fVSsoRbg= Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-646-5FPVBqUEMx2xmC16eriPQg-1; Mon, 07 Oct 2024 20:32:09 -0400 X-MC-Unique: 5FPVBqUEMx2xmC16eriPQg-1 Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-7ea07766e09so1590130a12.2 for ; Mon, 07 Oct 2024 17:32:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728347528; x=1728952328; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=j2t8/t87oydMOb+fbPCK5eA4VfKKGx5GRAmEejqA5qo=; b=OlDAKJ8B7drmMLNiiqXShqcsjPF7NMaFp6agwpHRYGeC/KNwHnyJ8UfzmwzNpPd7+m OhmIzyKsoxEHC8ZWnIXHDpBV5U+2Y8IAEoVrZxwEWycd8EivbYsrciOpLts71dGi+Q6g 8zz/b9sx1UDr19Z/t8hjfm6oI5kOXPpP8oOcn17+q9ASHWTkrtkTjV/NTMYWuOwWr5PS VSBDyRr9ETi5LJvIPfxjUG4J/LK3xH4JWl8w7PCwLjAEUG1JK5Ve/LpM8RtQcyONi25u 60FL1OckdMhRTWHRuPMa2mxngapCtbbMQEomQOM4uffoFk/PlYwzV2hcGUTRSdfBQBWd kJhw== X-Forwarded-Encrypted: i=1; AJvYcCWSAd5HpIU5zZwr6YWx6qCkvpVwS6twr3IdsBF5cWLyrdWBv5XdWnuOipwyCRA2kWSpp44EGrhu52uUP3Dqidxn@lists.infradead.org X-Gm-Message-State: AOJu0YzjuyaT8cqhlyUEiwRqeU4sNjdbGCPwyDkZ7o92jT23nItyX/QU EzVNCrXPghzmMoo2Tz8sxtK67KPvbv3ulkq5eSCN8vtuS4Utu3pvLSKlUyr5Kw5oqQUwWn7/ULM hd/IBdiIyMD06IoaSwkrhzlC02rRmUtNTURHvdyG2ACgQ6D6+8vqfVzslIviAo7cCxaM4RJi1 X-Received: by 2002:a17:903:1c7:b0:20b:7633:6e5 with SMTP id d9443c01a7336-20bff045264mr190222635ad.50.1728347528629; Mon, 07 Oct 2024 17:32:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEhKzITncWA4Jo33JtZVn5xzhu6oYqOWO2GtB36kaMCjLxz5smSPbxD5lo2WdfhzKIooRXhxw== X-Received: by 2002:a17:903:1c7:b0:20b:7633:6e5 with SMTP id d9443c01a7336-20bff045264mr190222385ad.50.1728347528325; Mon, 07 Oct 2024 17:32:08 -0700 (PDT) Received: from [192.168.68.54] ([103.210.27.132]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20c139316e8sm45047925ad.181.2024.10.07.17.32.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Oct 2024 17:32:07 -0700 (PDT) Message-ID: <545dbeb2-7ee9-4f38-8340-67682a917488@redhat.com> Date: Tue, 8 Oct 2024 10:31:58 +1000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 06/11] efi: arm64: Map Device with Prot Shared To: Steven Price , kvm@vger.kernel.org, kvmarm@lists.linux.dev Cc: Suzuki K Poulose , Catalin Marinas , Marc Zyngier , Will Deacon , James Morse , Oliver Upton , Zenghui Yu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Joey Gouly , Alexandru Elisei , Christoffer Dall , Fuad Tabba , linux-coco@lists.linux.dev, Ganapatrao Kulkarni , Shanker Donthineni , Alper Gun , "Aneesh Kumar K . V" References: <20241004144307.66199-1-steven.price@arm.com> <20241004144307.66199-7-steven.price@arm.com> From: Gavin Shan In-Reply-To: <20241004144307.66199-7-steven.price@arm.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241007_173212_744268_97E595C4 X-CRM114-Status: GOOD ( 12.40 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 10/5/24 12:43 AM, Steven Price wrote: > From: Suzuki K Poulose > > Device mappings need to be emulated by the VMM so must be mapped shared > with the host. > > Signed-off-by: Suzuki K Poulose > Signed-off-by: Steven Price > --- > Changes since v4: > * Reworked to use arm64_is_iomem_private() to decide whether the memory > needs to be decrypted or not. > --- > arch/arm64/kernel/efi.c | 12 ++++++++++-- > 1 file changed, 10 insertions(+), 2 deletions(-) > Reviewed-by: Gavin Shan