qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] pc:piix4: Update smbus I/O space after a migration
@ 2018-11-26 18:28 minyard
  2018-11-29 15:45 ` Corey Minyard
  0 siblings, 1 reply; 5+ messages in thread
From: minyard @ 2018-11-26 18:28 UTC (permalink / raw)
  To: qemu-devel; +Cc: Igor Mammedov, Michael S . Tsirkin, Corey Minyard

From: Corey Minyard <cminyard@mvista.com>

Otherwise it won't be set up correctly and won't work after
miigration.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Igor Mammedov <imammedo@redhat.com>
---
 hw/acpi/piix4.c | 1 +
 1 file changed, 1 insertion(+)

A rather obvious fix, in hindsight :).

diff --git a/hw/acpi/piix4.c b/hw/acpi/piix4.c
index e330f24c71..2f4dd03b83 100644
--- a/hw/acpi/piix4.c
+++ b/hw/acpi/piix4.c
@@ -173,6 +173,7 @@ static int vmstate_acpi_post_load(void *opaque, int version_id)
     PIIX4PMState *s = opaque;
 
     pm_io_space_update(s);
+    smbus_io_space_update(s);
     return 0;
 }
 
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH] pc:piix4: Update smbus I/O space after a migration
  2018-11-26 18:28 [Qemu-devel] [PATCH] pc:piix4: Update smbus I/O space after a migration minyard
@ 2018-11-29 15:45 ` Corey Minyard
  2018-11-29 15:49   ` Michael S. Tsirkin
  0 siblings, 1 reply; 5+ messages in thread
From: Corey Minyard @ 2018-11-29 15:45 UTC (permalink / raw)
  To: minyard, qemu-devel, Igor Mammedov, Michael S . Tsirkin

On 11/26/18 12:28 PM, minyard@acm.org wrote:
> From: Corey Minyard <cminyard@mvista.com>
>
> Otherwise it won't be set up correctly and won't work after
> miigration.

Any opinions on this?  I think this would be good for 3.1. Without
this when a migration occurs on piix4 the SMBus address space
appears in the wrong place.  I'm not sure how bad that is, but
SMBus certainly ceases to work.

-corey


> Signed-off-by: Corey Minyard <cminyard@mvista.com>
> Cc: Michael S. Tsirkin <mst@redhat.com>
> Cc: Igor Mammedov <imammedo@redhat.com>
> ---
>   hw/acpi/piix4.c | 1 +
>   1 file changed, 1 insertion(+)
>
> A rather obvious fix, in hindsight :).
>
> diff --git a/hw/acpi/piix4.c b/hw/acpi/piix4.c
> index e330f24c71..2f4dd03b83 100644
> --- a/hw/acpi/piix4.c
> +++ b/hw/acpi/piix4.c
> @@ -173,6 +173,7 @@ static int vmstate_acpi_post_load(void *opaque, int version_id)
>       PIIX4PMState *s = opaque;
>   
>       pm_io_space_update(s);
> +    smbus_io_space_update(s);
>       return 0;
>   }
>   

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH] pc:piix4: Update smbus I/O space after a migration
  2018-11-29 15:45 ` Corey Minyard
@ 2018-11-29 15:49   ` Michael S. Tsirkin
  2018-11-29 16:43     ` [Qemu-devel] [PATCH for-3.1?] " Eric Blake
  0 siblings, 1 reply; 5+ messages in thread
From: Michael S. Tsirkin @ 2018-11-29 15:49 UTC (permalink / raw)
  To: Corey Minyard; +Cc: minyard, qemu-devel, Igor Mammedov

On Thu, Nov 29, 2018 at 09:45:17AM -0600, Corey Minyard wrote:
> On 11/26/18 12:28 PM, minyard@acm.org wrote:
> > From: Corey Minyard <cminyard@mvista.com>
> > 
> > Otherwise it won't be set up correctly and won't work after
> > miigration.
> 
> Any opinions on this?  I think this would be good for 3.1. Without
> this when a migration occurs on piix4 the SMBus address space
> appears in the wrong place.  I'm not sure how bad that is, but
> SMBus certainly ceases to work.
> 
> -corey


I have this queued. Thanks!

> 
> > Signed-off-by: Corey Minyard <cminyard@mvista.com>
> > Cc: Michael S. Tsirkin <mst@redhat.com>
> > Cc: Igor Mammedov <imammedo@redhat.com>
> > ---
> >   hw/acpi/piix4.c | 1 +
> >   1 file changed, 1 insertion(+)
> > 
> > A rather obvious fix, in hindsight :).
> > 
> > diff --git a/hw/acpi/piix4.c b/hw/acpi/piix4.c
> > index e330f24c71..2f4dd03b83 100644
> > --- a/hw/acpi/piix4.c
> > +++ b/hw/acpi/piix4.c
> > @@ -173,6 +173,7 @@ static int vmstate_acpi_post_load(void *opaque, int version_id)
> >       PIIX4PMState *s = opaque;
> >       pm_io_space_update(s);
> > +    smbus_io_space_update(s);
> >       return 0;
> >   }
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH for-3.1?] pc:piix4: Update smbus I/O space after a migration
  2018-11-29 15:49   ` Michael S. Tsirkin
@ 2018-11-29 16:43     ` Eric Blake
  2018-12-03 15:14       ` Peter Maydell
  0 siblings, 1 reply; 5+ messages in thread
From: Eric Blake @ 2018-11-29 16:43 UTC (permalink / raw)
  To: Michael S. Tsirkin, Corey Minyard
  Cc: Igor Mammedov, qemu-devel, minyard, Peter Maydell

On 11/29/18 9:49 AM, Michael S. Tsirkin wrote:
> On Thu, Nov 29, 2018 at 09:45:17AM -0600, Corey Minyard wrote:
>> On 11/26/18 12:28 PM, minyard@acm.org wrote:
>>> From: Corey Minyard <cminyard@mvista.com>
>>>
>>> Otherwise it won't be set up correctly and won't work after
>>> miigration.
>>
>> Any opinions on this?  I think this would be good for 3.1. Without
>> this when a migration occurs on piix4 the SMBus address space
>> appears in the wrong place.  I'm not sure how bad that is, but
>> SMBus certainly ceases to work.
>>
>> -corey
> 
> 
> I have this queued. Thanks!

We've missed -rc3. Is the problem this patch addresses severe enough to 
warrant -rc4? Is it a regression since 3.0?

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH for-3.1?] pc:piix4: Update smbus I/O space after a migration
  2018-11-29 16:43     ` [Qemu-devel] [PATCH for-3.1?] " Eric Blake
@ 2018-12-03 15:14       ` Peter Maydell
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Maydell @ 2018-12-03 15:14 UTC (permalink / raw)
  To: Eric Blake
  Cc: Michael S. Tsirkin, Corey Minyard, Igor Mammedov, QEMU Developers,
	Corey Minyard

On Thu, 29 Nov 2018 at 16:44, Eric Blake <eblake@redhat.com> wrote:
>
> On 11/29/18 9:49 AM, Michael S. Tsirkin wrote:
> > On Thu, Nov 29, 2018 at 09:45:17AM -0600, Corey Minyard wrote:
> >> On 11/26/18 12:28 PM, minyard@acm.org wrote:
> >>> From: Corey Minyard <cminyard@mvista.com>
> >>>
> >>> Otherwise it won't be set up correctly and won't work after
> >>> miigration.
> >>
> >> Any opinions on this?  I think this would be good for 3.1. Without
> >> this when a migration occurs on piix4 the SMBus address space
> >> appears in the wrong place.  I'm not sure how bad that is, but
> >> SMBus certainly ceases to work.
> >>
> >> -corey
> >
> >
> > I have this queued. Thanks!
>
> We've missed -rc3. Is the problem this patch addresses severe enough to
> warrant -rc4? Is it a regression since 3.0?

The git history of the file suggests it's been like this for
at least five years, so I would suggest this is not worth
putting into -rc4 (we will have an rc4). Happy to hear
contrary views, but I don't want to bloat rc4 out more
than we can avoid...

thanks
-- PMM

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-12-03 15:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-26 18:28 [Qemu-devel] [PATCH] pc:piix4: Update smbus I/O space after a migration minyard
2018-11-29 15:45 ` Corey Minyard
2018-11-29 15:49   ` Michael S. Tsirkin
2018-11-29 16:43     ` [Qemu-devel] [PATCH for-3.1?] " Eric Blake
2018-12-03 15:14       ` Peter Maydell

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).