Skip to content

Commit

Permalink
core: ivshmem: Keep MSI-X disabled and unmasked by default
Browse files Browse the repository at this point in the history
Probably an early debugging left-over: The MSI-X control register should
have the feature disabled and unmasked by default (both related bits
cleared). MSI-X is supposed to be enabled by the guest OS, and so do
Linux and the inmate demo.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
  • Loading branch information
jan-kiszka committed Jun 27, 2016
1 parent 9ca2c4d commit 7777765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hypervisor/ivshmem.c
Expand Up @@ -59,7 +59,7 @@ static const u32 default_cspace[IVSHMEM_CFG_SIZE / sizeof(u32)] = {
[0x2c/4] = (IVSHMEM_DEVICE_ID << 16) | VIRTIO_VENDOR_ID,
[0x34/4] = IVSHMEM_CFG_MSIX_CAP,
/* MSI-X capability */
[IVSHMEM_CFG_MSIX_CAP/4] = (0xC000 + IVSHMEM_MSIX_VECTORS - 1) << 16
[IVSHMEM_CFG_MSIX_CAP/4] = (IVSHMEM_MSIX_VECTORS - 1) << 16
| (0x00 << 8) | PCI_CAP_MSIX,
[(IVSHMEM_CFG_MSIX_CAP + 0x4)/4] = PCI_CFG_BAR/8 + 2,
[(IVSHMEM_CFG_MSIX_CAP + 0x8)/4] = 0x10 * IVSHMEM_MSIX_VECTORS |
Expand Down

0 comments on commit 7777765

Please sign in to comment.