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

Re: [PATCH v4 6/9] domain: map/unmap GADDR based shared guest areas


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Thu, 28 Sep 2023 12:04:26 +0200
  • 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=arcselector9901; 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=zPJL4F6Muxwvcbd1+7+UbRxgAoi/5KhWAtvuw5wuwzw=; b=CbF3OhdSIOo9amTW78c62kn1/v7CimA9idvN2CG/jskfD3yhE+rQI8K7p3ytTZW1Cw3lz9i+xQBJfXNHIGH54rx+7fG/Pcdt1hzss55taVlceyBhu3+Z3gd1NFNkB+6KorxgRxV8YuQTNRrCRunrHWRSwerTWzL7k/WwdwW6KyOktzQQHmnMEIFBp7mpF393avsn1rsOkrOKfQluXV8CaLKptK/l7tHArzGOpLoctXOIw5uaukAVgYB03RD6Xp3tfwaf/q9cmeMQgOMiG5M2ISQxCHnNSaoYdWEKu8fZrmK43uN6Reg8GLcO0BJ4UvfSJZ+P8WnLppk5iGOdIlMMYg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=THOPFS/e5cQtxhDmvFB8Pf3i19JmqTBMjHb8qfoHR9yOEMqNrqcPOij7UA9g5i8pfv0gzSUs64vs3IIkiG0aCt2NujhFPx2l2+MauOnIu+rVOnoLVlNfSYzU9RczcFjM6hbuuwA0nY1qE7ZPUV2P/oc9rk/ZR5VxPnYPAKk/v+5RZy6Ief1zxSGxDcI28ho132vIdTmFHmqMTmWCkrt1M/LXl/74qTGLWYYmtQPytJR5zqqjUXi88i19P6XzyFNg7t7x3xgSJoownKr84BadUilFj3wxPcyp5PpJQbS9+Mbt5odq4xhBQ6U0uDjHUry9yVePd7pqbsjozvrwP6ec/A==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Henry Wang <Henry.Wang@xxxxxxx>
  • Delivery-date: Thu, 28 Sep 2023 10:05:00 +0000
  • Ironport-data: A9a23:hGQ8ua9zfWKLK1/Pd78QDrUDW3+TJUtcMsCJ2f8bNWPcYEJGY0x3z DAbUWnTM6mJazP1fYglPYqxpk1Q6MDcmtdlSFY9+C08E34SpcT7XtnIdU2Y0wF+jCHgZBk+s 5hBMImowOQcFCK0SsKFa+C5xZVE/fjVAOK6UKidYnwZqTZMEE8JkQhkl/MynrlmiN24BxLlk d7pqojUNUTNNwRcawr40Ird7ks01BjOkGlA5AdmNKob5Aa2e0Q9V/rzG4ngdxMUfaEMdgKKb 76r5K20+Grf4yAsBruN+losWhRXKlJ6FVHmZkt+A8BOsDAbzsAB+v9T2M4nQVVWk120c+VZk 72hg3ASpTABZcUgkMxFO/VR/roX0aduoNcrKlDn2SCfItGvn9IBDJyCAWlvVbD09NqbDkliq qEoEj4qcyuduOfsx523RsttptUseZyD0IM34hmMzBn/JNN+G9X4ZfyP4tVVmjAtmspJAPDSI dIDbiZiZwjBZBsJPUoLDJU5n6GjgXyXnz9w8QrJ4/ZopTWMilAuuFTuGIO9ltiiX8Jak1zev mvb12/4HgsbJJqUzj/tHneE37WRwnKrANNKfFG+3t5I2WGO6EMXNCYXd3nj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N/jYJzQLB0DZkTTRl M+YRmbHrQz0qnsYA61vCTs
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Thu, Sep 28, 2023 at 09:16:48AM +0200, Jan Beulich wrote:
> The registration by virtual/linear address has downsides: At least on
> x86 the access is expensive for HVM/PVH domains. Furthermore for 64-bit
> PV domains the areas are inaccessible (and hence cannot be updated by
> Xen) when in guest-user mode, and for HVM guests they may be
> inaccessible when Meltdown mitigations are in place. (There are yet
> more issues.)
> 
> In preparation of the introduction of new vCPU operations allowing to
> register the respective areas (one of the two is x86-specific) by
> guest-physical address, flesh out the map/unmap functions.
> 
> Noteworthy differences from map_vcpu_info():
> - areas can be registered more than once (and de-registered),
> - remote vCPU-s are paused rather than checked for being down (which in
>   principle can change right after the check),
> - the domain lock is taken for a much smaller region.
> 
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

Acked-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>

Thanks, Roger.



 


Rackspace

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