]> rtime.felk.cvut.cz Git - jailhouse.git/commit
core: ivshmem: Refactor pci_ivshmem_cfg_write
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 18 May 2015 05:22:09 +0000 (07:22 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Fri, 22 May 2015 04:53:48 +0000 (06:53 +0200)
commita4224a2f890891be40bc90dac75bcbe4b916be9a
tree5196d10ccc78caac69b193543d68d76384d042ba
parent4abea98f7d5d130b07f775d7b45451aa15308185
core: ivshmem: Refactor pci_ivshmem_cfg_write

We can do simpler by passing in the bias-shifted row value to be written
and the access byte-mask. Then pci_ivshmem_cfg_write just needs to
combine the new value with those of the other bytes as needed, and we
can drop all the size-specific dispatching.

This also lays the foundation for reusing generic BAR emulation.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/include/jailhouse/pci.h
hypervisor/pci.c
hypervisor/pci_ivshmem.c