From: Jason Baron <jbaron@redhat.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: yamahata@valinux.co.jp, alex.williamson@redhat.com,
quintela@redhat.com, qemu-devel@nongnu.org,
jan.kiszka@siemens.com
Subject: Re: [Qemu-devel] [PATCH 2/2] pcie_aer: clear cmask for Advanced Error Interrupt Message Number
Date: Fri, 31 Aug 2012 11:43:31 -0400 [thread overview]
Message-ID: <20120831154331.GE12212@redhat.com> (raw)
In-Reply-To: <20120831153513.GB24891@redhat.com>
On Fri, Aug 31, 2012 at 06:35:13PM +0300, Michael S. Tsirkin wrote:
> On Fri, Aug 31, 2012 at 10:45:52AM -0400, Jason Baron wrote:
> > On Fri, Aug 31, 2012 at 11:42:27AM +0300, Michael S. Tsirkin wrote:
> > > Some minor nits below. If you dont get to it I will tweak this patch
> > > when I apply it early next week.
> > >
> > > On Thu, Aug 30, 2012 at 01:51:15PM -0400, Jason Baron wrote:
> > > > The Advanced Error Interrupt Message Number (bits 31:27 of the Root
> > > > Error Status Register) is updated when the number of msi messages assigned to a
> > > > device changes. Migration of windows 7 on q35 chipset failed because the check
> > > > in get_pci_config_device() fails due to wmask being set on these bits.
> > >
> > > I think you actually mean 'not being set on these bits'?
> > >
> >
> > No, the check is:
> >
> > static int get_pci_config_device(QEMUFile *f, void *pv, size_t size)
> > {
> > PCIDevice *s = container_of(pv, PCIDevice, config);
> > uint8_t *config;
> > int i;
> >
> > assert(size == pci_config_size(s));
> > config = g_malloc(size);
> >
> > qemu_get_buffer(f, config, size);
> > for (i = 0; i < size; ++i) {
> > if ((config[i] ^ s->config[i]) &
> > s->cmask[i] & ~s->wmask[i] & ~s->w1cmask[i]) {
> > g_free(config);
> > return -EINVAL;
> > }
> > }
> > .....
> >
> > So because cmask is set and these bits differ in config space (due to
> > them being updated before migration), the migration aborts.
>
> Ah so you mean 'cmask being set' - not wmask as you wrote.
>
Sorry - my mistake, yes I meant 'cmask'. I will fix the changelog in the
re-post.
Thanks,
-Jason
next prev parent reply other threads:[~2012-08-31 15:43 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-30 17:51 [Qemu-devel] [PATCH 0/2] pcie migration fixes Jason Baron
2012-08-30 17:51 ` [Qemu-devel] [PATCH 1/2] pcie: drop version_id field for live migration Jason Baron
2012-08-31 8:44 ` Michael S. Tsirkin
2012-08-31 14:46 ` Jason Baron
2012-08-31 15:42 ` Michael S. Tsirkin
2012-08-31 8:51 ` Juan Quintela
2012-08-30 17:51 ` [Qemu-devel] [PATCH 2/2] pcie_aer: clear cmask for Advanced Error Interrupt Message Number Jason Baron
2012-08-31 8:42 ` Michael S. Tsirkin
2012-08-31 14:45 ` Jason Baron
2012-08-31 15:35 ` Michael S. Tsirkin
2012-08-31 15:43 ` Jason Baron [this message]
2012-09-04 20:22 ` [Qemu-devel] [PATCH 2/2 v2] " Jason Baron
2012-09-07 6:01 ` Michael S. Tsirkin
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=20120831154331.GE12212@redhat.com \
--to=jbaron@redhat.com \
--cc=alex.williamson@redhat.com \
--cc=jan.kiszka@siemens.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
--cc=yamahata@valinux.co.jp \
/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).