mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
KVM: s390: Do not set special large pages dirty
Special pages / folios should not be set dirty. This also applies to
large pages.
Add a missing check in gmap_clear_young_crste() to prevent setting the
large page dirty if it is a special page.
Fixes: a2c17f9270 ("KVM: s390: New gmap code")
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Message-ID: <20260623153331.233784-4-imbrenda@linux.ibm.com>
This commit is contained in:
parent
7a386efcb2
commit
e6c9b322c8
|
|
@ -327,7 +327,7 @@ static long gmap_clear_young_crste(union crste *crstep, gfn_t gfn, gfn_t end, st
|
|||
new.h.i = 1;
|
||||
new.s.fc1.y = 0;
|
||||
new.s.fc1.prefix_notif = 0;
|
||||
if (new.s.fc1.d || !new.h.p)
|
||||
if ((new.s.fc1.d || !new.h.p) && !new.s.fc1.s)
|
||||
folio_set_dirty(phys_to_folio(crste_origin_large(crste)));
|
||||
new.s.fc1.d = 0;
|
||||
new.h.p = 1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user