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

[PATCH v2 0/6] x86: reduce cache flushing overhead


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 3 May 2023 11:43:41 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.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=4Qwx2nQ1Z3b4p2Wd1pGiSoSwuiZ9EYUJViH5NdLyHps=; b=dufUCTfLXKqyjgptp1iOZTWPPYfzECmxfAzmTaGlyrh9GW+LyK9LHiuJDJKUbLXWrQT+YoUWo/w8X2rt1+niE0uqFrdCK5ezlXpK0bdCT5gch9RBnJdANYvswpdW25uzhqDrB5y7I4g2ggkFzf8cZenUmfXjbL/bFB8/MxPMI6qtUi2sS3gAScs5UGP2EzocKHWn5m/TYyarPbN1AVL5NBSg081iiDCftz4L70rtZYYbQaS0uydZvEJaPpp4jh7To17opIurqh/VyJW0OhZF9z1wAykjbQIGoShZzMji6qPLk1butwNfcsHycZhOCyPzBfy38UcMpsfuYVwsmL93tQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nvlVrJCN1wpMUgj5RBZnno5n0WKap57OL1+JRDZ+F+g+KkFqqEPEh/ZJ+fYg8GTyCIw9EHZb83WR1IYoR6uWXPuj6xwsItRbGt4/wzYmDPn3EL+IUJy5eBWL75MDauAz4vBkBKsZkBB2ZBljNfWnKuGKloYUCqqR02mL9l/3zyX1Tsk5LWLZsO/NEGbnkEvs1ooRtbtlOXmKy3mr1lEqxF+lVFBsZRGdizqEGK1EmlEBcCdiOuhxoouVjYQQJXIFnTRlup8qFaz7zgd05vpIBveqO0A5QyhPXI5fp7ScdliD/mfYRxaQ8yPfMwlcFqc4/cWMJRerBYIdNJRexF8N1A==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Wed, 03 May 2023 09:43:56 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

..., first and foremost by using cache write-back operations instead
of flushing (evicting) ones when available and sufficient for the
purpose.

In the context of making the last patch I started wondering whether
for PV we don't flush (write back) too little for MMUEXT_FLUSH_CACHE:
Just like for HVM, pCPU-s a vCPU has run on before could still hold
data in their caches. (We clearly still flush / write back too much
in MMUEXT_FLUSH_CACHE_GLOBAL even with this series in place.) We also
can't call this the guest's responsibility, as it may not have any
means to have one of its vCPU-s run on the intended pCPU.

v2 is merely changing some names, compared to v1. Other discussion
on feedback sadly looks to have stalled.

1: x86: support cache-writeback in flush_area_local() et al
2: x86/HVM: restrict guest-induced WBINVD to cache writeback
3: x86/PV: restrict guest-induced WBINVD (or alike) to cache writeback
4: VT-d: restrict iommu_flush_all() to cache writeback
5: x86: FLUSH_CACHE -> FLUSH_CACHE_EVICT
6: x86/HVM: limit cache writeback overhead

Jan



 


Rackspace

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