Skip to contentSkip to conversation

kvm: Unknown error 524, Fail to handle apic access vmexit

DISCUSSION Martin Michlmayr 3 participants 6 messages Jul 15, 2008 – Aug 6, 2008 KVM

lore
Share & tools
lore
#0 lore raw

I installed a Windows XP SP2 guest on a Debian x86_64 host The installation itself went fine but kvm aborts when when XP starts during "Windows XP Setup". XP mentions something with intelppm.sys (see the attached screenshot) and kvm says:

kvm_run: Unknown error 524
kvm_run returned -524

In dmesg, I see:

[ 8891.352876] Fail to handle apic access vmexit! Offset is 0xf0

This happens with kvm 70, and kernel 2.6.25 and 2.6.26-rc9.

Someone else reported a similar problem before but there was no response:
http://www.mail-archive.com/[email protected]/msg12111.html

Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
#1 lore raw
Quoted 9 lines · Martin Michlmayr

I installed a Windows XP SP2 guest on a Debian x86_64 host The installation itself went fine but kvm aborts when when XP starts during "Windows XP Setup". XP mentions something with intelppm.sys (see the attached screenshot) and kvm says:

kvm_run: Unknown error 524
kvm_run returned -524

It's a FlexPriority bug, while it should be solved, you can disable it by using kvm-intel module parameter.

Quoted 15 lines

In dmesg, I see:

[ 8891.352876] Fail to handle apic access vmexit! Offset is 0xf0

This happens with kvm 70, and kernel 2.6.25 and 2.6.26-rc9.

Someone else reported a similar problem before but there was no response:
http://www.mail-archive.com/[email protected]/msg12111.html

------------------------------------------------------------------------

#2 lore raw
Quoted 6 lines · On Tuesday 15 July 2008 23:19:07 Dor Laor wrote:
Quoted 5 lines · Martin Michlmayr

I installed a Windows XP SP2 guest on a Debian x86_64 host The installation itself went fine but kvm aborts when when XP starts during "Windows XP Setup". XP mentions something with intelppm.sys (see the attached screenshot) and kvm says:

Quoted 6 lines
Quoted 2 lines

kvm_run: Unknown error 524
kvm_run returned -524

It's a FlexPriority bug, while it should be solved, you can disable it by using kvm-intel module parameter.

Dor, are you sure it's a FlexPriority bug?

If you look at where is the complain, you would find there is a result of emulate_instruction().

And you will find a clearly "emulation failed (mmio) rip 7cb3d000 ff ff 8d 85" in the bug tracker Martin metioned above the "Fail to handle apic access vmexit! Offset is 0xf0"(Spurious Interrupt Vector Register).

I don't think "ff ff 8d 85" is a vaild opcode for that case.

Maybe it's a regression? The last report is long ago...

Hi Martin, can you show more dmesg here? And if it can be reproduce stable?

Thanks.

Signature · 2 lines
regards
Yang, Sheng
Quoted 20 lines
Quoted 13 lines

In dmesg, I see:

[ 8891.352876] Fail to handle apic access vmexit! Offset is 0xf0

This happens with kvm 70, and kernel 2.6.25 and 2.6.26-rc9.

Someone else reported a similar problem before but there was no response:
http://www.mail-archive.com/[email protected]/msg12
111.html

Quoted 2 lines

-----------------------------------------------------------------
-------

--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
Quoted 1 line · Yang, Sheng

Hi Martin, can you show more dmesg here?

It doesn't contain any other messages from kvm. If you still want it, let me know.

Quoted 1 line

And if it can be reproduce stable?

I can reproduce this 100%.

Anyway, I just tried 2.6.26 with FlexPriority disabled and now kvm no longer exits (and there's no "Fail to handle apic access vmexit" message) but Windows still displays the same blue screen (and reboots).

Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
#5 lore raw
In reply to Yang, Sheng
Quoted 12 lines · Sheng
Quoted 10 lines · On Tuesday 15 July 2008 23:19:07 Dor Laor wrote:
Quoted 8 lines · Martin Michlmayr

I installed a Windows XP SP2 guest on a Debian x86_64 host The installation itself went fine but kvm aborts when when XP starts during "Windows XP Setup". XP mentions something with intelppm.sys (see the attached screenshot) and kvm says:

kvm_run: Unknown error 524
kvm_run returned -524

Quoted 8 lines
Quoted 4 lines

It's a FlexPriority bug, while it should be solved, you can disable it by using kvm-intel module parameter.

Dor, are you sure it's a FlexPriority bug?

Well, I'm not sure it's the FlexPriority's fault, it's just when it is disabled it does not happen and I saw the apic access. It can be miss emulation too.
It happened to me on ~ kvm-69

Quoted 13 lines

If you look at where is the complain, you would find there is a result of emulate_instruction().

And you will find a clearly "emulation failed (mmio) rip 7cb3d000 ff ff 8d 85" in the bug tracker Martin metioned above the "Fail to handle apic access vmexit! Offset is 0xf0"(Spurious Interrupt Vector Register).

I don't think "ff ff 8d 85" is a vaild opcode for that case.

Maybe it's a regression? The last report is long ago...

Hi Martin, can you show more dmesg here? And if it can be reproduce stable?

Thanks.

#4 lore raw
In reply to Martin Michlmayr
Quoted 2 lines · Martin Michlmayr
Quoted 1 line

And if it can be reproduce stable?

I can reproduce this 100%.

Alex Williams suggested offline to use -cpu pentium3 and indeed with this option the bug doesn't show up. Does that give you any clue?

Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/