diff options
author | jhb <jhb@FreeBSD.org> | 2014-06-12 13:13:15 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2014-06-12 13:13:15 +0000 |
commit | 835cb387cc34a2aab452053e84f55a0e763a9d3e (patch) | |
tree | e09f19aa14b21924ca77616e541961a6835a7e4c /lib/libvmmapi/vmmapi.c | |
parent | 7f22c45d0830c1d948d610b24f26e7737ef63a5b (diff) | |
download | FreeBSD-src-835cb387cc34a2aab452053e84f55a0e763a9d3e.zip FreeBSD-src-835cb387cc34a2aab452053e84f55a0e763a9d3e.tar.gz |
MFC 260239,261268,265058:
Expand the support for PCI INTx interrupts including providing interrupt
routing information for INTx interrupts to I/O APIC pins and enabling
INTx interrupts in the virtio and AHCI backends.
Diffstat (limited to 'lib/libvmmapi/vmmapi.c')
-rw-r--r-- | lib/libvmmapi/vmmapi.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libvmmapi/vmmapi.c b/lib/libvmmapi/vmmapi.c index 6fec469..eba3367 100644 --- a/lib/libvmmapi/vmmapi.c +++ b/lib/libvmmapi/vmmapi.c @@ -454,6 +454,13 @@ vm_ioapic_pulse_irq(struct vmctx *ctx, int irq) } int +vm_ioapic_pincount(struct vmctx *ctx, int *pincount) +{ + + return (ioctl(ctx->fd, VM_IOAPIC_PINCOUNT, pincount)); +} + +int vm_inject_nmi(struct vmctx *ctx, int vcpu) { struct vm_nmi vmnmi; |