From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?GB2312?B?09q80bj7?= Subject: Re: How to switch VGA passthrough live Date: Sat, 5 Jun 2010 00:19:09 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0817614473==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com Cc: "allen.m.kay@intel.com" , "xen-devel@lists.xensource.com" , "yuri.schaeffer@os3.nl" List-Id: xen-devel@lists.xenproject.org --===============0817614473== Content-Type: multipart/alternative; boundary=000e0cd3546edc2994048836ae2f --000e0cd3546edc2994048836ae2f Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable Hmm, you are right. I have found that WinXP and Win7 could not handle the VGA remove sci interrupt. Please try to execute "xm pci-detach Domain 00:00:02.0". So I directly invoke acpi_php_writeb to handle VGA remove event. 2010/6/4 Stefano Stabellini > On Fri, 4 Jun 2010, =D3=DA=BC=D1=B8=FB wrote: > > > > Hi, > > > > I want to switch video card live between two HVMs. My simplest idea is > that when the HVM has the permission to access > > passthrough video card, and another HVM will be paused. If switch from = A > to B, execute commands : > > > > xm pause A ; > > > > xm pci-detach A 00:00:02.0 ; > > > > xm pci-attach B 00:00:02.0 ; > > > > xm unpause B. > > > > > > > > I have a try, but failed. The pseudo-code is as below. Can you give me > some ideas? Any suggestions will be thankful. > > > > pci-detach needs cooperation from the guest, how the guest is supposed > to handle the acpi interrupt if it is paused? > --000e0cd3546edc2994048836ae2f Content-Type: text/html; charset=GB2312 Content-Transfer-Encoding: quoted-printable Hmm, you are right. I have found that WinXP and Win7 could not handle the V= GA remove sci interrupt. Please try to execute "xm pci-detach Domain 0= 0:00:02.0". So I directly invoke acpi_php_writeb to handle VGA remove = event.

2010/6/4 Stefano Stabellini &l= t;stefano.stabellini@eu= .citrix.com>
On Fri, 4 Jun 2010, =D3=DA=BC=D1=B8=FB wrote:
>
= > Hi,
>
> I want to switch video card live between two HVMs.= My simplest idea is that when the HVM has the permission to access> passthrough video card, and another HVM will be paused. If switch fro= m A to B, execute commands :
>
> xm pause A ;
>
> xm pci-detach A  00:00:02.0 = ;
>
> xm pci-attach B 00:00:02.0 ;
>
> xm unpause B= .
>
>  
>
> I have a try, but failed. The pseu= do-code is as below. Can you give me some ideas? Any suggestions will be th= ankful.
>

pci-detach needs cooperation from the guest, how the gues= t is supposed
to handle the acpi interrupt if it is paused?

--000e0cd3546edc2994048836ae2f-- --===============0817614473== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0817614473==--