]> xenbits.xensource.com Git - xen.git/commit
x86/mm: account for the offset when performing subpage r/o MMIO access
authorRoger Pau Monné <roger.pau@citrix.com>
Tue, 29 Apr 2025 09:44:04 +0000 (11:44 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 29 Apr 2025 09:44:04 +0000 (11:44 +0200)
commitdee15facf81d1f0f6e91ca52eb1f0f8f1b2a20dc
tree71a407186f447eb6531985289793ac907920d9c9
parent6b399ed19fd36cca92745a55901a89c3b5fb747f
x86/mm: account for the offset when performing subpage r/o MMIO access

The current logic in subpage_mmio_write_emulate() doesn't take into account
the page offset, and always performs the writes at offset 0 (start of the
page).

Fix this by accounting for the offset before performing the write.

Fixes: 8847d6e23f97 ('x86/mm: add API for marking only part of a MMIO page read only')
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: 38d07809794e3c723a4de7e10c25c1f6cb590dc6
master date: 2025-04-15 16:01:48 +0200
xen/arch/x86/mm.c