Bug 854304

Summary: reset PMBA and PMREGMISC PIIX4 registers
Product: Red Hat Enterprise Linux 6 Reporter: Laszlo Ersek <lersek>
Component: qemu-kvmAssignee: Laszlo Ersek <lersek>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3CC: acathrow, areis, bsarathy, dyasny, gleb, juzhang, mkenneth, virt-maint, xfu
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: qemu-kvm-0.12.1.2-2.311.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-21 07:39:26 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:
Attachments:
Description Flags
backport none

Description Laszlo Ersek 2012-09-04 15:16:22 UTC
backport the following commit from upstream:

commit 4d09d37c6aa9a02b44b1fdb6268820fab92499bd
Author: Gleb Natapov <gleb>
Date:   Tue Aug 7 15:52:03 2012 +0300

    reset PMBA and PMREGMISC PIIX4 registers.
    
    The bug causes Windows + OVMF hang after reboot since OVMF
    checks PMREGMISC to see if IO space is enabled and skip
    configuration if it is.
    
    Reviewed-by: Laszlo Ersek <lersek>
    Signed-off-by: Gleb Natapov <gleb>
    Signed-off-by: Anthony Liguori <aliguori.com>

I've just posted a series for OvmfPkg that changes the platform pre-EFI initialization such that it depends on (PMREGMISC & PMIOSE) == 0 rather than on !Xen. I'll need the designated commit in RHEL-6 so that I can use official Brew builds to test OVMF + Windows.

http://sourceforge.net/mailarchive/forum.php?thread_name=1346770816-14130-1-git-send-email-lersek%40redhat.com&forum_name=edk2-devel
http://sourceforge.net/mailarchive/forum.php?thread_name=1346770816-14130-2-git-send-email-lersek%40redhat.com&forum_name=edk2-devel
http://sourceforge.net/mailarchive/forum.php?thread_name=1346770816-14130-3-git-send-email-lersek%40redhat.com&forum_name=edk2-devel
http://sourceforge.net/mailarchive/forum.php?thread_name=1346770816-14130-4-git-send-email-lersek%40redhat.com&forum_name=edk2-devel
http://sourceforge.net/mailarchive/forum.php?thread_name=1346770816-14130-5-git-send-email-lersek%40redhat.com&forum_name=edk2-devel
http://sourceforge.net/mailarchive/forum.php?thread_name=1346770816-14130-6-git-send-email-lersek%40redhat.com&forum_name=edk2-devel
http://sourceforge.net/mailarchive/forum.php?thread_name=1346770816-14130-7-git-send-email-lersek%40redhat.com&forum_name=edk2-devel

Comment 1 Laszlo Ersek 2012-09-04 15:20:08 UTC
Created attachment 609726 [details]
backport

Comment 6 FuXiangChun 2012-10-10 08:30:53 UTC
Hi Laszlo
   Should i how to reproduce this issue as kvm QE?

Comment 7 Laszlo Ersek 2012-10-10 08:43:50 UTC
I think sanity checking suffices.

Comment 9 FuXiangChun 2013-01-04 03:12:06 UTC
verify this issue with qemu-kvm-0.12.1.2-2.348.el6.x86_64 and kernel 2.6.32-348.el6.x86_64

Do sanity testing with two scenarios

1. Install guest with Windows8-ConsumerPreview-64bit-English.iso
CD-ROM: IDE
disk: IDE
NIC model: e1000
RAM: 4G
VCPUs: 4
disk size: 30G
connection: vnc

2.Install guest with Windows8-ConsumerPreview-64bit-English.iso
CD-ROM: IDE
disk: virtio-blk-pci
NIC model: virtio-net-pci
RAM: 2G
VCPUs: 4
disk size: 30G
connection: spice

result:
win8 can be installed successfully and works well. 

Laszlo,
according to testing result. can verify this bug?

Comment 10 Laszlo Ersek 2013-01-04 07:57:59 UTC
The important thing to test is resetting the VM. (That is, don't create a new VM, instead, reset the VM from the inside.)

IIRC windows8 installation involves several resets (at least three). I think you can set this to VERIFIED. Thanks!

Comment 11 FuXiangChun 2013-01-05 06:32:32 UTC
resetting(my understanding is that reboot VM) many times VM from the inside, VM work normally.

Comment 13 errata-xmlrpc 2013-02-21 07:39:26 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-0527.html