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

Re: [PATCH v6 3/7] x86: re-work memset()


  • To: Jan Beulich <jbeulich@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jason Andryuk <jason.andryuk@xxxxxxx>
  • Date: Mon, 23 Jun 2025 18:18:34 -0400
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=suse.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • 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=mB6Vy5XF5HQ0c+7yK3aoA/i6dYI0TsGVFvh/gqBdrpc=; b=YlO4SUqQ01eVLn4BB3QhpPx1JwscoGUZLUctenSAQAvA5v5VMKRDpvD3sEQosxTNkmm1sJM9kdJoxmRGknQglSiYgT9lY53PN0HCF/nXV6s5LIKRda0kTAOGRWXwpjQMXr23/9fEZXrnIyiUTgDe6Q6QEeJ2v4Q13/zgr2V/SPBIfLVMafT2VDDIIJh7ZEdoniSHG0ptE7Q3g/2LZ6Ok8esmGg8W/viah6cADks3n4cfdCzwpndxFd4sYtQnn5QOYVTAJyVXIUjUWd000y2ztRcxQAGWHF9HOvFXFoL7xW24ckIoBHuCtLpMtTmtICGVu3WRS4wbKTnHyeQh6U6RBQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=o/v6yYXMESkN0ConGFWF8vreuyCv3Zdnz7TaDdKHUkm2VYWmQOJQ9m/m+sYJ1oaHvd0gdeL3OBFgiZ04kXsWd+Y1nVu/tCEyFWlhsjQuE7+6elSEqDCPHwMpsvx9pW2xyDqyHnRwBRzV1dIzWc6Go8Y6CQht8MK0JL1R+0ti5lRP0OJ9jBBdwZaSW5UG+SkJU1mgbo0icWBDRF/ACVZCR7Zx1EQ4iRDOWYZXb5k9so0duhz/oXV4RNqqo+ilrSQzfQ0uIJOkqwIZFG6w45B8BsV9MzRo2FUSLI20kf6QdiO5fGOHJ5NnnRY5oYBV1V8g0EtXwojmkgN2IEPymAaQpw==
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Mon, 23 Jun 2025 22:21:20 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 2025-06-16 09:00, Jan Beulich wrote:
Move the function to its own assembly file. Having it in C just for the
entire body to be an asm() isn't really helpful. Then have two flavors:
A "basic" version using qword steps for the bulk of the operation, and an
ERMS version for modern hardware, to be substituted in via alternatives
patching.

For RET to be usable in an alternative's replacement code, extend the
CALL/JMP patching to cover the case of "JMP __x86_return_thunk" coming
last in replacement code.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

Reviewed-by: Jason Andryuk <jason.andryuk@xxxxxxx>



 


Rackspace

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