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

Re: [PATCH v3] x86/domain: adjust limitation on shared_info allocation below 4G


  • To: Roger Pau Monne <roger.pau@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Thu, 5 Feb 2026 12:13:24 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.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=jNUhN9lWdI54/sSo9y/2/3hOHiXdlGEsa4Q3yI/diVc=; b=UBNRh4J5IgSMFiPMC3bkCHu3riQQXuTmhuMd6CVVt9PlxkPDBHO54GtyljcvNeEmDAlHkdx0FjWXCtJch/9tDCU+uSS7Ew/vApL04fsaIiVOhxtbseKgFT056zvZGHQJKhRxFIU+SF/fHYGbpwX+rzFyfnXuMzIGsYyOws0i+mz6udfQOXmNClZl9Iv1BPDCLibLf9/d4In15jpIo95pcKjgjoNv7cYKEwjWd5cqYfAMAykXEtY0BoSizsImPeta/qeJlIEUmbA7n7o1UcGGV6PF0+4sLDS30vB90ficfQoXIQkwAcuV3yyRWoPfzy6dhTRaGcIDwT8c4em9YW2sFQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=yjRPERWmfgOZs9I2claEN08KlYRo9o+FHTiIYpQjmrKoFiAkuzqQsiNy/R/ex2/RLM16JxYAor8gUOjBKYWLu8DDgS97H1zAvmYWcLtgd4sjewA/PMbQEtHbUY3CCKe+bDP4A+hE5HmuDXX0+p//Sgx8iS8+dOIkokUQH89WPBva0/6SQg3XglFv4h2tsV4/+LACo3WkEmN2ZUcgF0CMTKySfHTnODdZ6QfIbk6DZG/8LHd3kEoLkaWuNivhb/zVwc/NobRMj8D4wlCdurubCPxNTOcgz2p+4L8VloP2bkWcTCnzEkmYeIftTpZMJhs6J15I7wWHTjK8DOVcLdDurQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • Delivery-date: Thu, 05 Feb 2026 12:13:44 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 05/02/2026 8:03 am, Roger Pau Monne wrote:
> The limitation of shared_info being allocated below 4G to fit in the
> start_info field only applies to 32bit PV guests.  On 64bit PV guests the
> start_info field is 64bits wide.  HVM guests don't use start_info at all.
>
> Drop the restriction in arch_domain_create() and instead free and
> re-allocate the page from memory below 4G if needed in switch_compat(),
> when the guest is set to run in 32bit PV mode.
>
> Fixes: 3cadc0469d5c ("x86_64: shared_info must be allocated below 4GB as it 
> is advertised to 32-bit guests via a 32-bit machine address field in 
> start_info.")
> Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>

Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>



 


Rackspace

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