Re: [Xen-devel] [PATCH 3/3] x86/traps: Misc non-functional improvements to set_debugreg()

2018-04-13 Thread Jan Beulich
>>> On 12.04.18 at 18:55, wrote: > * Change 'int i' to being unsigned, and move it into its most narrow scope. > * Fold the access_ok() checks for %dr{0..3}. This halves the compiled size >of the function. > * Additional newlines in appropriate places. > >

[Xen-devel] [PATCH 3/3] x86/traps: Misc non-functional improvements to set_debugreg()

2018-04-12 Thread Andrew Cooper
* Change 'int i' to being unsigned, and move it into its most narrow scope. * Fold the access_ok() checks for %dr{0..3}. This halves the compiled size of the function. * Additional newlines in appropriate places. Signed-off-by: Andrew Cooper --- CC: Jan Beulich