the name comm_base is misleading: the adress is in fact one page inside comm_base. Guests call this page mmio_base, so let's call it mmio_base as well.
Signed-off-by: Ralf Ramsauer <[email protected]> --- hypervisor/arch/x86/test-device.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hypervisor/arch/x86/test-device.c b/hypervisor/arch/x86/test-device.c index 1ce8eda1..cf81e92c 100644 --- a/hypervisor/arch/x86/test-device.c +++ b/hypervisor/arch/x86/test-device.c @@ -76,14 +76,14 @@ static unsigned long testdev_get_mmio_base(struct cell *cell) static int testdev_cell_init(struct cell *cell) { - unsigned long comm_base; + unsigned long mmio_base; if (cell->config->flags & JAILHOUSE_CELL_TEST_DEVICE) { - comm_base = testdev_get_mmio_base(cell); - if (comm_base == INVALID_PHYS_ADDR) + mmio_base = testdev_get_mmio_base(cell); + if (mmio_base == INVALID_PHYS_ADDR) return trace_error(-EINVAL); - mmio_region_register(cell, comm_base, PAGE_SIZE, + mmio_region_register(cell, mmio_base, PAGE_SIZE, testdev_handle_mmio_access, NULL); } return 0; -- 2.21.0 -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
