qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Weil <sw@weilnetz.de>
To: Paolo Bonzini <pbonzini@redhat.com>,
	QEMU Developer <qemu-devel@nongnu.org>,
	Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [Qemu-devel] BIOS regression since v2.3.0 (misaligned longword i/o to address 0xffff)
Date: Mon, 27 Jul 2015 11:32:13 +0200	[thread overview]
Message-ID: <55B5FA9D.8070803@weilnetz.de> (raw)
In-Reply-To: <55B5EFD4.5030105@redhat.com>

Am 27.07.2015 um 10:46 schrieb Paolo Bonzini:
> On 27/07/2015 08:36, Stefan Weil wrote:
>> commit 457ba42878bd9f704e5a6c1c7bc7fcced686fe4e
>> Author: Paolo Bonzini <pbonzini@redhat.com>
>> Date:   Thu May 15 13:22:28 2014 +0200
>>
>>     smm: complete SMM setup
>>
>>     SMI generation requires two bits to be set in PIIX4, one for APMC
>>     interrupts specifically and a general one.
>>
>>     For Q35 it is the same, plus it is a good thing to lock SMIs after
>>     enabling them.
>>
>>     Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
>>
>> :040000 040000 5bfd5601430bc5263ac0a6f8a15a131f3bc8678e
>> 5e0901b1c5ae4c79ed4c34c8bd27e7daf9006086 M    src
> Is this enough to fix it?
>
> --- a/src/fw/smm.c
> +++ b/src/fw/smm.c
> @@ -184,7 +184,7 @@ static void piix4_apmc_smm_setup(int isabdf, int i440_bdf)
>  
>      /* enable SMI generation */
>      value = inl(acpi_pm_base + PIIX_PMIO_GLBCTL);
> -    outl(acpi_pm_base + PIIX_PMIO_GLBCTL, value | PIIX_PMIO_GLBCTL_SMI_EN);
> +    outl(value | PIIX_PMIO_GLBCTL_SMI_EN, acpi_pm_base + PIIX_PMIO_GLBCTL);
>  
>      smm_relocate_and_restore();
>  
>
> Paolo


Yes, and the new code also looks much better for an outl function call. :-)
You may add

Reviewed-by: Stefan Weil <sw@weilnetz.de>

Stefan

  reply	other threads:[~2015-07-27  9:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-26 19:32 [Qemu-devel] BIOS regression since v2.3.0 (misaligned longword i/o to address 0xffff) Stefan Weil
2015-07-27  5:49 ` Stefan Weil
2015-07-27  6:24   ` Stefan Weil
2015-07-27  6:36     ` Stefan Weil
2015-07-27  8:46       ` Paolo Bonzini
2015-07-27  9:32         ` Stefan Weil [this message]
2015-07-27  9:45           ` Stefan Weil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55B5FA9D.8070803@weilnetz.de \
    --to=sw@weilnetz.de \
    --cc=kraxel@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).