From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C80F62877DE for ; Mon, 28 Sep 2026 01:10:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790557857; cv=none; b=UgsdG4lkT6G6cn9CXxTqQWEYC+6tYqCJAVTJ1mmXRRSFqIVHbSySwvTGU7i0FI8VDbS9nMp05Reiw+BUwcEpe0K5qeebGUhUQJiGmTrQSJAm2ebrgrWgbK5DTLi5iEJ+0KaDiGyjBIrKNNoGF2bE79pGdnYK+Wqv9IMsiPSYzSY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790557857; c=relaxed/simple; bh=6yMk76KzWzu+iefeI1Jyf4+Me3XfVQPopFewLbvBPhI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=dnFB1LXtOUbVfptOWDLxjcjqMK+PneKadPw/Mx04qwe5cZuONTExQO/JPjVO92HPnlcaOJ4uVLIjYIek32eYHrSyhX6EcKU9eM9LrLxs7sU6KqOE4hwkQnyf/GBn1jvBggErHjNAvovcAWaqOgNf34YcGpLD+TBV+BD4uh29bns= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=hhptWLXh; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=TNI4WBtK; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="hhptWLXh"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="TNI4WBtK" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1790557854; 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=SmHYt1Ti8nIvrqszBUhxBgvTrbJZdy2Ri6tFNNhqhDs=; b=hhptWLXhnJ5Lw4Wh5/k3VlbMSWQE+/6vz91PX7av8rbENPC8kee+toZjpUI9+MxUXwt7wC 4MpXs1nf3DQUdPGmzqkDs8SiZ10kAN/ZvqHwYXunXExx6rADy6SQKRcgBz6nc4i33WTVN2 gJc7tlvRP2R7Vh1zCCBB30TI7pfVJ/s= Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-528-fTYqErHlNAua07xYYoOs_A-1; Sun, 27 Sep 2026 21:10:52 -0400 X-MC-Unique: fTYqErHlNAua07xYYoOs_A-1 X-Mimecast-MFC-AGG-ID: fTYqErHlNAua07xYYoOs_A_1790557851 Received: by mail-pl1-f198.google.com with SMTP id d9443c01a7336-2e12723dc7aso7448515ad.1 for ; Sun, 27 Sep 2026 18:10:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1790557851; x=1791162651; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=SmHYt1Ti8nIvrqszBUhxBgvTrbJZdy2Ri6tFNNhqhDs=; b=TNI4WBtKgtgkfW2UiYzMym0nIr+J2m2eMkVDfOhPHLVdaW5C83f707xxJFMr39LsH0 LzHG4yKA3o1ckSdw1xgwRntLJfVsSnuBRZS645omUYgstFOKRTgsswpSQDJcO6zR50Cr ZtYsjw0Mda8tCWlcGO0tQvW5ObJ1UhwxYwCaoNH5WSevu9wzA82vHa6euXil7d6ExT73 sBDual6J4by6xt6/vTSwx/Inze45ePcAf7jrOjqCuTg4rR9dzPtt8asaukxDjHeB1dJ5 JBpngTO1FP1Xu68ZjV/7t2rF05udBuTGpDO63nlaiFwNNVgEr/qyVtdk9bl9D9UkXTkN OJ9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790557851; x=1791162651; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=SmHYt1Ti8nIvrqszBUhxBgvTrbJZdy2Ri6tFNNhqhDs=; b=MYP7pqmOKFxgH3DRONDEpcOSHr7GeC7VhlUS5BaWUlv383ba0tpi41pW9cZ+ImClQC 2s0xBEDRz0/oV2hFyMW1W09d0t8A5TEdanlUqpJPKVdw0nfWfHXJs5HfgLad6NqEgjgu 2Vn37+yEVkraPTPQrBm9jYD3rkG+e8xC5eOExP26GTkefp4l5UWEOVJxfzzF2OU/sP5I SeYy2ATht7MaHkzjlOZ+fiMXartyr0XFNaCKnvobQO/LLCJfqsV1JEPUSHiXsVohR4zg fT3J0bgutuBXI1K99HO8ZO/xyATU5FCYAo7kjj16sdP63q7ku+uFqNTk4wgx0u/VVPdJ JYJg== X-Forwarded-Encrypted: i=1; AKwUvBxpGE7ajMipngXReHkf2ULvEtca37DrhzcuCwQtLI5gx8DT0i9P4HppgmJPWEsdzyQ6lBk=@vger.kernel.org X-Gm-Message-State: AFq9FYKUiv8mzWXAMYQWvNT2G8ZtQz2URW9W170aK9YcsrebwKzuuAEz 2L7nZkWfAR5clfLrGlG08/ZYZPMIQemLIOTH0xKBboa+dXPEkImX/OPf8eSWPEtq7dwU4WKEZby Fs1ul4/mxAUmiVai1gch6YzavmyQvFGfisQADQ11kLHZ1jg1GdqJCGQ== X-Gm-Gg: AYBFou2q+6YaSHk3oUDnbDeH0Y3cfXB1olim83ncFGlOyi1waZSPfJqVlMIjlKRkIuk 73H8niKv0ho9ZdQXn6mPL6E2lDbq/bXdKfAm2mDadwEYfQiEI9OaVBumqlA8etcBy3j5bQHgMnj 6/0c2U0EVifWWDOXQkgJ1GmDVqoLfLc7IvDizbg7LYWxbsVB9I2eO/66pBr7H2JdCoOENDhpuol hrM10kE+fOai35du3uPqGpEXr9yfczmd6lE+wi+DDA9Kdb14W/UFYDTE8lBExPKfc/ocFKOPdcN BceQ7PewmT5J+t2FX2/3Ggu3vsfM478afJXpZS1S3wzcHErso0n+hKxQ2+Yr1w+xUSXeFlcJcFt EQRe9gCQggTQkAFtUcOZ3hvz8cG8F0qnpNW8GkKVHZA== X-Received: by 2002:a17:902:d2c2:b0:2df:4862:6092 with SMTP id d9443c01a7336-2df7dc52ademr80473305ad.56.1790557851451; Sun, 27 Sep 2026 18:10:51 -0700 (PDT) X-Received: by 2002:a17:902:d2c2:b0:2df:4862:6092 with SMTP id d9443c01a7336-2df7dc52ademr80473175ad.56.1790557850985; Sun, 27 Sep 2026 18:10:50 -0700 (PDT) Received: from [192.168.68.52] (n175-34-8-244.mrk21.qld.optusnet.com.au. [175.34.8.244]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2df91476bb4sm32933225ad.83.2026.09.27.18.10.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 27 Sep 2026 18:10:50 -0700 (PDT) Message-ID: Date: Mon, 28 Sep 2026 11:10:43 +1000 Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v19 11/20] KVM: arm64: Mandate VGIC v3 for for VMs running on hyp that don't trust the host To: Suzuki K Poulose , kvm@vger.kernel.org, kvmarm@lists.linux.dev Cc: maz@kernel.org, will@kernel.org, catalin.marinas@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, steven.price@arm.com, aneesh.kumar@kernel.org, oupton@kernel.org, joey.gouly@arm.com, tabba@google.com, yuzenghui@huawei.com, linux-coco@lists.linux.dev, gankulkarni@os.amperecomputing.com, sdonthineni@nvidia.com, alpergun@google.com, fj0570is@fujitsu.com, WeiLin.Chang@arm.com, lpieralisi@kernel.org, enju.kohei@fujitsu.com References: <20260920212845.707-1-suzuki.poulose@arm.com> <20260920212845.707-12-suzuki.poulose@arm.com> Content-Language: en-US From: Gavin Shan In-Reply-To: <20260920212845.707-12-suzuki.poulose@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 9/21/26 7:28 AM, Suzuki K Poulose wrote: > pKVM and RMM, both do not trust the host. Add a helper to detect the VMs > that have "distrusting" hyp. Use this for blocking ioremap of vgic-v2 into > stage2 and prevent creation of VGIC other than v3. > > Signed-off-by: Suzuki K Poulose > --- > Changes since v18: > - Cover pKVM guests for VGIC v3 mandate. > - Merge the VGIC mandate check in here. > --- > arch/arm64/include/asm/kvm_host.h | 3 +++ > arch/arm64/kvm/mmu.c | 2 +- > arch/arm64/kvm/vgic/vgic-init.c | 2 ++ > 3 files changed, 6 insertions(+), 1 deletion(-) > Reviewed-by: Gavin Shan