]> xenbits.xensource.com Git - people/jgross/xen.git/commit
x86/shadow: dirty VRAM tracking is needed for HVM only
authorJan Beulich <jbeulich@suse.com>
Tue, 21 Jul 2020 11:57:06 +0000 (13:57 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 21 Jul 2020 11:57:06 +0000 (13:57 +0200)
commitded576ce07e9328f66842bef67d8cfc14c3088b7
tree26f15ea0e3bc89b86a10b6f1a038a5e4cbf31c31
parent9ffdda96d9e7c3d9c7a5bbe2df6ab30f63927542
x86/shadow: dirty VRAM tracking is needed for HVM only

Move shadow_track_dirty_vram() into hvm.c (requiring two static
functions to become non-static). More importantly though make sure we
don't de-reference d->arch.hvm.dirty_vram for a non-HVM guest. This was
a latent issue only just because the field lives far enough into struct
hvm_domain to be outside the part overlapping with struct pv_domain.

While moving shadow_track_dirty_vram() some purely typographic
adjustments are being made, like inserting missing blanks or putting
breaces on their own lines.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/shadow/common.c
xen/arch/x86/mm/shadow/hvm.c
xen/arch/x86/mm/shadow/multi.c
xen/arch/x86/mm/shadow/private.h