Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1487069rdb; Mon, 19 Feb 2024 18:48:19 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWprrDcgxVaJGO7jp7c6gPb2E3DAevnvrCiqu8PPcDI8myH32TiyT0dGJ6RKLwWsyRor/3m2+Wx0BdLkmc+6wiJq5/iQlf5m7r2TlknzQ== X-Google-Smtp-Source: AGHT+IFHI9VhV+DnouveZ0d6wj3qlyaYGHII7Zpkg5uI6glVbz+DcVqyIaKiFVUXd5n+akBtWtJG X-Received: by 2002:aa7:990f:0:b0:6e2:84fd:f1f1 with SMTP id z15-20020aa7990f000000b006e284fdf1f1mr5281223pff.13.1708397299314; Mon, 19 Feb 2024 18:48:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708397299; cv=pass; d=google.com; s=arc-20160816; b=Wj1bCTGixn69jkRsKAVnMoUQPWTr2kAmSA9LgCtBmsnDe/itQ/HDsL9hBJKrKAAbcU F+ppz0d+Xfug4fn0/TIxpT8h4fx00fE7DEvdPbH8rNnmHxQhfKVqmKOszvih4muQASgd r0K+p4ia9216UbRLhHKv1JueliPfCUi1cdlQylEAMS5sKq9j7ybnLpuJZjlD0+9bB0nC dusazppXacjLnqNYEOzRWmDIT+OEJE1Oywz3/jZNP+H+owgMJJAmVbFzygRc5KrrgzJj aeqqlP8kCOhWTEPm/ixkD+h0tmouLeINrzRqnPs2JRb5qCYltbNwJZE7V8wMVJLuHZlY IWwA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:subject:cc:to:from:date:dkim-signature; bh=Z4i2HgUFZGcYAnFlUo70X5l7wimYk9KDMghPc8ouFB0=; fh=dyjeEwxPlP27SHgeKxqv5scEgjOVUrTYFtYPgg1lnV8=; b=mmp42sT/0w2BrqP8CtojjVh1EghALWPtHIGYGnwAgUoOmk+IaK6pOwIcTicrMJCb7P SUC6YYhDoCPsRGtuY8WIIfz1BceIE/W4CGB0Wn4Zl5RdwVZHzkEbIY5QZj5Iq6S8+RPt 5Lo7sFkPOrgaT0HEdFfSOXfR+o+DGaGoe1VvmGU7WPGKUyQVAv8AFko98mWi42H8rueW zUnbKsTNtrBnDIZ1wEEpLeokcH5MwqvPEdv3zhvvK8PHNfRl8o0axdsAjsC/pNYRcQ+j aaJoZmwd3C7WV3EJNJI/Paabt/tpwZ7aEA92ox7+MAzU2wnlhKD2WfvnNbgq3I7u4EiV QThA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=sVuqROMi; arc=pass (i=1 spf=pass spfdomain=canb.auug.org.au dkim=pass dkdomain=canb.auug.org.au dmarc=pass fromdomain=canb.auug.org.au); spf=pass (google.com: domain of linux-kernel+bounces-72225-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72225-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t9-20020a056a00138900b006e0733b3439si5546869pfg.296.2024.02.19.18.48.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 18:48:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72225-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=sVuqROMi; arc=pass (i=1 spf=pass spfdomain=canb.auug.org.au dkim=pass dkdomain=canb.auug.org.au dmarc=pass fromdomain=canb.auug.org.au); spf=pass (google.com: domain of linux-kernel+bounces-72225-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72225-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id F3B10284C5F for ; Tue, 20 Feb 2024 02:48:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24F7F4174A; Tue, 20 Feb 2024 02:48:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b="sVuqROMi" Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (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 450EB2E405; Tue, 20 Feb 2024 02:48:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=150.107.74.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708397289; cv=none; b=p+/+47ZuGVG+jbN9n8WiwRKJyQYYQpcZ0+gz8ezoalf6IG8A0m1drvM3TS4eHDadryq0M95CxIwFscU2fawT7AkhVDDm0XqhvLvMQ274LBgdHpPILbDVGEkDMwvbhKdPJJsMxmQn727Fy0ySkMCWF4axCC1MDcA9NM7kRsuLJjw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708397289; c=relaxed/simple; bh=gW8PiThJNQZ5FS6YlG6JbBxKrlbLQJE1IW//TvIJxPw=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=DgCZAsjw2FvIeI+6I3oMgAkSTVn0zXkTeh5anoHqhxUIpm6Dm0t+3gDnzLbZbZf8l1nUV/o2dTh5CA/nTcwVPyOy4NuQxRJwr/98hbl1UgR0YY6voLHFjIgYF8Z9OrgmdT0WtPgcX9bqXZqTIvlOeM6M5Ibrhx7EL1VsijafhIA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canb.auug.org.au; spf=pass smtp.mailfrom=canb.auug.org.au; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b=sVuqROMi; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canb.auug.org.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canb.auug.org.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1708397282; bh=Z4i2HgUFZGcYAnFlUo70X5l7wimYk9KDMghPc8ouFB0=; h=Date:From:To:Cc:Subject:From; b=sVuqROMiVrTxIczX4g1b2YhlfT9Y1oa/RcBKuXd1AY6eHRELs8EGsfq+sDYJce7rp go7p24EFHF/oYrTzLOojgEsPdeU7JGuX0Cd0L2QqBhUrCf9rJnuxsZDHnntOJAvQWU PIiDgq5+rhUYQTIWWWI1cN6OFzcBqSPU3hSAGCQo0/k/FXBcX28YZQVUEqilF9D2rr CljuIvaRPGeoRzFZT8MqxX0opl+SqCN7ZPD17GkMIsZ2Ok2vOtu+PbQftJZ4v4gHrM CP0CiasxhIyVCT/jxOHDLCOmrd7k/zWg2fFl6iZGLwIV6qKjd6nlf0pkRuciOWXkVk BXfjkcA+b9mGQ== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4Tf3js5dmBz4wc7; Tue, 20 Feb 2024 13:48:01 +1100 (AEDT) Date: Tue, 20 Feb 2024 13:48:00 +1100 From: Stephen Rothwell To: Sean Christopherson , Paolo Bonzini Cc: KVM , Linux Kernel Mailing List , Linux Next Mailing List , Paul Durrant Subject: linux-next: manual merge of the kvm-x86 tree with the kvm tree Message-ID: <20240220134800.40efe653@canb.auug.org.au> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/A144DtVpcjR0fVyttz24FeA"; protocol="application/pgp-signature"; micalg=pgp-sha256 --Sig_/A144DtVpcjR0fVyttz24FeA Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, Today's linux-next merge of the kvm-x86 tree got a conflict in: include/uapi/linux/kvm.h between commit: bcac0477277e ("KVM: x86: move x86-specific structs to uapi/asm/kvm.h") from the kvm tree and commits: 01a871852b11 ("KVM: x86/xen: allow shared_info to be mapped by fixed HVA") 3a0c9c41959d ("KVM: x86/xen: allow vcpu_info to be mapped by fixed HVA") from the kvm-x86 tree. I fixed it up (I used the former version of this file and applied the following fix up patch) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts. From: Stephen Rothwell Date: Tue, 20 Feb 2024 13:44:11 +1100 Subject: [PATCH] fixup for code moving to arch/x86/include/uapi/asm/kvm.h Signed-off-by: Stephen Rothwell --- arch/x86/include/uapi/asm/kvm.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/uapi/asm/kvm.h b/arch/x86/include/uapi/asm/kv= m.h index 0ad6bda1fc39..ad29984d5e39 100644 --- a/arch/x86/include/uapi/asm/kvm.h +++ b/arch/x86/include/uapi/asm/kvm.h @@ -549,6 +549,7 @@ struct kvm_x86_mce { #define KVM_XEN_HVM_CONFIG_EVTCHN_SEND (1 << 5) #define KVM_XEN_HVM_CONFIG_RUNSTATE_UPDATE_FLAG (1 << 6) #define KVM_XEN_HVM_CONFIG_PVCLOCK_TSC_UNSTABLE (1 << 7) +#define KVM_XEN_HVM_CONFIG_SHARED_INFO_HVA (1 << 8) =20 struct kvm_xen_hvm_config { __u32 flags; @@ -567,9 +568,10 @@ struct kvm_xen_hvm_attr { __u8 long_mode; __u8 vector; __u8 runstate_update_flag; - struct { + union { __u64 gfn; #define KVM_XEN_INVALID_GFN ((__u64)-1) + __u64 hva; } shared_info; struct { __u32 send_port; @@ -611,6 +613,8 @@ struct kvm_xen_hvm_attr { #define KVM_XEN_ATTR_TYPE_XEN_VERSION 0x4 /* Available with KVM_CAP_XEN_HVM / KVM_XEN_HVM_CONFIG_RUNSTATE_UPDATE_FLA= G */ #define KVM_XEN_ATTR_TYPE_RUNSTATE_UPDATE_FLAG 0x5 +/* Available with KVM_CAP_XEN_HVM / KVM_XEN_HVM_CONFIG_SHARED_INFO_HVA */ +#define KVM_XEN_ATTR_TYPE_SHARED_INFO_HVA 0x6 =20 struct kvm_xen_vcpu_attr { __u16 type; @@ -618,6 +622,7 @@ struct kvm_xen_vcpu_attr { union { __u64 gpa; #define KVM_XEN_INVALID_GPA ((__u64)-1) + __u64 hva; __u64 pad[8]; struct { __u64 state; @@ -648,6 +653,8 @@ struct kvm_xen_vcpu_attr { #define KVM_XEN_VCPU_ATTR_TYPE_VCPU_ID 0x6 #define KVM_XEN_VCPU_ATTR_TYPE_TIMER 0x7 #define KVM_XEN_VCPU_ATTR_TYPE_UPCALL_VECTOR 0x8 +/* Available with KVM_CAP_XEN_HVM / KVM_XEN_HVM_CONFIG_SHARED_INFO_HVA */ +#define KVM_XEN_VCPU_ATTR_TYPE_VCPU_INFO_HVA 0x9 =20 /* Secure Encrypted Virtualization command */ enum sev_cmd_id { --=20 2.43.0 --=20 Cheers, Stephen Rothwell --Sig_/A144DtVpcjR0fVyttz24FeA Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmXUEuAACgkQAVBC80lX 0Gzk5gf/ZqyZKU4mrYdDzO3ayPcqIfP0uGNR0Y9blW43TEkmk1AbzT5bzIPpOFZZ 4vX2y2LfrfZkeo5pK1uiknq50Z8RwX3yyeYVM1W5/az/z8BHzsEuVbonw3vTjI2v 3Ompv+y2Vs83d31ZCWqmNnuMhL95gDeiZJkr8uPs+wZ8UmHxzf12u7v6nTaeQXj9 oosPhKo95u8ThiW4xHmkpDx6sRbX5l/kzaIUAj7r9GyX5zGbe2M75UHVPZe+dY2K 7sLHKU+ccvEb8XdG7afg426byR8YmTdmGukYz8NM6xQQbwVTzcWsmeuK24UQXTpg 5hIv1dpGhPos3I5s1Pk4gcKpvY67GA== =JsQc -----END PGP SIGNATURE----- --Sig_/A144DtVpcjR0fVyttz24FeA--