Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 AC3051DC9B1 for ; Wed, 30 Apr 2025 05:47:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745992068; cv=none; b=khmhgdhAoJem70vsiAbxnD6SHu3hi8u+ae9c/S5PKqof4iruqEqa27cFm5wsTLElh9bIieSG2gUo/JNDTd2NS+Nk+aBKiHS9POCajv8NPZ7znpQ4W3Yp7Z9KIf3dRfltaacLNouBw1XHsAZ7/ZIp7hQWEZK70od2lqyAy/MQqV8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745992068; c=relaxed/simple; bh=0Gj8CKa062ZMAoAEd5s2NoFzkcBqpVYig5/ML9jfLCo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Z7NJBb9rXvnJW4rzYsYRNuXUm/K/ma/ZMAJz1pbLHpkIc+G3Cv7IrX+GXkxnQ3hLdrbah9aEfhuHeGEREer3NN0+X8P8PVwYYzbwPo5t7QPZ0KQLyqEaxHv8e2rMLzjp5AVBiftEuHTFQrlVy9hAolLr7q+i/SYahDOUeQ1am/E= 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=Jx6aVOCI; arc=none smtp.client-ip=170.10.129.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="Jx6aVOCI" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1745992065; 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=979akrJcal7eXFEBBeKgkEGR2Z+cXNr2mNqqWnT1LPM=; b=Jx6aVOCIXa0B01cJDxU4ZLcQTdhCZXkoYdm+ohunwj3YZeKU3kq0d6SCZRGEdZgPdcO3dz 2rSXbZivZVPCI7sI0saXmgE8C47E874hxxxiV94h8eiPCjGBbbR9nSNhrTFQrgxEnXI8KK TyivIbvlbqTDgTdN+zzBAdGdrPdAIy4= 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-563-I8vwgYU2PVqKeSM44WTaYw-1; Wed, 30 Apr 2025 01:47:43 -0400 X-MC-Unique: I8vwgYU2PVqKeSM44WTaYw-1 X-Mimecast-MFC-AGG-ID: I8vwgYU2PVqKeSM44WTaYw_1745992062 Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-b1f71ae2181so809188a12.1 for ; Tue, 29 Apr 2025 22:47:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745992062; x=1746596862; 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=979akrJcal7eXFEBBeKgkEGR2Z+cXNr2mNqqWnT1LPM=; b=fMwzB5VDLJLzUWGp5+6PPD4B72yvlyBb/iPsZmPmvcPTRPxdb9d+HOVuQpjMsjyVCi 6Bb50+skkT3uvoFhp74s33pgI00SKD7a4c3bQngqhQGXbqR9rORQhbwwy/b9JW9NyDbU U3GcgFFOzSQY7uEmpfa+5UrS9F9qCSbIbCMkwebYP7V+Sq+O5WVLD51yMHUkP54gaPGp 2czRHD//G5qkzKdw1mkPnoM0uDzn37h2rzgjze53VGHRzl4J91kdlSNFjlI0Svw/R9iz riJ4zILR8k9aRalRNZsJ9wFQ945ejtf9D3fChaSQD+49YCNDxUU7ya6A+kuwgmepi5JH yk0Q== X-Forwarded-Encrypted: i=1; AJvYcCWw7Vht6M6A1wNbp5SCCMS9VTvfZ4Qdy7Gs/vJ7KB33wNLrjzho4/fFCiwGhA35RQYwoypvOS5AU0qG@lists.linux.dev X-Gm-Message-State: AOJu0Yzp9TqiXw0jUaOc2gztivnfrHOR9VjO2hKNDk2DZXbKOmGmphMK 0UH9YG0d2KbTH9Ii+L9Se6JLmYhNaw3BbNi0C97ZjIqh8qCHQCtEAWUn8QN2gke2uBYxSWwl2xl vaWPu816QkYhG1mtYLp9Oh0zFP4S0bcGXGMs8ysc15DsMq8iw2CwqXEU6FOs= X-Gm-Gg: ASbGncsTkdNvjhlYOcPkRaxwz76znvFBGR+WFBOOtYQ9wcXwkuOZ5ynGChsiGJXvab4 rplvdAcw+E048WpYr3TakVuyE7kXCVipRer+tCJ02GaoC7Xg5eFiBweobSxl5ngHmBlsUDZLwh6 JfI6b+FPckxp4a0pw8jUDUdBK/+DaT6m68u0ABH5RJYfz0tcs7L5aRFiF83U0aMIXAWJ75Xx8XG hTN6U0emGcDf3Ogv03vc2JUFPLJXZHeC5Pil+cW7QWt2qPQdJlVuHIx6zQTrGqEjw86p+WTb4oB sAh4caYor88W X-Received: by 2002:a05:6a20:6f0a:b0:203:de5e:798c with SMTP id adf61e73a8af0-20a87758d04mr2491492637.18.1745992062571; Tue, 29 Apr 2025 22:47:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE2yvTT56xhp4nevnnTnhdd5Vxurc2bkepUSfMbuUK1rX9UIiG+hWa401GgVAzKuOXYEii5qQ== X-Received: by 2002:a05:6a20:6f0a:b0:203:de5e:798c with SMTP id adf61e73a8af0-20a87758d04mr2491475637.18.1745992062247; Tue, 29 Apr 2025 22:47:42 -0700 (PDT) Received: from [192.168.68.51] ([180.233.125.65]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-74039a3100dsm787733b3a.90.2025.04.29.22.47.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Apr 2025 22:47:41 -0700 (PDT) Message-ID: <9c998d71-0368-4f93-ab37-7933bec9b419@redhat.com> Date: Wed, 30 Apr 2025 15:47:33 +1000 Precedence: bulk X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v8 09/43] KVM: arm64: Allow passing machine type in KVM creation To: Steven Price , kvm@vger.kernel.org, kvmarm@lists.linux.dev Cc: Catalin Marinas , Marc Zyngier , Will Deacon , James Morse , Oliver Upton , Suzuki K Poulose , 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: <20250416134208.383984-1-steven.price@arm.com> <20250416134208.383984-10-steven.price@arm.com> From: Gavin Shan In-Reply-To: <20250416134208.383984-10-steven.price@arm.com> X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: jo8-TrKYNztTABz5B-GbW4xz0xFwyzSXKUjuSxBubhk_1745992062 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/16/25 11:41 PM, Steven Price wrote: > Previously machine type was used purely for specifying the physical > address size of the guest. Reserve the higher bits to specify an ARM > specific machine type and declare a new type 'KVM_VM_TYPE_ARM_REALM' > used to create a realm guest. > > Reviewed-by: Suzuki K Poulose > Signed-off-by: Steven Price > --- > Changes since v7: > * Add some documentation explaining the new machine type. > Changes since v6: > * Make the check for kvm_rme_is_available more visible and report an > error code of -EPERM (instead of -EINVAL) to make it explicit that > the kernel supports RME, but the platform doesn't. > --- > Documentation/virt/kvm/api.rst | 16 ++++++++++++++-- > arch/arm64/kvm/arm.c | 15 +++++++++++++++ > arch/arm64/kvm/mmu.c | 3 --- > include/uapi/linux/kvm.h | 19 +++++++++++++++---- > 4 files changed, 44 insertions(+), 9 deletions(-) > Reviewed-by: Gavin Shan