From: Jean Guyader <jean.guyader@eu.citrix.com>
To: 于佳耕 <yujiageng734@gmail.com>
Cc: "yuri.schaeffer@os3.nl" <yuri.schaeffer@os3.nl>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
"allen.m.kay@intel.com" <allen.m.kay@intel.com>
Subject: Re: How to switch VGA passthrough live
Date: Sat, 5 Jun 2010 09:44:43 +0100 [thread overview]
Message-ID: <20100605084443.GC16920@angi.xci-test.com> (raw)
In-Reply-To: <AANLkTimKUIKngZsjDdNsQSwP_aQvJqnorhw4TyIFo4c0@mail.gmail.com>
Windows is really bad at doing vga hotplug, your guest will crash/freez/BSOD.
Windows 7 might do something a bit more sensible but I'm note sure.
Jean
On Fri, Jun 04, 2010 at 05:19:09PM +0100, 于佳耕 wrote:
> 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 <stefano.stabellini@eu.citrix.com<mailto:stefano.stabellini@eu.citrix.com>>
> On Fri, 4 Jun 2010, 于佳耕 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?
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2010-06-05 8:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-04 9:29 How to switch VGA passthrough live 于佳耕
2010-06-04 14:57 ` Roger Cruz
2010-06-05 4:44 ` 于佳耕
2010-06-04 15:32 ` Stefano Stabellini
2010-06-04 16:19 ` 于佳耕
2010-06-05 8:44 ` Jean Guyader [this message]
2010-06-05 8:43 ` Jean Guyader
[not found] ` <AANLkTikw8sf6h3P21xD7Lj2Fc6AdzcOiPFZVm9gXdfhT@mail.gmail.com>
2010-06-07 9:13 ` Jean Guyader
2010-06-08 3:18 ` 于佳耕
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=20100605084443.GC16920@angi.xci-test.com \
--to=jean.guyader@eu.citrix.com \
--cc=allen.m.kay@intel.com \
--cc=xen-devel@lists.xensource.com \
--cc=yujiageng734@gmail.com \
--cc=yuri.schaeffer@os3.nl \
/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;
as well as URLs for NNTP newsgroup(s).