[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 1/3] x86/hap: Wait for remote CPUs during TLB flush
- To: xen-devel@xxxxxxxxxxxxxxxxxxxx
- From: Ross Lagerwall <ross.lagerwall@xxxxxxxxxx>
- Date: Wed, 1 Apr 2026 17:35:19 +0100
- 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=z1T0p5+LO56SqZhy9doBFm6QObAwtVsf6lJgM5eq988=; b=Fh/QkfRMfQAqyi7datx7mqaalM3qztSmCYrJqApm26/WIqpvwqgiczBUB+Ry7oF4AtX9Pw+N1eEh2PUVYGMDyxIRKGGRhpM39jqVqE/t+YdKqGVaXIwre3BgQZTeqCcaCIYNSmvZ2V0ax2tL53H5VSgjawueBaC39iVAl22IZZiPhSaHd0LhERHmWmIGiHuocoSXqguUcsBbTnqaX1qW4xHbBlVJcZGiqO1r6xrsIBbfdUVpyI6JaZ4t9zrX1597lik72mF/oxS4uPc2HuxhJcbA3O7oc+8qBzKLlq97XA4amo8Ngv5QUH6tT85pQyLBx6yjTNflHfD54GoUpbYY+w==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=dm5WlS4fHjM4OOi5FDFbF8EwnFfo79vrL5EziX9KsAQfnj7drgl3CCcjMUHU0Gb9SB5B4A4FyRWoMZcbjwsGI+OBc59Eyg92Ugn9fDVlp4D8zR7tLpbCbXFOqU46GfdYOjj9O4hxLpkmJ4K13TerGI+XGd0GxfQ1z28ZFpvb6iuZSIhbhR0X0mtt7Z4gERatJfnUqyMWEEDplgiCPdZ0/vqqblPLUnBZOnQh43j9eOkeAtLACc6nkkYK25ToqxHpHxkU0cblqzy+HFt4xbSSCJ5VbKfOi4fDajEbSGyScrMAMAdYuuyh0loagq+pTePT+fuDjbN5a0LU4Gab6WCrWQ==
- Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=citrix.com header.i="@citrix.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: Ross Lagerwall <ross.lagerwall@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Delivery-date: Wed, 01 Apr 2026 16:36:01 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
A future change to on_selected_cpus() will change the semantics of the
wait parameter so that it doesn't wait for remote CPUs to "check in" if
wait == 0. Adjust the call here to retain the existing behaviour so it
continues to wait for the remote CPUs to VMExit.
Signed-off-by: Ross Lagerwall <ross.lagerwall@xxxxxxxxxx>
---
xen/arch/x86/mm/hap/hap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xen/arch/x86/mm/hap/hap.c b/xen/arch/x86/mm/hap/hap.c
index 5ccb80bda5d3..fb48e470bbf5 100644
--- a/xen/arch/x86/mm/hap/hap.c
+++ b/xen/arch/x86/mm/hap/hap.c
@@ -763,7 +763,7 @@ static bool cf_check flush_tlb(const unsigned long
*vcpu_bitmap)
* not currently running will already be flushed when scheduled because of
* the ASID tickle done in the loop above.
*/
- on_selected_cpus(mask, NULL, NULL, 0);
+ on_selected_cpus(mask, NULL, NULL, 1);
return true;
}
--
2.53.0
|