[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-discuss] Where are local APIC addresses in QEMU?
From: |
Tu Do 2 |
Subject: |
[Qemu-discuss] Where are local APIC addresses in QEMU? |
Date: |
Fri, 4 Nov 2016 12:09:23 +0700 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 |
Hi list,
I'm doing some LAPIC programing.
According to Intel's document, FEE0 0000H to FEE0 03F0H is the range of
local APIC. However, examining it from QEMU console, I can only find the
value 0 there:
(qemu) x/128b 0xfee00000
fee00000: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
fee00008: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
fee00010: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
fee00018: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
fee00020: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
fee00028: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
fee00030: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
fee00038: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
fee00040: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
fee00048: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
fee00050: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
fee00058: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
fee00060: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
fee00068: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
fee00070: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
fee00078: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
I checked 128 bytes to see if anything different than 0. At least, FEE0
0030H should contain a different value since it is where APIC version is in.
Only protected mode is enabled; paging is disabled, so there's no
virtual memory:
(qemu) info mem
PG disabled
But, `info lapic` command reports actual initial values:
(qemu) info lapic
dumping local APIC state for CPU 0
LVT0 0x00008700 active-hi level ExtINT (vec 0)
LVT1 0x00008400 active-hi level NMI
LVTPC 0x00010000 active-hi edge masked Fixed (vec 0)
LVTERR 0x00010000 active-hi edge masked Fixed
(vec 0)
LVTTHMR 0x00010000 active-hi edge masked Fixed
(vec 0)
LVTT 0x00010000 active-hi edge masked one-shot Fixed (vec 0)
Timer DCR=0x0 (divide by 2) initial_count = 0
SPIV 0x000001ff APIC enabled, focus=off, spurious vec 255
ICR 0x000c4610 physical edge assert all
ICR2 0x00000000
ESR 0x00000000
ISR (none)
IRR (none)
APR 0x00 TPR 0x00 DFR 0x0f LDR 0x00 PPR 0x00
So, where are these values?
Thanks.
- [Qemu-discuss] Where are local APIC addresses in QEMU?,
Tu Do 2 <=