All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Zyngier <maz@kernel.org>
To: Zhou Wang <wangzhou1@hisilicon.com>
Cc: <qemu-devel@nongnu.org>,
	Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>,
	"Zengtao (B)" <prime.zeng@hisilicon.com>
Subject: Re: Question about migration on ARM system
Date: Thu, 14 Nov 2024 12:33:18 +0000	[thread overview]
Message-ID: <864j4avvu9.wl-maz@kernel.org> (raw)
In-Reply-To: <ac98a734-5de5-e107-6257-0c5fcd2fdfcd@hisilicon.com>

On Thu, 14 Nov 2024 09:03:24 +0000,
Zhou Wang <wangzhou1@hisilicon.com> wrote:
> 
> Hi,
> 
> I am tring to heterogeneous live migration on ARM64 host. Now I just use
> below kernel/qemu branch to have a try:
> https://github.com/hisilicon/kernel-dev/tree/private-v6.11-rc2-hisi-migrn-wip
> https://github.com/hisilicon/qemu/tree/stable-8.2-kunpeng920-initial-v2
> 
> Currently guest on GICv4.1 and GICv3 host can do migration successfully. I am
> not sure that it is expected.

It isn't. Or rather, it shouldn't. Are you reporting a KVM problem or
a QEMU problem?

> 
> GICv4.1 exports GICD_TYPER2.nASSGIcap and GICD_CTRL.nASSGIreq to guest, so
> guests(GICv3) on GICv4.1 and GICv3 host will have different state here. So
> basically a guest on host GICv4.1 will lost state when it move to a host with
> GICv3.
> 
> It seems that current mainline qemu does not consider GICD_TYPER2, and guest
> OS(linux) does not use GICD_TYPER2.nASSGIcap and GICD_CTRL.nASSGIreq(just
> check cap and set req), so current test has been passed.

Well, the guest won't test that after migration. It doesn't even know
it is migrated. But Linux definitely uses it at probe time.

> 
> In fact, there was some discussions about this problem:
> https://lore.kernel.org/kvmarm/20200304203330.4967-21-maz@kernel.org/
> 
> I am not sure if we should prevent users from doing migration between host
> GICv3 and GICv4.1?

We should allow the v3->v4.1 path (we can hide the nAS SGIs), but we
should not it the other way around.

Thanks,

	M.

-- 
Without deviation from the norm, progress is not possible.


  reply	other threads:[~2024-11-14 12:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-14  9:03 Question about migration on ARM system Zhou Wang via
2024-11-14 12:33 ` Marc Zyngier [this message]
2024-11-14 13:46   ` Zhou Wang via
2024-11-14 14:24     ` Peter Maydell

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=864j4avvu9.wl-maz@kernel.org \
    --to=maz@kernel.org \
    --cc=prime.zeng@hisilicon.com \
    --cc=qemu-devel@nongnu.org \
    --cc=shameerali.kolothum.thodi@huawei.com \
    --cc=wangzhou1@hisilicon.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.