x86/hvm: make hvmemul_virtual_to_linear()'s reps parameter optional
authorJan Beulich <jbeulich@suse.com>
Tue, 16 Jul 2019 07:09:44 +0000 (09:09 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 16 Jul 2019 07:09:44 +0000 (09:09 +0200)
commit3bfe102c16b0590d4f885250e82a2ef623867cf4
treec4df37ba8e971e4a5b78ce394c61c1fb4577a31d
parentec2ab491b52815c1daedfdf3d95d13cfe25fb38e
x86/hvm: make hvmemul_virtual_to_linear()'s reps parameter optional

A majority of callers wants just a single iteration handled. Allow to
express this by passing in a NULL pointer, instead of setting up a local
variable just to hold the "1" to pass in here.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Alexandru Isaila <aisaila@bitdefender.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
xen/arch/x86/hvm/emulate.c