aboutsummaryrefslogtreecommitdiff
path: root/lib/libvmmapi/vmmapi.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2013-12-23 19:29:07 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2013-12-23 19:29:07 +0000
commit330baf58c6cf2ad1cecf8ac7c9a1d0f3be36d37f (patch)
tree1bf0f6e72b82932012864d660cbc802885ec7efd /lib/libvmmapi/vmmapi.h
parent7a1a32c4ef277b98b9164496091f7d50f203fb81 (diff)
downloadsrc-330baf58c6cf2ad1cecf8ac7c9a1d0f3be36d37f.tar.gz
src-330baf58c6cf2ad1cecf8ac7c9a1d0f3be36d37f.zip
Extend the support for local interrupts on the local APIC:
- Add a generic routine to trigger an LVT interrupt that supports both fixed and NMI delivery modes. - Add an ioctl and bhyvectl command to trigger local interrupts inside a guest. In particular, a global NMI similar to that raised by SERR# or PERR# can be simulated by asserting LINT1 on all vCPUs. - Extend the LVT table in the vCPU local APIC to support CMCI. - Flesh out the local APIC error reporting a bit to cache errors and report them via ESR when ESR is written to. Add support for asserting the error LVT when an error occurs. Raise illegal vector errors when attempting to signal an invalid vector for an interrupt or when sending an IPI. - Ignore writes to reserved bits in LVT entries. - Export table entries the MADT and MP Table advertising the stock x86 config of LINT0 set to ExtInt and LINT1 wired to NMI. Reviewed by: neel (earlier version)
Notes
Notes: svn path=/head/; revision=259779
Diffstat (limited to 'lib/libvmmapi/vmmapi.h')
-rw-r--r--lib/libvmmapi/vmmapi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libvmmapi/vmmapi.h b/lib/libvmmapi/vmmapi.h
index 52e7e92bebbd..69762c7cf995 100644
--- a/lib/libvmmapi/vmmapi.h
+++ b/lib/libvmmapi/vmmapi.h
@@ -67,6 +67,7 @@ int vm_inject_event(struct vmctx *ctx, int vcpu, enum vm_event_type type,
int vm_inject_event2(struct vmctx *ctx, int vcpu, enum vm_event_type type,
int vector, int error_code);
int vm_lapic_irq(struct vmctx *ctx, int vcpu, int vector);
+int vm_lapic_local_irq(struct vmctx *ctx, int vcpu, int vector);
int vm_lapic_msi(struct vmctx *ctx, uint64_t addr, uint64_t msg);
int vm_ioapic_assert_irq(struct vmctx *ctx, int irq);
int vm_ioapic_deassert_irq(struct vmctx *ctx, int irq);