linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: David Hildenbrand <david@redhat.com>
To: Alexey Kardashevskiy <aik@amd.com>, Chao Gao <chao.gao@intel.com>
Cc: linux-coco@lists.linux.dev,
	"linux-mm@kvack.org" <linux-mm@kvack.org>,
	KVM <kvm@vger.kernel.org>, Fuad Tabba <tabba@google.com>
Subject: Re: [Invitation] bi-weekly guest_memfd upstream call on 2024-11-14
Date: Tue, 24 Dec 2024 12:27:33 +0100	[thread overview]
Message-ID: <82c53460-a550-4236-a65a-78f292814edb@redhat.com> (raw)
In-Reply-To: <d6b74ccd-47d3-4fd6-96e7-3027dd13faa0@amd.com>

On 24.12.24 05:21, Alexey Kardashevskiy wrote:
> On 14/11/24 13:27, Chao Gao wrote:
>>>> With in-place conversion, QEMU can map shared memory and supply the virtual
>>>> address to VFIO to set up DMA mappings. From this perspective, in-place
>>>> conversion doesn't change or require any changes to the way QEMU interacts
>>>> with VFIO. So, the key for device assignment remains updating DMA mappings
>>>> accordingly during shared/private conversions. It seems that whether in-place
>>>> conversion is in use (i.e., whether shared memory is managed by guest_memfd or
>>>> not) doesn't require big changes to that proposal. Not sure if anyone thinks
>>>> otherwise. We want to align with you on the direction for device assignment
>>>> support for guest_memfd.
>>>> (I set aside the idea of letting KVM manage the IOMMU page table in the above
>>>>     analysis because we probably won't get that support in the near future)
>>>
>>> Right. So devices would also only be to access "shared" memory.
>>
>> Yes, this is the situation without TDX-Connect support. Even when TDX-Connect
>> comes into play, devices will initially be attached in shared mode and later
>> converted to private mode. From this perspective, TDX-Connect will be built on
>> this shared device assignment proposal.
>>
>>>
>>>>
>>>> Could you please add this topic to the agenda?
>>>
>>> Will do. But I'm afraid the agenda for tomorrow is pretty packed, so we might
>>> not get to talk about it in more detail before the meeting in 2 weeks.
>>
>> Understood. is there any QEMU patch available for in-place conversion? we would
>> like to play with it and also do some experiments w/ assigned devices. This
>> might help us identify more potential issues for discussion.
> 
> 
> Have you found out if there are patches, somewhere? I am interested too.

I remember that so far only Kernel patches are available [1], I assume 
because Google focuses on other user space than QEMU. So I suspect the 
QEMU integration is still TBD.


[1] https://lkml.kernel.org/r/20241213164811.2006197-1-tabba@google.com

-- 
Cheers,

David / dhildenb



  reply	other threads:[~2024-12-24 11:27 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-12 12:30 David Hildenbrand
2024-11-13  6:06 ` Chao Gao
2024-11-13 15:04   ` David Hildenbrand
2024-11-14  2:27     ` Chao Gao
2024-12-24  4:21       ` Alexey Kardashevskiy
2024-12-24 11:27         ` David Hildenbrand [this message]
2024-12-27  4:21           ` Alexey Kardashevskiy
2024-11-27 16:43 ` [Invitation] bi-weekly guest_memfd upstream call on 2024-12-05 David Hildenbrand
2024-12-10 14:25   ` [Invitation] bi-weekly guest_memfd upstream call on 2024-12-12 David Hildenbrand
2024-12-11 13:53     ` Gowans, James
2025-01-08 10:45     ` [Invitation] bi-weekly guest_memfd upstream call on 2025-01-09 David Hildenbrand

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=82c53460-a550-4236-a65a-78f292814edb@redhat.com \
    --to=david@redhat.com \
    --cc=aik@amd.com \
    --cc=chao.gao@intel.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-coco@lists.linux.dev \
    --cc=linux-mm@kvack.org \
    --cc=tabba@google.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox