xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: CalcProgrammer1 <calcprogrammer1@gmail.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: Xen PCI/VGA passthrough failing on Ubuntu 12.04 (64-bit)
Date: Tue, 31 Jul 2012 19:11:15 -0400	[thread overview]
Message-ID: <20120731231115.GC32698@phenom.dumpdata.com> (raw)
In-Reply-To: <1342830368860-5710273.post@n5.nabble.com>

On Fri, Jul 20, 2012 at 05:26:08PM -0700, CalcProgrammer1 wrote:
> I've been trying to set up a VGA-passthrough on my Ubuntu 12.04 box to run
> Windows (for gaming) while leaving my RAID-5 array available (managed by
> Linux).  First, here are the machine specs:
> 
> CPU:  AMD A8-3870K 3.4GHz Quad-Core APU
> GPU:  APU-integrated AMD Radeon 6550 (shared memory)
> Mobo:  ASUS F1A75-V EVO with AMD-virtualization enabled in UEFI-BIOS
> RAM:  8GB DDR3 1866 G-Skill Sniper (2x4GB)
> 
> OS:  Ubuntu 12.04 64-bit (Desktop Edition) with Xen packages installed (no
> custom kernel or modules, everything from repos).  I'm running GNOME 3
> fallback with the open-source Radeon driver, but want to write a script that
> shuts down X, disables the radeon driver, and boots the VM.
> 
> I've been messing around with Xen and have the hvm working (boots Win7 ISO
> with VNC interface fine).  However, when I try to attach a VGA device (or
> any PCI device, as I just retried with my sound card) I get this:
> 
> root@Adam-Server:~# xl create /etc/xen/xenwin.cfg
> Parsing config file /etc/xen/xenwin.cfg
> xc: info: VIRTUAL MEMORY ARRANGEMENT:
>   Loader:        0000000000100000->000000000017c510
>   TOTAL:         0000000000000000->00000000ff800000
>   ENTRY ADDRESS: 00000000001015a0
> xc: info: PHYSICAL MEMORY ALLOCATION:
>   4KB PAGES: 0x0000000000000200
>   2MB PAGES: 0x00000000000005fb
>   1GB PAGES: 0x0000000000000001
> libxl: error: libxl_pci.c:712:do_pci_add xc_assign_device failed

So does this card have more than one function? Meaning there is
00:01.1 as well?

> Daemon running with PID 11389
> 
> Leading up to this error, I have done the following to put the device into
> what is supposedly an assignable state:
> 
> # stop lightdm
> # echo 0000:00:01.0 > /sys/bus/pci/drivers/radeon/unbind
> # modprobe xen-pciback
> # echo 0000:00:01.0 > /sys/bus/pci/drivers/pciback/new_slot
> # echo 0000:00:01.0 > /sys/bus/pci/drivers/pciback/bind
> # xl pci-list-assignable-devices
> 0000:00:01.0
> 
> where 0000:00:01.0 is the location of the graphics card.  I'm not sure what
> else there is to try at this point.  Is this a bug, a problem with Ubuntu's
> repository version, or something I'm doing wrong?  Here is my xenwin.cfg:
> 
> kernel = "/usr/lib/xen-4.1/boot/hvmloader"
> builder='hvm'
> memory = 4096 
> 
> # Should be at least 2KB per MB of domain memory, plus a few MB per vcpu.
> shadow_memory = 8
> name = "xenwin7"
> vif = [ 'type=ioemu, bridge=xenbr0' ]
> acpi = 1
> apic = 1
> disk = [ 'file:/etc/xen/xenwin.img,hda,w',
> 'file:/media/RAID5/Software/Operating Systems/Windows/Windows 7 64
> (Universal).iso,hdc:cdrom,r' ]
> 
> device_model = '/usr/lib/xen-4.1/bin/qemu-dm'
> 
> boot="dc"
> 
> #vnc=1
> #vncconsole=1
> 
> xen_platform_pci=1
> gfx_passthrough
> #pci=['00:14.2']
> pci=['00:01.0']
> 
> serial='pty'
> usbdevice='tablet'
> #extra='xencons=tty'
> #extra="console=hvc0"
> 
> 
> 
> --
> View this message in context: http://xen.1045712.n5.nabble.com/Xen-PCI-VGA-passthrough-failing-on-Ubuntu-12-04-64-bit-tp5710273.html
> Sent from the Xen - Dev mailing list archive at Nabble.com.
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

  reply	other threads:[~2012-07-31 23:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-21  0:26 Xen PCI/VGA passthrough failing on Ubuntu 12.04 (64-bit) CalcProgrammer1
2012-07-31 23:11 ` Konrad Rzeszutek Wilk [this message]
2012-11-27 17:32 ` eieiguy

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=20120731231115.GC32698@phenom.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=calcprogrammer1@gmail.com \
    --cc=xen-devel@lists.xensource.com \
    /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).