[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[XEN][PATCH 5/5] x86: constify has_32bit_shinfo() if !CONFIG_COMPAT


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Grygorii Strashko <grygorii_strashko@xxxxxxxx>
  • Date: Tue, 11 Nov 2025 17:54:18 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=U/lnQxdGMZSF9FLwYWN8SmKP15cEH8ABapnXho5cQ0U=; b=YdHnE52jxLMnmuFAFjEatlfM/i/AWas4z7KG7UE9ZTXhKJuPMhodhZR/0V7Kbh5AIkptoTxGM5vQJO85Uzx9+hKU5bUXn+A9tmaOkOsKqdmqeqjwzZTTV2roLvZKpFI21GRCbchHy8XU5uKj9i4FwzJ8qoqa3mhctfTe2eFnmcsptRZ5sS58kUZpB3J8a+5cp1Ae5XgZPq4iHaIK/QxAGBZvkMpSH3d6b+d5GtquTdCjg/5KPS4dI6B5Xp/HOam0ZNLTlGJVQ3GGWwzeClOqp9vZbrmvS/iYzYkwSVf5zNqakgxAGVWpjgFtQI/6xeyTutEce8IRjMz9kxZGzptaZA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=NNie5hzaFx/BQCr0Xl1Fo1fX/mVN2VoQi4ourxs/zJQJ9F0uVZYUAotVLlPWNeFWraNsNeUm3/QtIxtgh4HdVal2htt3cPQw3RH2ePmpredffOTNaEKPWgxHo1Z/A6v/sGyB5XW7+ILo3GF7YpIqGsYOF8ya4AXL3n8t1HXNDnS0YTTr5m+rcTl0/b+3jNhYwCtDeaCq9/7LzIBqt0Jqmyxl4oGy0FkHIDRQd10KBjpXftvaO2CVit3RVsEH8wr373jor9yNGmbh1Sjpe67oiIEfXiIJeor8e/VklDKcC8gO9AbLbPNRfGWG+Ys6GbgBJB2XAouNXETqoU0/sOJs9Q==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: Grygorii Strashko <grygorii_strashko@xxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>, Jason Andryuk <jason.andryuk@xxxxxxx>
  • Delivery-date: Tue, 11 Nov 2025 17:54:24 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHcUzQz61ny0hXUD0mGRD03jggr5Q==
  • Thread-topic: [XEN][PATCH 5/5] x86: constify has_32bit_shinfo() if !CONFIG_COMPAT

From: Grygorii Strashko <grygorii_strashko@xxxxxxxx>

Constify has_32bit_shinfo() if !CONFIG_COMPAT.

Signed-off-by: Grygorii Strashko <grygorii_strashko@xxxxxxxx>
---
 xen/arch/x86/include/asm/domain.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/xen/arch/x86/include/asm/domain.h 
b/xen/arch/x86/include/asm/domain.h
index 5df8c7825333..6883b7226aa7 100644
--- a/xen/arch/x86/include/asm/domain.h
+++ b/xen/arch/x86/include/asm/domain.h
@@ -12,7 +12,8 @@
 #include <public/vcpu.h>
 #include <public/hvm/hvm_info_table.h>
 
-#define has_32bit_shinfo(d)    ((d)->arch.has_32bit_shinfo)
+#define has_32bit_shinfo(d)                                                    
\
+        (IS_ENABLED(CONFIG_COMPAT) && (d)->arch.has_32bit_shinfo)
 
 /*
  * Set to true if either the global vector-type callback or per-vCPU
-- 
2.34.1



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.