|
@@ -572,6 +572,8 @@ static u32 __apic_read(struct kvm_lapic *apic, unsigned int offset)
|
|
|
{
|
|
|
u32 val = 0;
|
|
|
|
|
|
+ KVMTRACE_1D(APIC_ACCESS, apic->vcpu, (u32)offset, handler);
|
|
|
+
|
|
|
if (offset >= LAPIC_MMIO_LENGTH)
|
|
|
return 0;
|
|
|
|
|
@@ -695,6 +697,8 @@ static void apic_mmio_write(struct kvm_io_device *this,
|
|
|
|
|
|
offset &= 0xff0;
|
|
|
|
|
|
+ KVMTRACE_1D(APIC_ACCESS, apic->vcpu, (u32)offset, handler);
|
|
|
+
|
|
|
switch (offset) {
|
|
|
case APIC_ID: /* Local APIC ID */
|
|
|
apic_set_reg(apic, APIC_ID, val);
|