lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 29 Jan 2009 19:17:25 +1030
From:	Rusty Russell <rusty@...tcorp.com.au>
To:	Jeremy Fitzhardinge <jeremy@...p.org>
Cc:	Ingo Molnar <mingo@...e.hu>, linux-kernel@...r.kernel.org,
	"Xen-devel" <xen-devel@...ts.xensource.com>,
	"the arch/x86 maintainers" <x86@...nel.org>,
	Ian Campbell <ian.campbell@...rix.com>,
	Zachary Amsden <zach@...are.com>,
	Ravikiran Thirumalai <kiran@...lemp.com>
Subject: Re: [PATCH 4 of 7] x86/paravirt: selectively save/restore regs around pvops calls

On Thursday 29 January 2009 09:05:04 Jeremy Fitzhardinge wrote:
> +#define PV_SAVE_REGS(set)			\
> +	COND_PUSH(set, CLBR_RAX, rax);		\
> +	COND_PUSH(set, CLBR_RCX, rcx);		\
> +	COND_PUSH(set, CLBR_RDX, rdx);		\
> +	COND_PUSH(set, CLBR_RSI, rsi);		\
> +	COND_PUSH(set, CLBR_RDI, rdi);		\
> +	COND_PUSH(set, CLBR_R8, r8);		\
> +	COND_PUSH(set, CLBR_R9, r9);		\
> +	COND_PUSH(set, CLBR_R10, r10);		\
> +	COND_PUSH(set, CLBR_R11, r11)

It's kind of messy.  Can we do something clever here with token pasting?

Cheers,
Rusty.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ