summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2015-06-22 00:30:34 +0000
committerneel <neel@FreeBSD.org>2015-06-22 00:30:34 +0000
commite4195396102faac75b790d4501958b1a5352a642 (patch)
treed092e84ad09a1df861972f2ca7939d375ee672b7 /etc
parent338e5025e37d5a2e64890ce6932d00686ee556ff (diff)
downloadFreeBSD-src-e4195396102faac75b790d4501958b1a5352a642.zip
FreeBSD-src-e4195396102faac75b790d4501958b1a5352a642.tar.gz
Fix a regression in "movs" emulation after r284539. The regression was caused
due to a change in behavior of the 'vm_map_gpa()'. Prior to r284539 if 'vm_map_gpa()' was called to map an address range in the guest MMIO region then it would return NULL. This was used by the "movs" emulation to detect if the 'src' or 'dst' operand was in MMIO space. Post r284539 'vm_map_gpa()' started returning a non-NULL pointer even when mapping the guest MMIO region. Fix this by returning non-NULL only if [gaddr, gaddr+len) is entirely within the 'lowmem' or 'highmem' regions and NULL otherwise. Pointy hat to: neel Reviewed by: grehan Reported by: tychon, Ben Perrault (ben.perrault@gmail.com) MFC after: 1 week
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud