+6
−6
+4
−7
+4
−0
Loading
Introduce a new special softbit for large pages, like already presend for normal pages, and use it to mark guest mappings that do not have struct pages. Whenever a leaf DAT entry becomes dirty, check the special softbit and only call SetPageDirty() if there is an actual struct page. Move the logic to mark pages dirty inside _gmap_ptep_xchg() and _gmap_crstep_xchg_atomic(), to avoid needlessly duplicating the code. Fixes: 5a74e3d9 ("KVM: s390: KVM-specific bitfields and helper functions") Fixes: a2c17f92 ("KVM: s390: New gmap code") Reviewed-by:Christian Borntraeger <borntraeger@linux.ibm.com> Signed-off-by:
Claudio Imbrenda <imbrenda@linux.ibm.com>