« Previous | Next » 

Revision 098178f2

ID098178f2749a63fbbb1a626dcc7d939d5cb2bde7

Added by Paolo Bonzini over 10 years ago

exec: fix writing to MMIO area with non-power-of-two length

The problem is introduced by commit 2332616 (exec: Support 64-bit
operations in address_space_rw, 2013-07-08). Before that commit,
memory_access_size would only return 1/2/4.

Since alignment is already handled above, reduce l to the largest
power of two that is smaller than l.

Cc:
Reported-by: Oleksii Shevchuk <>
Tested-by: Oleksii Shevchuk <>
Signed-off-by: Paolo Bonzini <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences