apic.c (d1e8e8ecc3d2a1a72504912d671f1cbbac1b06e5) apic.c (b39466269b9b3c29b0c31c1320aa519f376b750f)
1/*
2 * KVM in-kernel APIC support
3 *
4 * Copyright (c) 2011 Siemens AG
5 *
6 * Authors:
7 * Jan Kiszka <jan.kiszka@siemens.com>
8 *
9 * This work is licensed under the terms of the GNU GPL version 2.
10 * See the COPYING file in the top-level directory.
11 */
12#include "qemu/osdep.h"
13#include "qemu-common.h"
14#include "cpu.h"
15#include "hw/i386/apic_internal.h"
16#include "hw/pci/msi.h"
1/*
2 * KVM in-kernel APIC support
3 *
4 * Copyright (c) 2011 Siemens AG
5 *
6 * Authors:
7 * Jan Kiszka <jan.kiszka@siemens.com>
8 *
9 * This work is licensed under the terms of the GNU GPL version 2.
10 * See the COPYING file in the top-level directory.
11 */
12#include "qemu/osdep.h"
13#include "qemu-common.h"
14#include "cpu.h"
15#include "hw/i386/apic_internal.h"
16#include "hw/pci/msi.h"
17#include "sysemu/hw_accel.h"
17#include "sysemu/kvm.h"
18#include "target/i386/kvm_i386.h"
19
20static inline void kvm_apic_set_reg(struct kvm_lapic_state *kapic,
21 int reg_id, uint32_t val)
22{
23 *((uint32_t *)(kapic->regs + (reg_id << 4))) = val;
24}

--- 240 unchanged lines hidden ---
18#include "sysemu/kvm.h"
19#include "target/i386/kvm_i386.h"
20
21static inline void kvm_apic_set_reg(struct kvm_lapic_state *kapic,
22 int reg_id, uint32_t val)
23{
24 *((uint32_t *)(kapic->regs + (reg_id << 4))) = val;
25}

--- 240 unchanged lines hidden ---