Bug 520694

Summary: NMI filtering for AMD (Windows 2008 R2 KVM guest can not restart when set it as multiple cpus)
Product: Red Hat Enterprise Linux 5 Reporter: Benjamin Kahn <bkahn>
Component: kvmAssignee: Gleb Natapov <gleb>
Status: CLOSED ERRATA QA Contact: Lawrence Lim <llim>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.5CC: acathrow, azarembo, bhavna.sarathy, bnagendr, bstein, chrisw, gnatapov, jjarvis, knoel, lihuang, michen, ovirt-maint, pm-eus, pm-rhel, rdoty, Rhev-m-bugs, riek, tburke, tools-bugs, virt-maint, ykaul
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kvm-83-105.el5_4.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-29 15:03:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 502543, 503322    
Bug Blocks: 518493, 524676    
Attachments:
Description Flags
strace log none

Description Benjamin Kahn 2009-09-01 20:02:39 UTC
This bug has been copied from bug #503322 and has been proposed
to be backported to 5.4 z-stream (EUS).

Comment 9 lihuang 2009-09-08 12:52:27 UTC
Created attachment 360068 [details]
strace log

Comment 12 Gleb Natapov 2009-09-16 09:30:52 UTC
what should be done to ensure this?

Comment 15 lihuang 2009-09-17 17:14:58 UTC
Hi gleb

for the NMI filtering. any other expected testing besides restarting ?


Thanks 
Lijun Huang

Comment 16 Gleb Natapov 2009-09-18 13:55:22 UTC
(In reply to comment #15)
> Hi gleb
> 
> for the NMI filtering. any other expected testing besides restarting ?
AFAIK kdump uses nmi. You can try that.

Comment 17 Miya Chen 2009-09-24 07:20:42 UTC
Test this problem with kvm-83-105.el5_4.4 in AMD host:

1. 
1)Start windows guest by:
/usr/libexec/qemu-kvm -rtc-td-hack -no-hpet -usbdevice tablet -cpu qemu64,+sse2 -drive file=win08-r2.raw,if=virtio,boot=on -smp 2 -m 2G -name win08-r2 -net nic,macaddr=20:20:20:11:42:77,model=e1000,vlan=0 -net tap,script=/etc/qemu-ifup,vlan=0 -vnc :2
2)type nmi 0 in the monitor

Actual result:
windows guest got BSOD.

2.
1)Start linux guest by:
/usr/libexec/qemu-kvm -rtc-td-hack -no-hpet -usbdevice tablet -cpu qemu64,+sse2 -drive file=RHEL-Server-5.4-64-virtio.qcow2,if=ide -smp 2 -m 2G -name rhel54-64 -net nic,macaddr=20:20:20:11:42:66,model=e1000,vlan=0 -net tap,script=/etc/qemu-ifup,vlan=0 -vnc :2
2)type nmi 0 in the monitor

Actual result:
grep NMI /cat/interrupts
NMI:      1        0

3.
Restart win2008R2 DC guest for 10 times, all restart sucess.
cmd:
/usr/libexec/qemu-kvm -rtc-td-hack -no-hpet -usbdevice tablet -cpu qemu64,+sse2 -drive file=win28k-r2-virtio.raw,if=virtio,boot=on -smp 2 -m 2G -name win28k-r2-virtio -net nic,macaddr=20:20:20:11:42:77,model=e1000,vlan=0 -net tap,script=/etc/qemu-ifup,vlan=0 -vnc :2

Base on above test, NMI can be received by guest in AMD host.

Comment 20 errata-xmlrpc 2009-09-29 15:03:00 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2009-1465.html

Comment 21 Eduardo Habkost 2010-01-06 21:46:54 UTC
*** Bug 552531 has been marked as a duplicate of this bug. ***