All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Pasi Kärkkäinen" <pasik@iki.fi>
To: greg@enjellic.com
Cc: Qian Hu <qianhu2011@gmail.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
	Ian Campbell <Ian.Campbell@citrix.com>,
	Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Subject: Re: Does xen-4.2.0 support VGA passthrough with the virtual machine created by xl command?
Date: Fri, 30 Nov 2012 09:08:30 +0200	[thread overview]
Message-ID: <20121130070830.GL8912@reaktio.net> (raw)
In-Reply-To: <201211300125.qAU1P143031054@wind.enjellic.com>

On Thu, Nov 29, 2012 at 07:25:01PM -0600, Dr. Greg Wettstein wrote:
> 
> I was going to get an update back to everyone but got swamped by the
> holiday weekend and a series of hardware failures I had to chase
> after.
> 
> I took advantage of some time over the holiday weekend to chase down
> the passthrough problems and now have it working well on 4.2.0 on all
> kernels up to 3.4.19 using XM.  The original ATI patches have a bug in
> them which causes qemu-dm to core dump on kernels somewhere after
> 2.6.32.x.
> 
> The original patches were bracketing the inb/outb instructions used in
> ati_hw_read()/ati_hw_write with an ioperm() call.  The fix was a
> straight forward replacement of the ioperm() call with a call to
> iopl(3).
> 
> I seem to vaguely remember something about the kernel not properly
> enforcing access controlls on in/out instructions but don't remember
> if that was with a pvops or standard kernel.  In any event the kernel
> behavior changed after 2.6.32.x which triggered the breakage.
> 
> I will post an updated version of the ATI patches under separate cover
> in case anytone else is using them.
> 

Yes please. Thanks!


> 
> We were under some time constraints to get Windows access back working
> with a 'modern' kernel so once things were working reliably with xm I
> didn't get a chance to fiddle with xl.  Given the behavior I saw on
> 2.6.32.x with xl I'm suspicious it may not work.  I'm hoping to get
> back and do some testing early next week.
> 
> I just checked the machine (which is running a Windows session as I
> write this) and dont see any [virtual] references.  This is on 3.4.18
> but I also haven't had the chance to check xl on that kernel.  At
> least a couple of hundred Windows 7 boots have been done with xm so
> 4.2.0 seems solid with that control plane.
> 
> With respect to reservation of the PCI device we have a script which
> unplugs the device and re-plugs it after the Window session
> completes.  The machines are Linux/Windows dual-use so the cards need
> to be active for the Linux sessions.
> 
> The script can be picked up at the following location:
> 
> 	ftp://ftp.enjellic.com/pub/xen/run-passthrough
> 
> I will give xl a try later in the weekend with the updated qemu-dm and
> I will report back the results from a more throroughly controlled test
> environment.
> 
> Thanks for the input, have a good weekend.
> 

Thanks!

-- Pasi

  reply	other threads:[~2012-11-30  7:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-30  1:25 Does xen-4.2.0 support VGA passthrough with the virtual machine created by xl command? Dr. Greg Wettstein
2012-11-30  7:08 ` Pasi Kärkkäinen [this message]
     [not found] <greg@wind.enjellic.com>
2012-11-17 15:17 ` Dr. Greg Wettstein
2012-11-28 21:04   ` Konrad Rzeszutek Wilk
  -- strict thread matches above, loose matches on Subject: below --
2012-11-14 21:40 Dr. Greg Wettstein
2012-11-13  6:30 Qian Hu
2012-11-13 10:02 ` Ian Campbell

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=20121130070830.GL8912@reaktio.net \
    --to=pasik@iki.fi \
    --cc=Ian.Campbell@citrix.com \
    --cc=greg@enjellic.com \
    --cc=konrad.wilk@oracle.com \
    --cc=qianhu2011@gmail.com \
    --cc=xen-devel@lists.xen.org \
    /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.