Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1069309

Summary: [Tracker][RHEL-7] Windows guests & AMD
Product: Red Hat Enterprise Linux 7 Reporter: Ronen Hod <rhod>
Component: qemu-kvmAssignee: Amnon Ilan <ailan>
Status: CLOSED CURRENTRELEASE QA Contact: Chao Yang <chayang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: ailan, coli, drjones, ghammer, juzhang, knoel, michen, pbonzini, qzhang, rkrcmar, virt-maint, vrozenfe, xfu, yvugenfi
Target Milestone: rcKeywords: Tracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-19 15:22:00 UTC Type: Bug
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: 986252, 994342, 1003751, 1023261, 1023268, 1038594, 1038902, 1042748, 1049756, 1049800, 1049823, 1056982, 1066311, 1070552, 1077489, 1083448, 1116398, 1167539, 1167595    
Bug Blocks:    

Description Ronen Hod 2014-02-24 17:23:31 UTC

Comment 3 CongLi 2014-02-26 10:41:23 UTC
Hi Ronen,

About win2008.x86_64 guest BSOD, here is the test result.

1. Tested on the following version:
   kernel-3.10.0-95.el7.x86_64
   seabios-1.7.2.2-11.el7.x86_64

1) qemu-kvm-1.5.3-2.el7  -->  fail

2) qemu-kvm-1.5.2-1.el7  -->  pass
   qemu-kvm-1.5.2-4.el7  -->  pass

Use the guest which is BSOD on qemu-kvm-1.5.3-2.el7, can boot up successfully with qemu-kvm-1.5.2-4.el7, as well do system_reset.

And I can't get qemu-kvm-1.5.3-1.el7 for it is deleted in brew, but I guess this bug was introduced from qemu-kvm-1.5.3, and I found qemu-kvm-1.5.3.1 has rebase.

2. QEMU CML:
/usr/libexec/qemu-kvm \
-drive id=drive_image1,if=none,cache=none,snapshot=off,aio=native,file=/home/win2008-64-virtio.qcow2 \
-device virtio-blk-pci,id=image1,drive=drive_image1,bootindex=0,bus=pci.0,addr=05 \
-monitor stdio \
-vnc :0 \
-m 4096  \

3. cpuinfo:
processor	: 23
vendor_id	: AuthenticAMD
cpu family	: 21
model		: 1
model name	: AMD Opteron(TM) Processor 6234                 
stepping	: 2
microcode	: 0x6000626
cpu MHz		: 2400.065
cache size	: 2048 KB
physical id	: 1
siblings	: 12
core id		: 5
cpu cores	: 6
apicid		: 75
initial apicid	: 43
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc extd_apicid amd_dcm aperfmperf pni pclmulqdq monitor ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 nodeid_msr topoext perfctr_core perfctr_nb arat cpb hw_pstate npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold
bogomips	: 4799.75
TLB size	: 1536 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate cpb

4. # brctl show
bridge name	bridge id		STP enabled	interfaces
virbr0		8000.525400319512	yes		virbr0-nic

5. And there is no load on the host, just boot up the guest using the above CML.

Thanks,
Cong

Comment 4 CongLi 2014-02-26 10:47:07 UTC
(In reply to CongLi from comment #3)

I have also updated bz1056982, for the info in comment 3 is win2008.x86_64 guest related. 
https://bugzilla.redhat.com/show_bug.cgi?id=1056982#c17

Here are the bugs which win2008.x86_64 guest related:
   1. Bug 1049800 - win2008.x86_64 guest BSOD (error code:0x50, PAGE_FAULT_IN_NONPAGED_AREA)
   2. Bug 1038594 - Win2008 x86_64 BSOD(0x0A) on the starting of OS
   3. Bug 1038902 - Win2008 BSOD on OS booting(0x7e and 0xc5)
   4. Bug 1049823 - win2008.x86_64 guest BSOD (error code:0x3B, SYSTEM_SERVICE_EXCEPTION) 
   5. Bug 1056982 - win2008.x86_64 guest BSOD (error code:0x19, BAD_POOL_HEADER)

I will test other guests and other bugs, and update the test result asap.
And if the info is not enough, feel free to tell me, I will add more info.

Thanks,
Cong

Comment 8 CongLi 2014-03-04 05:56:32 UTC
(In reply to CongLi from comment #4)
> (In reply to CongLi from comment #3)
> 
> I have also updated bz1056982, for the info in comment 3 is win2008.x86_64
> guest related. 
> https://bugzilla.redhat.com/show_bug.cgi?id=1056982#c17
> 
> Here are the bugs which win2008.x86_64 guest related:
>    1. Bug 1049800 - win2008.x86_64 guest BSOD (error code:0x50,
> PAGE_FAULT_IN_NONPAGED_AREA)
>    2. Bug 1038594 - Win2008 x86_64 BSOD(0x0A) on the starting of OS
>    3. Bug 1038902 - Win2008 BSOD on OS booting(0x7e and 0xc5)
>    4. Bug 1049823 - win2008.x86_64 guest BSOD (error code:0x3B,
> SYSTEM_SERVICE_EXCEPTION) 
>    5. Bug 1056982 - win2008.x86_64 guest BSOD (error code:0x19,
> BAD_POOL_HEADER)

With the Radim and Paolo's help, found the win2008.x86_64 guest BSOD is caused by '-machine kernel_irqchip=on|off'.

From https://bugzilla.redhat.com/show_bug.cgi?id=1056982#c22:

qemu-kvm-1.5.3-1.el7  --> pass

qemu-kvm-1.5.3-2.el7  --> fail

As Radim said, this bug is caused by '-machine kernel_irqchip=on|off'.

qemu-kvm-1.5.3-2.el7:

1. -machine kernel_irqchip=on   -->  fail (BSOD)
2. -machine kernel_irqchip=off  -->  pass

CML:
/home/staf-kvm-devel/autotest-devel/client/tests/virt/qemu/qemu \
-drive id=drive_image1,if=none,cache=none,snapshot=off,aio=native,file=win2008-64-virtio.qcow2 \
-device virtio-blk-pci,id=image1,drive=drive_image1,bootindex=0,bus=pci.0,addr=05 \
-monitor stdio \
-vnc :0 \
-m 4096  \
-machine kernel_irqchip=on

Will attach the strace log later.
1. -machine kernel_irqchip=on:  quit directly when met BSOD
2. -machine kernel_irqchip=off: guest boot successfully

Thanks,
Cong