All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Suthikulpanit, Suravee" <suravee.suthikulpanit@amd.com>
To: "Daniel P. Berrangé" <berrange@redhat.com>
Cc: qemu-devel@nongnu.org, pbonzini@redhat.com, mtosatti@redhat.com,
	mst@redhat.com, marcel.apfelbaum@gmail.com, jon.grimm@amd.com,
	santosh.shukla@amd.com, vasant.hegde@amd.com, Wei.Huang2@amd.com,
	bsd@redhat.com
Subject: Re: [PATCH v2] hw/i386/amd_iommu: Allow migration
Date: Wed, 12 Feb 2025 09:51:17 +0700	[thread overview]
Message-ID: <545534cf-67a9-4a92-bdb4-9ee8c30c457a@amd.com> (raw)
In-Reply-To: <Z6R6ZiHhbBjOfbko@redhat.com>

Daniel,

On 2/6/2025 4:01 PM, Daniel P. Berrangé wrote:
> On Thu, Feb 06, 2025 at 05:18:56AM +0000, Suravee Suthikulpanit wrote:
>> Add migration support for AMD IOMMU model by saving necessary AMDVIState
>> parameters for MMIO registers, device table, command buffer, and event
>> buffers.
>>
>> Signed-off-by: Suravee Suthikulpanit<suravee.suthikulpanit@amd.com>
>> ---
>> Changes from v1:
>> (https://lore.kernel.org/all/9ecffa7a-f4c6-45a5- 
>> a066-84826ccb55dd@amd.com/T/)
>> * Include ppr_log, pprlog_len, pprlog_head, pprlog_tail per Joao.
>>
>>   hw/i386/amd_iommu.c | 43 ++++++++++++++++++++++++++++++++++++++++++-
>>   1 file changed, 42 insertions(+), 1 deletion(-)
>>
>> diff --git a/hw/i386/amd_iommu.c b/hw/i386/amd_iommu.c
>> index 13af7211e1..a1940a0ab3 100644
>> --- a/hw/i386/amd_iommu.c
>> +++ b/hw/i386/amd_iommu.c
>> @@ -1673,7 +1673,48 @@ static Property amdvi_properties[] = {
>>   
>>   static const VMStateDescription vmstate_amdvi_sysbus = {
>>       .name = "amd-iommu",
>> -    .unmigratable = 1
>> +    .version_id = 1,
> IMHO we should not remove the 'unmigratable = 1'  setting, until we
> have fixed the design problem with this device, to split the creation
> of the 'AMDVI-PCI' device off from the 'amd-iommu' device, so that the
> former is user creatable.
> 
> As it stands now, there's no mechanism to guarantee that the internally
> created 'AMDVI-PCI' device gets the same PCI address properties on every
> boot. Thus it isn't safe to claim this device is migratable yet IMHO.

I'll send out v3 including the change you suggested, where we split the 
creation of AMDVI-PCI device to allow fix enumeration of amd-iommu device.

Thanks,
Suravee


      reply	other threads:[~2025-02-12  2:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-06  5:18 [PATCH v2] hw/i386/amd_iommu: Allow migration Suravee Suthikulpanit
2025-02-06  9:01 ` Daniel P. Berrangé
2025-02-12  2:51   ` Suthikulpanit, Suravee [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=545534cf-67a9-4a92-bdb4-9ee8c30c457a@amd.com \
    --to=suravee.suthikulpanit@amd.com \
    --cc=Wei.Huang2@amd.com \
    --cc=berrange@redhat.com \
    --cc=bsd@redhat.com \
    --cc=jon.grimm@amd.com \
    --cc=marcel.apfelbaum@gmail.com \
    --cc=mst@redhat.com \
    --cc=mtosatti@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=santosh.shukla@amd.com \
    --cc=vasant.hegde@amd.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.