This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-devel] switching passthrough GFX between several domains

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] switching passthrough GFX between several domains
From: Sergey Tovpeko <tsv.devel@xxxxxxxxx>
Date: Thu, 11 Mar 2010 12:16:32 +0300
Delivery-date: Thu, 11 Mar 2010 01:18:48 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=eY5+Zk8McEC/azhBzLSTYJHTqnd6oZQC0Z9eYdsSMCY=; b=htsAC0QnqScM8yBt2om0NqnS8gj+U6gBYy6kk8mu2K6fTWeubVDmXSHQdO78bYDcyG zQHX1s9UxFsv2/44hCjRwz3ySAaWT1NH1XD03lV6uRXX/Ns891QTDwC+Nh3po077plyf 6k74fuoplFlGukznWgefCFHSXJsEDErSc4rEc=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=QOx7DvJUc4/3h4nuUI7IXzCySQE8CLpn3UOWXFDRghtnhBGMcXEnpXrQpoJMiw7fYY 5MTIxI4QKhfqKHahYmdgfynDmrNuWsjvpoROg83WnGX+UqmSFD8stbUXAXljdPHD2ShR esXPyaITuG8p3Ekl4cE+EU2VECBKc/QTo2miQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla-Thunderbird (X11/20090103)
Hello, everybody.

I've some success with gfx passthough and successfully run Windows XP with real nvidia 8400gs card inside. Now, there are 2 running HVM domains in my configuration, and I want to switch real gfx between them, i.e allow only one VM to have access to the graphic card.

Firstly, I tried to switch real GFX by suspending one of the VM and giving the gfx to another VM. But I found out that it's impossible to suspend VM with assigned PCI device:

 "Migration not permitted with assigned PCI device"

I agree that migration to another hardware is a problem, but why don't suspend/resume implemented for the same hardware?

I tried to unplug gfx card manually by doing this:

#xm pci-detach winxp 04:00.0

But with no success. Guest nvidia's driver said that:

Device NVIDIA GeForce 8400 GS couldn't stopped right now. Try to stop it later.

So, I couldn't release attached pci device.

Is any way to solve the task of switching gfx between different HVM domain?
I'm not sure, but what happened if I take off the graphic card manually by
* save the contents of the memory-mapped regions and io regions.
* forbit access to configuration space  from QEMU
* unmap access to the real MMIOs, PIOs from inside the hypervisor.

And then I'll reset this stuff and reinitialize them for the new VM. Will it work at all? Of course, there will be a lot synchronization and transaction problems. But is it possible at all?

Thanks for your attention.

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] switching passthrough GFX between several domains, Sergey Tovpeko <=