diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2013-12-23 19:29:07 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2013-12-23 19:29:07 +0000 |
| commit | 330baf58c6cf2ad1cecf8ac7c9a1d0f3be36d37f (patch) | |
| tree | 1bf0f6e72b82932012864d660cbc802885ec7efd /lib/libvmmapi/vmmapi.c | |
| parent | 7a1a32c4ef277b98b9164496091f7d50f203fb81 (diff) | |
Notes
Diffstat (limited to 'lib/libvmmapi/vmmapi.c')
| -rw-r--r-- | lib/libvmmapi/vmmapi.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/libvmmapi/vmmapi.c b/lib/libvmmapi/vmmapi.c index 463ae7e5ec38b..6fec469ac92f3 100644 --- a/lib/libvmmapi/vmmapi.c +++ b/lib/libvmmapi/vmmapi.c @@ -397,6 +397,18 @@ vm_lapic_irq(struct vmctx *ctx, int vcpu, int vector) } int +vm_lapic_local_irq(struct vmctx *ctx, int vcpu, int vector) +{ + struct vm_lapic_irq vmirq; + + bzero(&vmirq, sizeof(vmirq)); + vmirq.cpuid = vcpu; + vmirq.vector = vector; + + return (ioctl(ctx->fd, VM_LAPIC_LOCAL_IRQ, &vmirq)); +} + +int vm_lapic_msi(struct vmctx *ctx, uint64_t addr, uint64_t msg) { struct vm_lapic_msi vmmsi; |
