On Fri, Dec 28, 2018 at 12:39:34PM +0000, Andrew Cooper wrote:
> AMD processors don't clear the base or limit fields when loading a NULL
> segment, and Hygon processors inherit this behaviour.
> 
> Express the logic in terms of cpu_bug_null_seg, and rearrange
> preload_segment() have the more predictable condition first, not
> reference AMD specifically.
> 
> Tweak the inline ASM, as `mov %sreg` can be encoded with a memory
> operand.
> 
> Signed-off-by: Andrew Cooper <[email protected]>

Reviewed-by: Roger Pau Monné <[email protected]>

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to