2 * This file is part of the Palacios Virtual Machine Monitor developed
3 * by the V3VEE Project with funding from the United States National
4 * Science Foundation and the Department of Energy.
6 * The V3VEE Project is a joint project between Northwestern University
7 * and the University of New Mexico. You can find out more at
10 * Copyright (c) 2008, Jack Lange <jarusl@cs.northwestern.edu>
11 * Copyright (c) 2008, The V3VEE Project <http://www.v3vee.org>
12 * All rights reserved.
14 * Author: Jack Lange <jarusl@cs.northwestern.edu>
16 * This is free software. You are permitted to use,
17 * redistribute, and modify it as specified in the file "V3VEE_LICENSE".
25 int (*raise_intr)(struct guest_info * core, int intr_num, void * private_data);
32 int v3_icc_register_apic(struct guest_info *core, struct vm_device * icc_bus, uint8_t apic_phys_id, struct v3_icc_ops * ops, void * priv_data);
33 int v3_icc_register_ioapic(struct v3_vm_info *vm, struct vm_device * icc_bus, uint8_t apic_phys_id);
36 * Send an inter-processor interrupt (IPI) from one local APIC to another local APIC.
38 * @param icc_bus - The ICC bus that routes IPIs.
39 * @param apic_src - The source APIC id.
40 * @param apic_num - The remote APIC number.
41 * @param icr - A copy of the APIC's ICR. (LAPIC-style ICR, clone from redir table for ioapics)
42 & @param extirq - irq for external interrupts (e.g., from 8259)
44 int v3_icc_send_ipi(struct vm_device * icc_bus, uint32_t apic_src, uint64_t icr, uint32_t ext_irq);
49 * Send an IRQinter-processor interrupt (IPI) from one local APIC to another local APIC.
51 * @param icc_bus - The ICC bus that routes IPIs.
52 * @param apic_src - The source APIC id.
53 * @param apic_num - The remote APIC number.
54 * @param icrlo - The low 32 bites of the APIC's ICR.
56 int v3_icc_send_irq(struct vm_device * icc_bus, uint32_t ioapic_src, uint8_t apic_num, uint8_t irq);
61 #endif /* ICC_BUS_H_ */