From nobody Tue Dec 16 13:51:37 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass header.i=teddy.astie@vates.tech; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=vates.tech ARC-Seal: i=1; a=rsa-sha256; t=1747387934; cv=none; d=zohomail.com; s=zohoarc; b=NQ5hp9jgXFCte0oSmlAA9/4rgSy7C8R1BB/pEDEu0USNtzLvoHiak1mO7ZAkn98wm0Uz9xKJt2eGYWRvhwN/Ay4s/mjyTjHqzCZAD+qC74q8py2ZoWhTXzRlj4cVSSZUJWYs1Uc0iduaUdITKkk0w/9E1YI7RtdnkiZIgw4vipQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1747387934; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=yEIj4vYbaqS4Y1WKd4I6vOFuJvvhA1ynFIt3vpuTIg0=; b=gi9axndwoi8pN6nuIWooWDzGKHKgcRMlxedLFVMp43I+iZTKYOONtmcpjEggIVGxLgHgnpOu5vWlW6VYahHuPhvPGQ4SWFls8CRgxNce/bVxesUTcxIKneIbwItMG3FHxPeJY6qn0qFn6rPpEdkZLuGojqq2U9f9hpduvtUpX+I= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=teddy.astie@vates.tech; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1747387934819204.87955886147245; Fri, 16 May 2025 02:32:14 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.986618.1372156 (Exim 4.92) (envelope-from ) id 1uFrPv-000896-Nd; Fri, 16 May 2025 09:31:47 +0000 Received: by outflank-mailman (output) from mailman id 986618.1372156; Fri, 16 May 2025 09:31:47 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uFrPv-00088z-Kg; Fri, 16 May 2025 09:31:47 +0000 Received: by outflank-mailman (input) for mailman id 986618; Fri, 16 May 2025 09:31:46 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uFrPu-0007iv-C5 for xen-devel@lists.xenproject.org; Fri, 16 May 2025 09:31:46 +0000 Received: from mail133-28.atl131.mandrillapp.com (mail133-28.atl131.mandrillapp.com [198.2.133.28]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 955402fb-3238-11f0-9eb6-5ba50f476ded; Fri, 16 May 2025 11:31:45 +0200 (CEST) Received: from pmta13.mandrill.prod.atl01.rsglab.com (localhost [127.0.0.1]) by mail133-28.atl131.mandrillapp.com (Mailchimp) with ESMTP id 4ZzMKQ0MMFzMQxdjF for ; Fri, 16 May 2025 09:31:38 +0000 (GMT) Received: from [37.26.189.201] by mandrillapp.com id 765e177ef22b48fc8d7dcece54076855; Fri, 16 May 2025 09:31:37 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version 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" X-Inumbo-ID: 955402fb-3238-11f0-9eb6-5ba50f476ded DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; s=mte1; t=1747387898; x=1747657898; bh=yEIj4vYbaqS4Y1WKd4I6vOFuJvvhA1ynFIt3vpuTIg0=; h=From:Subject:To:Cc:Message-Id:In-Reply-To:References:Feedback-ID: Date:MIME-Version:Content-Type:Content-Transfer-Encoding:CC:Date: Subject:From; b=uypxcY/kQP2Oej6nzc4EhhNRyNzUNO31XCilUP9I2f3Vew0ZJe1lPDrIIJMjfn4sv WfLw4mypDQ1KMK6CJ8jgWXFD5sr67Ww3ZaaCfyCG15fMvZL9UJvvoMmz+TBHJfv5D9 kO+X/1HkZCkXQ5RnNqJAxyBpLge9iZUpoVgkGh6DooOSg23TpLRXBLDoURXYhsKNXO DjzCP42l2zYin81l75ofZFG7h0zGUbh8fS3e9ThjVr2OaUEAEQiLHHYLfCDSDsicQ9 Iom79SpSXl128fdLuSlPBZkI52RWLzho2zgImsSfjT2mouHORo2H6GUGgJqWPrZsFt 1akqZMw5mYYvg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; s=mte1; t=1747387898; x=1747648398; i=teddy.astie@vates.tech; bh=yEIj4vYbaqS4Y1WKd4I6vOFuJvvhA1ynFIt3vpuTIg0=; h=From:Subject:To:Cc:Message-Id:In-Reply-To:References:Feedback-ID: Date:MIME-Version:Content-Type:Content-Transfer-Encoding:CC:Date: Subject:From; b=vH7sVi9DcWiyQXD5rAK1LnKqQKB53q+nzchgrgzTpZpR+GEUhR0tSg8Kggko6MSGU ayuqNYQ6WoZv3AVek9oVBu8L8Ch11AUY0MRXW5ZQKLm5tyVLVObZd1V/UyOux3DL8W C+310DuIIKQ1xnOnPwtzD32lFmV//zXm8B1Si7RmTSqBeqGS7WzbUVWOq1WH1YYWLW gJox0eyqhDfJd8dLJRl/lW0R5gKG+C4sngKrvQ5lslAln+p2WIeLeyYXC0v9gWMXft 7HRNP5vAi/4S+dRcgBTS461bUZpjmBz/SF7M4YnV8RiVefYlcDLyk40AujHO3dZQMF Tl+zqdua+2uSQ== From: "Teddy Astie" Subject: =?utf-8?Q?[RFC=20PATCH=2004/16]=20x86/public:=20Expose=20physaddr=5Fabi=20through=20Xen=20HVM=20CPUID=20leaf?= X-Mailer: git-send-email 2.49.0 X-Bm-Disclaimer: Yes X-Bm-Milter-Handled: 4ffbd6c1-ee69-4e1b-aabd-f977039bd3e2 X-Bm-Transport-Timestamp: 1747387897112 To: xen-devel@lists.xenproject.org Cc: "Teddy Astie" , "Jan Beulich" , "Andrew Cooper" , "=?utf-8?Q?Roger=20Pau=20Monn=C3=A9?=" Message-Id: In-Reply-To: References: X-Native-Encoded: 1 X-Report-Abuse: =?UTF-8?Q?Please=20forward=20a=20copy=20of=20this=20message,=20including=20all=20headers,=20to=20abuse@mandrill.com.=20You=20can=20also=20report=20abuse=20here:=20https://mandrillapp.com/contact/abuse=3Fid=3D30504962.765e177ef22b48fc8d7dcece54076855?= X-Mandrill-User: md_30504962 Feedback-ID: 30504962:30504962.20250516:md Date: Fri, 16 May 2025 09:31:37 +0000 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @mandrillapp.com) (identity teddy.astie@vates.tech) X-ZM-MESSAGEID: 1747387936845116600 Content-Type: text/plain; charset="utf-8" Signed-off-by: Teddy Astie --- xen/arch/x86/cpuid.c | 2 ++ xen/include/public/arch-x86/cpuid.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/xen/arch/x86/cpuid.c b/xen/arch/x86/cpuid.c index 8dc68945f7..e2d94619c2 100644 --- a/xen/arch/x86/cpuid.c +++ b/xen/arch/x86/cpuid.c @@ -153,6 +153,8 @@ static void cpuid_hypervisor_leaves(const struct vcpu *= v, uint32_t leaf, */ res->a |=3D XEN_HVM_CPUID_UPCALL_VECTOR; =20 + /* Indicate that guest can the physical addresses hypercall ABI. */ + res->a |=3D XEN_HVM_CPUID_PHYS_ADDR_ABI; break; =20 case 5: /* PV-specific parameters */ diff --git a/xen/include/public/arch-x86/cpuid.h b/xen/include/public/arch-= x86/cpuid.h index 3bb0dd249f..5405bf6fbd 100644 --- a/xen/include/public/arch-x86/cpuid.h +++ b/xen/include/public/arch-x86/cpuid.h @@ -106,6 +106,8 @@ * bound to event channels. */ #define XEN_HVM_CPUID_UPCALL_VECTOR (1u << 6) +/* Hypercalls can use physical addresses instead of linear ones. */ +#define XEN_HVM_CPUID_PHYS_ADDR_ABI (1u << 7) =20 /* * Leaf 6 (0x40000x05) --=20 2.49.0 Teddy Astie | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech