Skip to contentSkip to conversation

rhel5u5 guest panic when booting up

Bug 42563 [email protected] 1 participant 10 messages Jan 13, 2012 – Jan 31, 2012 1 message not in the archive KVM

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]/

#1 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=42563

--- Comment #5 from Avi Kivity <[email protected]> 2012-01-12 14:02:38 --- (In reply to comment #4)

Quoted 3 lines

Yes. With 'ignore_msrs=y' added when loading kvm module, rhel5.x guest can boot up now. As it will effect all the RHEL5.x (e.g.5.3, 5.3) guest, this issue still need to be fixed.

Agree. Gleb, I think we need to restore the perf msrs behaviour to what it was before, when the PMU is not enabled.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#2 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=42563

--- Comment #4 from Jay Ren <[email protected]> 2012-01-12 05:41:21 --- (In reply to comment #1)

Quoted 3 lines

wrmsr 0x186 generates #GP. Can you try loading kvm.ko with ignore_msrs=y and retry? ("echo Y > /sys/module/kvm/parameters/ignore_msrs" may do the trick too).

Yes. With 'ignore_msrs=y' added when loading kvm module, rhel5.x guest can boot up now. As it will effect all the RHEL5.x (e.g.5.3, 5.3) guest, this issue still need to be fixed.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#3 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=42563

--- Comment #3 from xudong <[email protected]> 2012-01-12 02:11:08 --- (In reply to comment #1)

Quoted 3 lines

wrmsr 0x186 generates #GP. Can you try loading kvm.ko with ignore_msrs=y and retry? ("echo Y > /sys/module/kvm/parameters/ignore_msrs" may do the trick too).

I think it should work with ignore_msrs=y, but then we will miss kvm_pmu_set_msr().

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#4 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=42563

xudong <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #2 from xudong <[email protected]> 2012-01-12 01:58:02 --- Qemu-kvm used "qemu64" model by default, the level is defined to 4, so only the 0~4 CPUID function is programmed, the PMU function 0xA(Gleb's patch a0fa82085e...) did not execute at all.

If changes the level to 10 for "qemu64" model and patch a0fa82085e..., RHEL5u5 can boot up.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#5 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=42563

--- Comment #6 from Gleb <[email protected]> 2012-01-13 07:21:31 --- (In reply to comment #5)

Quoted 8 lines

(In reply to comment #4)

Quoted 3 lines

Yes. With 'ignore_msrs=y' added when loading kvm module, rhel5.x guest can boot up now. As it will effect all the RHEL5.x (e.g.5.3, 5.3) guest, this issue still need to be fixed.

Agree. Gleb, I think we need to restore the perf msrs behaviour to what it was before, when the PMU is not enabled.

Yes, they were special cased for a reason.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#6 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=42563

--- Comment #7 from Jay Ren <[email protected]> 2012-01-31 01:37:57 --- (In reply to comment #6)

Quoted 11 lines

(In reply to comment #5)

Quoted 8 lines

(In reply to comment #4)

Quoted 3 lines

Yes. With 'ignore_msrs=y' added when loading kvm module, rhel5.x guest can boot up now. As it will effect all the RHEL5.x (e.g.5.3, 5.3) guest, this issue still need to be fixed.

Agree. Gleb, I think we need to restore the perf msrs behaviour to what it was before, when the PMU is not enabled.

Yes, they were special cased for a reason.

I found the bug got fixed in kvm upstream. Gleb, you fixed it by the following commit?

commit 7f85a520ba8407af6384aac32d829988ab543ebf

Author: Gleb Natapov <[email protected]>
Date:   Sun Jan 15 14:17:22 2012 +0200

KVM: do not #GP on perf MSR writes when vPMU is disabled

Return to behaviour perf MSR had before introducing vPMU in case vPMU is disabled. Some guests access those registers unconditionally and do not expect it to fail.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#7 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=42563

--- Comment #8 from Gleb <[email protected]> 2012-01-31 09:39:50 --- (In reply to comment #7)

Quoted 8 lines

(In reply to comment #6)

Quoted 7 lines

(In reply to comment #5)

Quoted 6 lines

(In reply to comment #4)

Quoted 3 lines

Yes. With 'ignore_msrs=y' added when loading kvm module, rhel5.x guest can boot up now. As it will effect all the RHEL5.x (e.g.5.3, 5.3) guest, this issue still need to be fixed.

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

Agree. Gleb, I think we need to restore the perf msrs behaviour to what it was before, when the PMU is not enabled.

Yes, they were special cased for a reason.

I found the bug got fixed in kvm upstream. Gleb, you fixed it by the following commit?

Yes.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#8 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=42563

Jay Ren <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |CODE_FIX
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#10 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=42563

Jay Ren <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|VERIFIED |CLOSED

--- Comment #9 from Jay Ren <[email protected]> 2012-01-31 09:44:11 --- verified and closed it.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.