From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Lan, Tianyu" Subject: Re: [RFC PATCH V2 09/10] Qemu/VFIO: Add SRIOV VF migration support Date: Thu, 3 Dec 2015 16:56:16 +0800 Message-ID: <566003B0.7030406@intel.com> References: <1448372127-28115-1-git-send-email-tianyu.lan@intel.com> <1448372127-28115-10-git-send-email-tianyu.lan@intel.com> <1449095113.15753.145.camel@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: aik@ozlabs.ru, amit.shah@redhat.com, anthony@codemonkey.ws, ard.biesheuvel@linaro.org, blauwirbel@gmail.com, cornelia.huck@de.ibm.com, eddie.dong@intel.com, nrupal.jani@intel.com, agraf@suse.de, kvm@vger.kernel.org, pbonzini@redhat.com, qemu-devel@nongnu.org, emil.s.tantilov@intel.com, gerlitz.or@gmail.com, donald.c.skidmore@intel.com, mark.d.rustad@intel.com, mst@redhat.com, kraxel@redhat.com, lcapitulino@redhat.com, quintela@redhat.com To: Alex Williamson Return-path: Received: from mga14.intel.com ([192.55.52.115]:26438 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758865AbbLCI50 (ORCPT ); Thu, 3 Dec 2015 03:57:26 -0500 In-Reply-To: <1449095113.15753.145.camel@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 12/3/2015 6:25 AM, Alex Williamson wrote: > On Tue, 2015-11-24 at 21:35 +0800, Lan Tianyu wrote: >> This patch is to add SRIOV VF migration support. >> Create new device type "vfio-sriov" and add faked PCI migration capability >> to the type device. >> >> The purpose of the new capability >> 1) sync migration status with VF driver in the VM >> 2) Get mailbox irq vector to notify VF driver during migration. >> 3) Provide a way to control injecting irq or not. >> >> Qemu will migrate PCI configure space regs and MSIX config for VF. >> Inject mailbox irq at last stage of migration to notify VF about >> migration event and wait VF driver ready for migration. VF driver >> writeS PCI config reg PCI_VF_MIGRATION_VF_STATUS in the new cap table >> to tell Qemu. > > What makes this sr-iov specific? Why wouldn't we simply extend vfio-pci > with a migration=on feature? Thanks, Sounds reasonable and will update it. > > Alex >