[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 4/4] piix_pci: Implement reset for i440FX PAM co
From: |
Laszlo Ersek |
Subject: |
Re: [Qemu-devel] [PATCH 4/4] piix_pci: Implement reset for i440FX PAM configuration |
Date: |
Thu, 21 Feb 2013 00:28:20 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130108 Thunderbird/10.0.12 |
On 02/21/13 00:25, Laszlo Ersek wrote:
> On 02/20/13 22:46, David Woodhouse wrote:
>
>> +static void i440fx_reset(DeviceState *ds)
>> +{
>> + PCIDevice *dev = PCI_DEVICE(ds);
>> + PCII440FXState *d = I440FX_PCI_DEVICE(dev);
>> + uint8_t *pci_conf = dev->config;
>> +
>> + pci_conf[0x59] = 0x00; /* Reset PAM setup */
>> + pci_conf[0x5a] = 0x00;
>> + pci_conf[0x5b] = 0x00;
>> + pci_conf[0x5c] = 0x00;
>> + pci_conf[0x5d] = 0x00;
>> + pci_conf[0x5e] = 0x00;
>> + pci_conf[0x5f] = 0x00;
>> + pci_conf[0x72] = 0x02; /* And SMM */
>> +
>> + i440fx_update_memory_mappings(d);
>> +}
>
> Consider
>
> memset(pci_conf + I440FX_PAM, 0, I440FX_PAM_SIZE);
> pci_conf[I440FX_SMRAM] = 0x02;
>
> But I'll let you decide of course.
>
> I tested guest reboot with this series applied, on my
> unrestricted-guest-incapable host (Xeon W3550) with OVMF + SeaBIOS CSM.
Ah I was sure I would forget an important test attribute: the host
kernel was RHEL-6.3.z (2.6.32-279.22.1.el6.x86_64), in which KVM still
approximates real mode with vm86.
> It works great. Many thanks.
>
> Series
>
> Tested-by: Laszlo Ersek <address@hidden>
> Reviewed-by: Laszlo Ersek <address@hidden>
These stand of course.
L.
- [Qemu-devel] [PATCH 1/4] piix_pci: Clean up i440FX object handling, David Woodhouse, 2013/02/20
- [Qemu-devel] [PATCH 4/4] piix_pci: Implement reset for i440FX PAM configuration, David Woodhouse, 2013/02/20
- Re: [Qemu-devel] [PATCH 4/4] piix_pci: Implement reset for i440FX PAM configuration, Laszlo Ersek, 2013/02/20
- Re: [Qemu-devel] [PATCH 4/4] piix_pci: Implement reset for i440FX PAM configuration,
Laszlo Ersek <=
- Re: [Qemu-devel] [PATCH 4/4] piix_pci: Implement reset for i440FX PAM configuration, Andreas Färber, 2013/02/20
- Re: [Qemu-devel] [PATCH 4/4] piix_pci: Implement reset for i440FX PAM configuration, David Woodhouse, 2013/02/20
- Re: [Qemu-devel] [PATCH 4/4] piix_pci: Implement reset for i440FX PAM configuration, Andreas Färber, 2013/02/20
- Re: [Qemu-devel] [PATCH 4/4] piix_pci: Implement reset for i440FX PAM configuration, Paolo Bonzini, 2013/02/21
- Re: [Qemu-devel] [PATCH 4/4] piix_pci: Implement reset for i440FX PAM configuration, David Woodhouse, 2013/02/21
- Re: [Qemu-devel] [PATCH 4/4] piix_pci: Implement reset for i440FX PAM configuration, David Woodhouse, 2013/02/21
- Re: [Qemu-devel] [PATCH 4/4] piix_pci: Implement reset for i440FX PAM configuration, Laszlo Ersek, 2013/02/21
Re: [Qemu-devel] [PATCH 1/4] piix_pci: Clean up i440FX object handling, Andreas Färber, 2013/02/20