OSDN Git Service

exec: Do not resolve subpage in mru_section
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 Nov 2017 14:11:03 +0000 (15:11 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 Nov 2017 14:11:16 +0000 (15:11 +0100)
commit07c114bbf389c09c99fd451b0b0fddf88962f512
tree433ceb690e838c610fc7c36507e3454cbbf9b853
parent26a5db322be1e424a815d070ddd04442a5e5df50
exec: Do not resolve subpage in mru_section

This fixes a crash caused by picking the wrong memory region in
address_space_lookup_region seen with client code accessing a device
model that uses alias memory regions.  The expensive part of
address_space_lookup_region anyway is phys_page_find; performance-wise
it is okay to repeat the subsequent subpage lookup.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Message-Id: <20171114225941.072707456B5@zero.eik.bme.hu>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
exec.c