* [Qemu-devel] Can not relocate APIC registers address from 0xFEE00000 to self-defined physical addr
@ 2019-07-10 7:56 ddm
2019-07-10 15:41 ` Philippe Mathieu-Daudé
0 siblings, 1 reply; 3+ messages in thread
From: ddm @ 2019-07-10 7:56 UTC (permalink / raw)
To: qemu-devel
hi guys,
I wrote a Small OS (based on linux0.11) support SMP, and it can run well on bochs,
Now i want to migrate it to Qemu, i found that when i use wrmsr command to relocate the APIC regsiters addr to a new physical address,
it can not work, i can not initial APIC timer to trigger timer interrupt by the new physical addr just i relocate, but when use rdmsr to get APIC base addr has been changed to the new physical address, it's strange.
In SMP env, if can not relocate APIC registers addr for each processor with different addr, it will result in conflict.
So, i want to know qemu4.0 whether support remaping APIC base address by wrmsr command?
if support, please tell me how to remap APIC base addr for each processor.
Thank you!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Can not relocate APIC registers address from 0xFEE00000 to self-defined physical addr
2019-07-10 7:56 [Qemu-devel] Can not relocate APIC registers address from 0xFEE00000 to self-defined physical addr ddm
@ 2019-07-10 15:41 ` Philippe Mathieu-Daudé
2019-07-10 15:58 ` Paolo Bonzini
0 siblings, 1 reply; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-07-10 15:41 UTC (permalink / raw)
To: ddm, qemu-devel, Richard Henderson, Eduardo Habkost,
Paolo Bonzini
Cc'ing x86 ppl
On 7/10/19 9:56 AM, ddm wrote:
> hi guys,
>
>
> I wrote a Small OS (based on linux0.11) support SMP, and it can run well on bochs,
> Now i want to migrate it to Qemu, i found that when i use wrmsr command to relocate the APIC regsiters addr to a new physical address,
> it can not work, i can not initial APIC timer to trigger timer interrupt by the new physical addr just i relocate, but when use rdmsr to get APIC base addr has been changed to the new physical address, it's strange.
> In SMP env, if can not relocate APIC registers addr for each processor with different addr, it will result in conflict.
> So, i want to know qemu4.0 whether support remaping APIC base address by wrmsr command?
> if support, please tell me how to remap APIC base addr for each processor.
>
>
> Thank you!
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Can not relocate APIC registers address from 0xFEE00000 to self-defined physical addr
2019-07-10 15:41 ` Philippe Mathieu-Daudé
@ 2019-07-10 15:58 ` Paolo Bonzini
0 siblings, 0 replies; 3+ messages in thread
From: Paolo Bonzini @ 2019-07-10 15:58 UTC (permalink / raw)
To: Philippe Mathieu-Daudé, ddm, qemu-devel, Richard Henderson,
Eduardo Habkost
On 10/07/19 17:41, Philippe Mathieu-Daudé wrote:
>
> I wrote a Small OS (based on linux0.11) support SMP, and it can run
> well on bochs, Now i want to migrate it to Qemu, i found that when i
> use wrmsr command to relocate the APIC regsiters addr to a new
> physical address, it can not work, i can not initial APIC timer to
> trigger timer interrupt by the new physical addr just i relocate, but
> when use rdmsr to get APIC base addr has been changed to the new
> physical address, it's strange. In SMP env, if can not relocate APIC
> registers addr for each processor with different addr, it will
> result in conflict. So, i want to know qemu4.0 whether support
> remaping APIC base address by wrmsr command? if support, please tell
> me how to remap APIC base addr for each processor.
Yes, this is not supported by QEMU. However, you don't need to change
the base address, because each processor will only write to its own APIC
even if all of them use the same base address.
Paolo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-07-10 15:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-10 7:56 [Qemu-devel] Can not relocate APIC registers address from 0xFEE00000 to self-defined physical addr ddm
2019-07-10 15:41 ` Philippe Mathieu-Daudé
2019-07-10 15:58 ` Paolo Bonzini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).