mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-21 13:08:42 +00:00
HV cleanup: move iobitmap ini out of loop
The initial of iobitmap pointer should be moved out of loop since address is sequentially incremented. Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
This commit is contained in:
parent
c2c1932a65
commit
765805da21
@ -212,8 +212,8 @@ static void deny_guest_io_access(struct vm *vm, uint32_t address, uint32_t nbyte
|
|||||||
uint32_t i;
|
uint32_t i;
|
||||||
uint32_t a;
|
uint32_t a;
|
||||||
|
|
||||||
for (i = 0; i < nbytes; i++) {
|
|
||||||
b = vm->arch_vm.iobitmap[0];
|
b = vm->arch_vm.iobitmap[0];
|
||||||
|
for (i = 0; i < nbytes; i++) {
|
||||||
if (address & 0x8000)
|
if (address & 0x8000)
|
||||||
b = vm->arch_vm.iobitmap[1];
|
b = vm->arch_vm.iobitmap[1];
|
||||||
a = address & 0x7fff;
|
a = address & 0x7fff;
|
||||||
|
Loading…
Reference in New Issue
Block a user