From: "Michael S. Tsirkin" <mst@redhat.com>
To: Parav Pandit <parav@nvidia.com>
Cc: Jason Wang <jasowang@redhat.com>,
"Zhu, Lingshan" <lingshan.zhu@intel.com>,
"virtio-comment@lists.oasis-open.org"
<virtio-comment@lists.oasis-open.org>,
"cohuck@redhat.com" <cohuck@redhat.com>,
"sburla@marvell.com" <sburla@marvell.com>,
Shahaf Shuler <shahafs@nvidia.com>,
Maor Gottlieb <maorg@nvidia.com>,
Yishai Hadas <yishaih@nvidia.com>
Subject: Re: [virtio-comment] [PATCH v1 1/8] admin: Add theory of operation for device migration
Date: Thu, 19 Oct 2023 02:35:06 -0400 [thread overview]
Message-ID: <20231019020413-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <PH0PR12MB5481EA6A4D0C64C5AF6D3A57DCD4A@PH0PR12MB5481.namprd12.prod.outlook.com>
On Thu, Oct 19, 2023 at 05:31:37AM +0000, Parav Pandit wrote:
> > How could we make any agreement without an accurate the definition of
> > "passthrough" who is a key to understand each other?
>
> I replied few times in past emails but since those email threads are so long, it is easy to miss out.
>
> Passthrough definition:
> a. virtio member device mapped to the guest vm
> b. only pci config space and msix of a member device is intercepted by hypervisor.
> c. virtio config space, virtio cvqs, data vqs of a member device is directly accessed by the guest vm without intercepted by the hypervisor.
>
> (Why b?, no grand reason, it is how the hypervisors are working where to integrate the virtio member device to).
I think it's a reasonable use-case, though of course not at all the only
way to design a system. Some more ways:
2- intercept everything except data vqs and cvqs
I think this is a reasonable way to build the system and has a bunch
of advantages short term. The main disadvantage as compared to
passthrough is the need to keep config space coherent with
device operation - the way to do it is device specific and
might get fragile.
4- intercept everything except data vqs
Here we get another problem in isolating some vqs but not
others. the problem becomes bigger is that you also
need to communicate control vq to the device.
also, with both of the above options, we have a question of how
are we communicating with the device to keep control path
and data path in sync when device's dma is mapped to guest.
using PASIDs for isolation might work but again, support is
far from universal so we can't really assume it as
the only way in the spec.
Absent PASID the popular way seems to be shadow vq which basically does
4- software intercept for everything
clearly that's a lot of CPU overhead, I do not think we can focus on that
as the only way in the spec, though some hypervisors might
already have a lot of migration overhead to the point where
virtio can afford any amount of overhead and it won't be
measureable.
I also note some or all of the intercepts can always come and go. For
example, a common setup is that if target VCPUs are running then IOMMU
will inject interrupts directly into guest - if not you generally trap
to hypervisor. Similarly, shadow vq might be active just temporarily.
Which approach is best? I feel ideally virtio would find ways to support
them all rather than deciding on a policy in the spec.
--
MST
This publicly archived list offers a means to provide input to the
OASIS Virtual I/O Device (VIRTIO) TC.
In order to verify user consent to the Feedback License terms and
to minimize spam in the list archive, subscription is required
before posting.
Subscribe: virtio-comment-subscribe@lists.oasis-open.org
Unsubscribe: virtio-comment-unsubscribe@lists.oasis-open.org
List help: virtio-comment-help@lists.oasis-open.org
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/
next prev parent reply other threads:[~2023-10-19 6:35 UTC|newest]
Thread overview: 341+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-08 11:25 [virtio-comment] [PATCH v1 0/8] Introduce device migration support commands Parav Pandit
2023-10-08 11:25 ` [virtio-comment] [PATCH v1 1/8] admin: Add theory of operation for device migration Parav Pandit
2023-10-09 8:49 ` Jason Wang
2023-10-09 10:06 ` Parav Pandit
2023-10-10 5:51 ` Jason Wang
2023-10-10 7:19 ` Parav Pandit
2023-10-10 12:41 ` Michael S. Tsirkin
2023-10-10 13:08 ` Parav Pandit
2023-10-10 14:00 ` Michael S. Tsirkin
2023-10-10 14:09 ` Parav Pandit
2023-10-10 14:55 ` Michael S. Tsirkin
2023-10-11 3:14 ` Jason Wang
2023-10-11 6:02 ` Michael S. Tsirkin
2023-10-11 10:47 ` Parav Pandit
2023-10-11 20:14 ` Michael S. Tsirkin
2023-10-12 10:21 ` Parav Pandit
2023-10-13 1:15 ` Jason Wang
2023-10-13 6:36 ` Parav Pandit
2023-10-17 1:41 ` Jason Wang
2023-10-18 8:16 ` Parav Pandit
2023-10-18 10:19 ` Michael S. Tsirkin
2023-10-18 10:33 ` Parav Pandit
2023-10-19 2:41 ` Jason Wang
2023-10-13 11:41 ` Michael S. Tsirkin
2023-10-09 12:02 ` Parav Pandit
2023-10-09 16:19 ` Michael S. Tsirkin
2023-10-09 17:21 ` Parav Pandit
2023-10-10 8:57 ` Zhu, Lingshan
2023-10-10 9:40 ` Parav Pandit
2023-10-11 10:25 ` Zhu, Lingshan
2023-10-11 11:43 ` Parav Pandit
2023-10-12 10:21 ` Zhu, Lingshan
2023-10-12 10:58 ` Parav Pandit
2023-10-12 11:17 ` Michael S. Tsirkin
2023-10-12 11:47 ` Parav Pandit
2023-10-12 13:05 ` Michael S. Tsirkin
2023-10-13 1:16 ` Jason Wang
2023-10-13 6:36 ` Parav Pandit
2023-10-17 1:53 ` Jason Wang
2023-10-17 2:02 ` Jason Wang
2023-10-17 3:19 ` Parav Pandit
2023-10-17 3:26 ` Parav Pandit
2023-10-18 0:52 ` Jason Wang
2023-10-18 4:30 ` Parav Pandit
2023-10-18 6:14 ` Michael S. Tsirkin
2023-10-18 6:26 ` Parav Pandit
2023-10-19 2:41 ` Jason Wang
2023-10-19 4:29 ` Parav Pandit
2023-10-19 4:44 ` Jason Wang
2023-10-19 5:31 ` Parav Pandit
2023-10-19 6:35 ` Michael S. Tsirkin [this message]
2023-10-19 7:30 ` Parav Pandit
2023-10-19 8:31 ` Michael S. Tsirkin
2023-10-19 8:58 ` Parav Pandit
2023-10-19 9:11 ` Michael S. Tsirkin
2023-10-19 9:20 ` Parav Pandit
2023-10-19 9:26 ` Michael S. Tsirkin
2023-10-19 9:33 ` Michael S. Tsirkin
2023-10-19 9:41 ` Parav Pandit
2023-10-19 9:53 ` Michael S. Tsirkin
2023-10-19 9:54 ` Michael S. Tsirkin
2023-10-19 10:00 ` Parav Pandit
2023-10-19 10:01 ` Parav Pandit
2023-10-19 9:39 ` Parav Pandit
2023-10-19 9:49 ` Michael S. Tsirkin
2023-10-19 9:57 ` Parav Pandit
2023-10-23 3:45 ` Jason Wang
2023-10-23 4:42 ` Parav Pandit
2023-10-24 4:46 ` Jason Wang
2023-10-24 4:49 ` Parav Pandit
2023-10-25 1:28 ` Jason Wang
2023-10-25 7:02 ` Parav Pandit
2023-10-26 0:46 ` Jason Wang
2023-10-26 3:45 ` Parav Pandit
2023-10-30 4:06 ` Jason Wang
2023-10-30 4:46 ` Parav Pandit
2023-10-31 1:34 ` Jason Wang
2023-10-31 5:30 ` Parav Pandit
2023-11-01 0:33 ` Jason Wang
2023-11-01 3:31 ` Parav Pandit
2023-11-02 4:25 ` Jason Wang
2023-11-02 6:10 ` Parav Pandit
2023-11-06 6:34 ` Jason Wang
2023-11-06 7:05 ` Parav Pandit
2023-11-07 4:05 ` Jason Wang
2023-11-07 7:22 ` Michael S. Tsirkin
2023-11-07 7:57 ` Zhu, Lingshan
2023-11-07 8:05 ` Michael S. Tsirkin
2023-11-08 4:28 ` Jason Wang
2023-11-09 6:25 ` Parav Pandit
2023-11-13 3:32 ` Jason Wang
2023-11-15 17:39 ` Parav Pandit
2023-11-16 4:20 ` Jason Wang
2023-11-16 5:28 ` Parav Pandit
2023-11-16 6:23 ` Michael S. Tsirkin
2023-11-16 6:34 ` Parav Pandit
2023-11-16 6:38 ` Michael S. Tsirkin
2023-11-16 6:43 ` Parav Pandit
2023-11-16 6:56 ` Michael S. Tsirkin
2023-11-16 7:02 ` Parav Pandit
2023-11-16 7:14 ` Michael S. Tsirkin
2023-11-16 9:45 ` Parav Pandit
2023-11-21 4:22 ` Jason Wang
2023-11-21 16:25 ` Parav Pandit
2023-11-22 4:13 ` Jason Wang
2023-11-22 7:48 ` Michael S. Tsirkin
2023-11-24 3:56 ` Jason Wang
2023-11-24 5:40 ` Michael S. Tsirkin
2023-11-21 7:24 ` Jason Wang
2023-11-21 16:32 ` Parav Pandit
2023-11-22 5:27 ` Jason Wang
2023-11-22 6:05 ` Parav Pandit
2023-11-24 3:40 ` Jason Wang
2023-11-17 10:08 ` Michael S. Tsirkin
2023-11-17 10:20 ` Parav Pandit
2023-11-17 11:11 ` Michael S. Tsirkin
2023-11-17 11:20 ` Parav Pandit
2023-11-17 11:43 ` Michael S. Tsirkin
2023-11-17 12:02 ` Parav Pandit
2023-11-17 12:30 ` Michael S. Tsirkin
2023-11-17 12:46 ` Parav Pandit
2023-11-17 13:54 ` Michael S. Tsirkin
2023-11-17 14:51 ` Parav Pandit
2023-11-17 15:09 ` Michael S. Tsirkin
2023-11-21 4:44 ` Jason Wang
2023-11-21 16:27 ` Parav Pandit
2023-11-22 4:16 ` Jason Wang
2023-11-22 4:39 ` Parav Pandit
2023-11-24 3:08 ` Jason Wang
2023-11-21 5:25 ` Jason Wang
2023-11-21 16:30 ` Parav Pandit
2023-11-22 4:18 ` Jason Wang
2023-11-22 4:26 ` Parav Pandit
2023-11-24 3:07 ` Jason Wang
2023-11-24 11:38 ` Michael S. Tsirkin
2023-11-24 11:51 ` Jason Wang
2023-11-24 12:10 ` Michael S. Tsirkin
2023-11-24 12:13 ` Parav Pandit
2023-11-24 12:19 ` Michael S. Tsirkin
2023-10-13 11:26 ` Michael S. Tsirkin
2023-10-13 11:41 ` Parav Pandit
2023-10-13 11:52 ` Michael S. Tsirkin
2023-10-13 11:57 ` Parav Pandit
2023-10-17 1:42 ` Jason Wang
2023-10-13 9:06 ` Zhu, Lingshan
2023-10-13 11:28 ` Michael S. Tsirkin
2023-10-13 11:42 ` Parav Pandit
2023-10-16 8:41 ` Zhu, Lingshan
2023-10-16 9:00 ` Michael S. Tsirkin
2023-10-16 9:44 ` Zhu, Lingshan
2023-10-13 11:28 ` Parav Pandit
2023-10-13 11:49 ` Michael S. Tsirkin
2023-10-13 12:00 ` Parav Pandit
2023-10-16 8:46 ` Zhu, Lingshan
2023-10-16 9:44 ` Zhu, Lingshan
2023-10-18 5:00 ` Parav Pandit
2023-10-18 6:32 ` Zhu, Lingshan
2023-10-18 6:34 ` Parav Pandit
2023-10-18 6:39 ` Zhu, Lingshan
2023-10-18 6:42 ` Parav Pandit
2023-10-11 19:51 ` Michael S. Tsirkin
2023-10-12 10:23 ` Zhu, Lingshan
2023-10-08 11:25 ` [virtio-comment] [PATCH v1 2/8] admin: Redefine reserved2 as command specific output Parav Pandit
2023-10-08 11:25 ` [virtio-comment] [PATCH v1 3/8] device-context: Define the device context fields for device migration Parav Pandit
2023-10-08 11:41 ` [virtio-comment] " Michael S. Tsirkin
2023-10-09 4:15 ` Parav Pandit
2023-10-09 15:54 ` Michael S. Tsirkin
2023-10-09 17:22 ` Parav Pandit
2023-10-09 10:34 ` Zhu, Lingshan
2023-10-09 14:30 ` Parav Pandit
2023-10-10 8:52 ` Zhu, Lingshan
2023-10-10 9:58 ` Parav Pandit
2023-10-11 10:07 ` Zhu, Lingshan
2023-10-11 10:54 ` Parav Pandit
2023-10-11 19:54 ` Michael S. Tsirkin
2023-10-12 10:00 ` Zhu, Lingshan
2023-10-12 10:06 ` Michael S. Tsirkin
2023-10-12 10:13 ` Parav Pandit
2023-10-12 10:52 ` Zhu, Lingshan
2023-10-12 10:09 ` Parav Pandit
2023-10-12 10:45 ` Michael S. Tsirkin
2023-10-12 11:23 ` Parav Pandit
2023-10-12 11:10 ` Zhu, Lingshan
2023-10-12 11:37 ` Parav Pandit
2023-10-12 13:03 ` Michael S. Tsirkin
2023-10-12 13:13 ` Parav Pandit
2023-10-13 1:18 ` Jason Wang
2023-10-13 6:40 ` Parav Pandit
2023-10-17 2:10 ` Jason Wang
2023-10-17 3:45 ` Parav Pandit
2023-10-18 0:52 ` Jason Wang
2023-10-18 5:28 ` Parav Pandit
2023-10-19 2:41 ` Jason Wang
2023-10-18 6:13 ` Michael S. Tsirkin
2023-10-13 9:44 ` Zhu, Lingshan
2023-10-13 11:54 ` Parav Pandit
2023-10-16 9:47 ` Zhu, Lingshan
2023-10-18 5:02 ` Parav Pandit
2023-10-18 6:20 ` Michael S. Tsirkin
2023-10-18 6:28 ` Parav Pandit
2023-10-18 6:35 ` Zhu, Lingshan
2023-10-18 6:41 ` Parav Pandit
2023-10-18 6:52 ` Zhu, Lingshan
2023-10-18 7:20 ` Parav Pandit
2023-10-18 8:42 ` Zhu, Lingshan
2023-10-18 8:53 ` Michael S. Tsirkin
2023-10-18 9:48 ` Parav Pandit
2023-10-18 9:56 ` Michael S. Tsirkin
2023-10-18 10:22 ` Parav Pandit
2023-10-18 10:47 ` Michael S. Tsirkin
2023-10-18 10:57 ` Parav Pandit
2023-10-19 8:18 ` Zhu, Lingshan
2023-10-19 8:37 ` Michael S. Tsirkin
2023-10-19 8:49 ` Zhu, Lingshan
2023-10-19 8:55 ` Michael S. Tsirkin
2023-10-23 3:44 ` Jason Wang
2023-10-23 4:42 ` Parav Pandit
2023-10-24 4:56 ` Jason Wang
2023-10-24 10:01 ` Parav Pandit
2023-10-25 1:28 ` Jason Wang
2023-10-25 7:15 ` Parav Pandit
2023-10-25 8:24 ` Michael S. Tsirkin
2023-10-25 9:50 ` Parav Pandit
2023-10-25 10:19 ` Michael S. Tsirkin
2023-10-25 10:22 ` Parav Pandit
2023-10-25 10:28 ` Michael S. Tsirkin
2023-10-26 3:32 ` Parav Pandit
2023-10-26 0:46 ` Jason Wang
2023-10-26 3:50 ` Parav Pandit
2023-10-30 4:04 ` Jason Wang
2023-10-30 4:27 ` Parav Pandit
2023-10-31 1:36 ` Jason Wang
2023-10-31 5:17 ` Parav Pandit
2023-11-01 0:33 ` Jason Wang
2023-11-01 3:07 ` Parav Pandit
2023-11-02 4:24 ` Jason Wang
2023-11-02 6:10 ` Parav Pandit
2023-11-02 14:01 ` Michael S. Tsirkin
2023-11-06 6:35 ` Jason Wang
2023-11-09 6:24 ` Parav Pandit
2023-10-19 8:15 ` Zhu, Lingshan
2023-10-19 9:01 ` Parav Pandit
2023-10-19 9:09 ` Zhu, Lingshan
2023-10-19 9:13 ` Parav Pandit
2023-10-19 9:14 ` Michael S. Tsirkin
2023-10-19 9:18 ` Zhu, Lingshan
2023-10-19 10:33 ` Parav Pandit
2023-10-19 11:19 ` Michael S. Tsirkin
2023-10-19 12:02 ` Parav Pandit
2023-10-20 9:31 ` Zhu, Lingshan
2023-10-20 9:41 ` Michael S. Tsirkin
2023-10-20 11:11 ` Zhu, Lingshan
2023-10-20 12:47 ` Parav Pandit
2023-10-23 9:48 ` Zhu, Lingshan
2023-10-23 10:01 ` Parav Pandit
2023-10-23 10:14 ` Zhu, Lingshan
2023-10-23 10:26 ` Parav Pandit
2023-10-24 10:10 ` Zhu, Lingshan
2023-10-24 10:11 ` Parav Pandit
2023-10-21 15:34 ` Michael S. Tsirkin
2023-10-23 10:03 ` Zhu, Lingshan
2023-10-23 11:32 ` Michael S. Tsirkin
2023-10-24 10:27 ` Zhu, Lingshan
2023-10-25 8:33 ` Michael S. Tsirkin
2023-10-26 0:56 ` Jason Wang
2023-10-26 3:58 ` Parav Pandit
2023-10-30 3:59 ` Jason Wang
2023-10-30 4:49 ` Parav Pandit
2023-10-26 6:22 ` Michael S. Tsirkin
2023-10-30 4:02 ` Jason Wang
2023-11-01 0:33 ` Jason Wang
2023-10-26 6:38 ` Zhu, Lingshan
2023-10-23 3:53 ` Jason Wang
2023-10-23 11:33 ` Michael S. Tsirkin
2023-10-20 12:54 ` Parav Pandit
2023-10-23 10:09 ` Zhu, Lingshan
2023-10-23 10:14 ` Parav Pandit
2023-10-24 10:30 ` Zhu, Lingshan
2023-10-24 10:37 ` Parav Pandit
2023-10-26 6:44 ` Zhu, Lingshan
2023-10-26 7:04 ` Parav Pandit
2023-10-30 3:44 ` Zhu, Lingshan
2023-10-30 4:17 ` Parav Pandit
2023-10-30 10:02 ` Zhu, Lingshan
2023-10-30 10:23 ` Parav Pandit
2023-10-30 11:34 ` Michael S. Tsirkin
2023-10-30 12:02 ` Parav Pandit
2023-10-31 9:35 ` Zhu, Lingshan
2023-10-31 9:42 ` Zhu, Lingshan
2023-10-31 10:14 ` Michael S. Tsirkin
2023-11-01 0:42 ` Jason Wang
2023-11-01 1:57 ` Zhu, Lingshan
2023-11-01 1:57 ` Zhu, Lingshan
2023-11-01 2:54 ` Parav Pandit
2023-11-01 5:31 ` Michael S. Tsirkin
2023-11-01 5:42 ` Parav Pandit
2023-11-01 6:37 ` Michael S. Tsirkin
2023-11-01 6:39 ` Zhu, Lingshan
2023-11-01 6:50 ` Parav Pandit
2023-11-01 6:56 ` Zhu, Lingshan
2023-11-01 7:03 ` Parav Pandit
2023-11-01 7:46 ` Zhu, Lingshan
2023-11-01 7:54 ` Parav Pandit
2023-11-01 8:55 ` Zhu, Lingshan
2023-11-01 9:07 ` Michael S. Tsirkin
2023-11-01 9:42 ` Zhu, Lingshan
2023-11-01 10:23 ` Michael S. Tsirkin
2023-11-01 8:36 ` Michael S. Tsirkin
2023-11-01 10:24 ` Parav Pandit
2023-11-01 6:47 ` Parav Pandit
2023-11-01 8:28 ` Michael S. Tsirkin
2023-11-01 8:49 ` Parav Pandit
2023-11-01 9:06 ` Michael S. Tsirkin
2023-11-01 10:01 ` Parav Pandit
2023-10-30 11:27 ` Michael S. Tsirkin
2023-10-30 11:48 ` Parav Pandit
2023-10-31 9:45 ` Zhu, Lingshan
2023-10-19 9:16 ` Zhu, Lingshan
2023-10-19 9:13 ` Michael S. Tsirkin
2023-10-13 13:49 ` Michael S. Tsirkin
2023-10-16 9:50 ` Zhu, Lingshan
2023-11-02 14:21 ` Michael S. Tsirkin
2023-11-02 14:40 ` [virtio-comment] " Parav Pandit
2023-11-02 14:53 ` [virtio-comment] " Michael S. Tsirkin
2023-11-02 15:06 ` [virtio-comment] " Parav Pandit
2023-11-02 17:05 ` [virtio-comment] " Michael S. Tsirkin
2023-10-08 11:25 ` [virtio-comment] [PATCH v1 4/8] admin: Add device migration admin commands Parav Pandit
2023-10-18 6:46 ` [virtio-comment] " Michael S. Tsirkin
2023-10-18 8:24 ` [virtio-comment] " Parav Pandit
2023-10-18 10:26 ` [virtio-comment] " Michael S. Tsirkin
2023-10-18 10:41 ` [virtio-comment] " Parav Pandit
2023-10-08 11:25 ` [virtio-comment] [PATCH v1 5/8] admin: Add requirements of device migration commands Parav Pandit
2023-10-08 11:25 ` [virtio-comment] [PATCH v1 6/8] admin: Add theory of operation for write recording commands Parav Pandit
2023-10-08 11:25 ` [virtio-comment] [PATCH v1 7/8] admin: Add " Parav Pandit
2023-10-08 11:52 ` [virtio-comment] " Michael S. Tsirkin
2023-10-09 4:14 ` [virtio-comment] " Parav Pandit
2023-10-09 10:57 ` [virtio-comment] " Michael S. Tsirkin
2023-10-09 11:48 ` Parav Pandit
2023-10-09 16:15 ` Michael S. Tsirkin
2023-10-09 17:22 ` Parav Pandit
2023-10-08 11:25 ` [virtio-comment] [PATCH v1 8/8] admin: Add requirements of write reporting commands Parav Pandit
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=20231019020413-mutt-send-email-mst@kernel.org \
--to=mst@redhat.com \
--cc=cohuck@redhat.com \
--cc=jasowang@redhat.com \
--cc=lingshan.zhu@intel.com \
--cc=maorg@nvidia.com \
--cc=parav@nvidia.com \
--cc=sburla@marvell.com \
--cc=shahafs@nvidia.com \
--cc=virtio-comment@lists.oasis-open.org \
--cc=yishaih@nvidia.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.