x86emul: support clzero
authorJan Beulich <jbeulich@suse.com>
Thu, 14 Jan 2016 09:32:35 +0000 (10:32 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 14 Jan 2016 09:32:35 +0000 (10:32 +0100)
commit892d196360d65dfa87f5fd7210cd5bca927aa455
treed672b295dbab6ce67b84e7cac0a21a3a885fe7f0
parent20c8f1a8a5fd61cb6f0ba6f3c3b3d567b1765116
x86emul: support clzero

... in anticipation of this possibly going to get used by guests for
basic thinks like memset() or clearing or pages.

Since the emulation doesn't use clzero itself, checking the guest's
CPUID for the feature to be exposed is (intentionally) being avoided
here. All that's required is sensible guest side data for the clflush
line size.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@amd.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/tests/x86_emulator/test_x86_emulator.c
xen/arch/x86/x86_emulate/x86_emulate.c