qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Igor Mammedov <imammedo@redhat.com>
To: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Cc: qemu-devel@nongnu.org, philmd@linaro.org, david@redhat.com,
	peterx@redhat.com, pbonzini@redhat.com,
	marcel.apfelbaum@gmail.com, mst@redhat.com,
	den-plotnikov@yandex-team.ru
Subject: Re: [PATCH] pci: make ROM memory resizable
Date: Tue, 25 Apr 2023 14:18:23 +0200	[thread overview]
Message-ID: <20230425141823.6c7445c9@imammedo.users.ipa.redhat.com> (raw)
In-Reply-To: <f1503dee-e297-ae5d-1826-6858236ee029@yandex-team.ru>

On Tue, 25 Apr 2023 13:55:55 +0300
Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> wrote:

> On 24.04.23 23:36, Vladimir Sementsov-Ogievskiy wrote:
> > On migration, on target we load local ROM file. But actual ROM content
> > migrates through migration channel. Original ROM content from local
> > file doesn't matter. But when size mismatch - we have an error like
> > 
> >   Size mismatch: 0000:00:03.0/virtio-net-pci.rom: 0x40000 != 0x80000: Invalid argument
> > 
> > Let's just allow resizing of ROM memory. This way migration is not
> > relate on local ROM file on target node which is loaded by default but
> > is not actually needed.
> > 
> > Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>  
> 
> Seems, automatically reconfigure the memory on incoming migration is not so easy.. ROM size really influence config of the device, and after some digging in the code I still cannot say where it happens.
You can't change PCI device bars on migration as it practically
will mess up memory mapping (if you manage to do so), but
guest will still think that it has the old one. So you'd need
a guest side that will notice migration and deal with remapping.

(one way to work around it could be unplug nic, and once it's gone
migrate/replug on target side)

> 
> So, I'm going to suggest another way, new series "[PATCH 0/3] ROM migration" will substitute this patch.
> 



      reply	other threads:[~2023-04-25 12:19 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-24 20:36 [PATCH] pci: make ROM memory resizable Vladimir Sementsov-Ogievskiy
2023-04-24 20:41 ` Michael S. Tsirkin
2023-04-24 20:45   ` Michael S. Tsirkin
2023-04-24 21:02     ` Vladimir Sementsov-Ogievskiy
2023-04-24 21:06       ` Michael S. Tsirkin
2023-04-24 21:33         ` Vladimir Sementsov-Ogievskiy
2023-04-24 20:48   ` Vladimir Sementsov-Ogievskiy
2023-04-25  7:26 ` Michael S. Tsirkin
2023-04-25  7:43   ` Michael S. Tsirkin
2023-04-25  8:34     ` Vladimir Sementsov-Ogievskiy
2023-04-25 12:49       ` Michael S. Tsirkin
2023-04-25 10:18   ` Laszlo Ersek
2023-04-25 12:10   ` Gerd Hoffmann
2023-04-25 12:59     ` Vladimir Sementsov-Ogievskiy
2023-04-25 13:18       ` Gerd Hoffmann
2023-04-25 10:55 ` Vladimir Sementsov-Ogievskiy
2023-04-25 12:18   ` Igor Mammedov [this message]

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=20230425141823.6c7445c9@imammedo.users.ipa.redhat.com \
    --to=imammedo@redhat.com \
    --cc=david@redhat.com \
    --cc=den-plotnikov@yandex-team.ru \
    --cc=marcel.apfelbaum@gmail.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peterx@redhat.com \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=vsementsov@yandex-team.ru \
    /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).