]> rtime.felk.cvut.cz Git - jailhouse.git/commit
core: Add support for a guest to access memory-mapped PCI configuration space
authorIvan Kolchin <ivan.kolchin@siemens.com>
Tue, 22 Apr 2014 13:19:04 +0000 (17:19 +0400)
committerJan Kiszka <jan.kiszka@siemens.com>
Wed, 7 May 2014 11:28:50 +0000 (13:28 +0200)
commit8899c0af374adc42de1db1ee4c28961f6f206a37
tree90a2809c8b1f1138fa1e07a6479d85bcc3589bcd
parentf076fa3bb19af09183ffb99518ef0bf4bb5f05a8
core: Add support for a guest to access memory-mapped PCI configuration space

This patch is continuation of PIO support to request PCI config space.
Now it can be reached via MMIO. So, filtering logics is pretty similar.
Read accesses to PCI config is allowed just for devices which are owned.
Write accesses are regulated in accordance with white-list.

There are some limitations though as follows:
- Just 4-bytes operations are supported
- Guest must use only instructions 0x6b and 0x89 (read/write through intermediate
registers)
- All-1's write not supported

Signed-off-by: Ivan Kolchin <ivan.kolchin@siemens.com>
[Jan: style adjustments]
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/arch/x86/setup.c
hypervisor/arch/x86/vmx.c
hypervisor/include/jailhouse/pci.h
hypervisor/pci.c