xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Jamesffs <javiapple@hotmail.com>
To: xen-devel@lists.xensource.com
Subject: Re: Re : Re : Re : Re : Re : Re : Re : Re: Patches for VGA-Passthrough XEN 4.2 unstable
Date: Mon, 20 Feb 2012 03:55:41 -0800 (PST)	[thread overview]
Message-ID: <1329738941603-5498806.post@n5.nabble.com> (raw)
In-Reply-To: <4F3E7E2F.5@vido.info>

Hi again,
Let's assume that "I/O virtualisation enabled" is the only required VT-d
option.

After using pci-stub for seize the graphic card I can see that it is
available in the assignable devices:
  root@debian:~# xm pci-list-assignable-devices
  0000:01:00.0
  0000:01:00.1
I can see it in Dom0 too:
  root@debian:~# lspci | grep nVidia
  01:00.0 VGA compatible controller: nVidia Corporation GF104 [GeForce GTX
460] (rev a1)
  01:00.1 Audio device: nVidia Corporation GF104 High Definition Audio
Controller (rev a1)
So now the nvidia card (which I understand that has an audio part too) can
be assigned to the Windows guest.
I use the following config file:
root@debian:~# cat /etc/xen/win01.cfg
  kernel = "/usr/lib/xen/boot/hvmloader"
  builder='hvm'
  vcpus = 1
  name = "winXP"
  #vif = [ 'type=ioemu, bridge=xenbr0' ]
  #viridian = 1
  gfx_passthru=0
  #pci=['01:00.0']
  pci = [ '01:00.0', '01:00.1' ]
  monitor=1
  acpi = 1
  apic = 1
  pae = 1
  disk = [ 'file:/home/xen/domains/win01/disk.img,ioemu:hda,w',
'file:/home/javier/winxpSP3.iso,hdc:cdrom,r' ]
  device_model = "/usr/lib/xen/bin/qemu-dm"
  boot="c"
  sdl=0
  vnc=1
  vncconsole=1
 #vncpasswd=''
  serial='pty'
  usbdevice='tablet'
  on_poweroff='destroy'
  on_reboot='destroy'
  on_crash='restart'

I create the guest using another PC with ssh conection (putty) because when
I create the guest the host screen goes black due to the graphic card is not
owned by Dom0 anymore. 
Well, the error appear here and the guest is not started:
  root@debian:~# xm create win01.cfg
  Using config file "/etc/xen/win01.cfg".
  Error: Timed out waiting for device model action

Just to be sure, I think my Dom0 kernel is well configured:

  root@debian:~# cat /boot/config-2.6.32.45 | grep XEN
  CONFIG_XEN=y
  CONFIG_XEN_PVHVM=y
  CONFIG_XEN_MAX_DOMAIN_MEMORY=128
  CONFIG_XEN_SAVE_RESTORE=y
  CONFIG_XEN_DEBUG_FS=y
  CONFIG_SWIOTLB_XEN=y
  CONFIG_MICROCODE_XEN=y
  CONFIG_XEN_DOM0=y
  CONFIG_XEN_PRIVILEGED_GUEST=y
  CONFIG_XEN_DOM0_PCI=y
  CONFIG_XEN_PCI_PASSTHROUGH=y
  CONFIG_PCI_XEN=y
  CONFIG_XEN_PCIDEV_FRONTEND=y
  CONFIG_XEN_BLKDEV_FRONTEND=y
  CONFIG_NETXEN_NIC=m
  CONFIG_XEN_NETDEV_FRONTEND=m
  CONFIG_XEN_KBDDEV_FRONTEND=y
  CONFIG_HVC_XEN=y
  CONFIG_XEN_WDT=y
  CONFIG_XEN_FBDEV_FRONTEND=y
  CONFIG_XEN_BALLOON=y
  CONFIG_XEN_SCRUB_PAGES=y
  CONFIG_XEN_DEV_EVTCHN=y
  CONFIG_XEN_BACKEND=y
  CONFIG_XEN_NETDEV_BACKEND=y
  CONFIG_XEN_BLKDEV_BACKEND=y
  CONFIG_XEN_BLKDEV_TAP=m
  CONFIG_XEN_BLKBACK_PAGEMAP=y
  CONFIG_XEN_PCIDEV_BACKEND=y
  # CONFIG_XEN_PCIDEV_BACKEND_VPCI is not set
  CONFIG_XEN_PCIDEV_BACKEND_PASS=y
  # CONFIG_XEN_PCIDEV_BACKEND_SLOT is not set
  # CONFIG_XEN_PCIDEV_BACKEND_CONTROLLER is not set
  # CONFIG_XEN_PCIDEV_BE_DEBUG is not set
  CONFIG_XENFS=y
  CONFIG_XEN_COMPAT_XENFS=y
  CONFIG_XEN_SYS_HYPERVISOR=y
  CONFIG_XEN_XENBUS_FRONTEND=y
  CONFIG_XEN_GNTDEV=y
  CONFIG_XEN_S3=y
  CONFIG_ACPI_PROCESSOR_XEN=m
  CONFIG_XEN_PLATFORM_PCI=y
  
I can create the guest removing the pci=[] line from the win01.cfg file:
  root@debian:~# xm create win01.cfg
  Using config file "/etc/xen/win01.cfg".
  Started domain winXP (id=7)
If I try to attach the graphic card in warm mode (The guest is already
started) then I see the same error:
  root@debian:~# xm pci-attach 7 01:00.0
  Error: Timed out waiting for device model action
  Usage: xm pci-attach [-o|--options=<opt>] <Domain> <domain:bus:slot.func>
[virtual slot]
  Insert a new pass-through pci device.

That's all, sorry for the long post, I just want to provide enough
information, thank you again for your time.

James

--
View this message in context: http://xen.1045712.n5.nabble.com/Patches-for-VGA-Passthrough-XEN-4-2-unstable-tp4406265p5498806.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

  reply	other threads:[~2012-02-20 11:55 UTC|newest]

Thread overview: 102+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-18 11:47 Patches for VGA-Passthrough XEN 4.2 unstable JavMV
2011-05-23 10:48 ` Stefano Stabellini
2011-05-23 12:35   ` Pasi Kärkkäinen
2011-05-23 12:49     ` Pavel Mateja
2011-05-30 10:53       ` JavMV
2011-05-31 12:10         ` JavMV
2011-06-23 19:18           ` JavMV
2011-06-27 15:33             ` Konrad Rzeszutek Wilk
2011-06-27 15:42               ` JavMV
     [not found] ` <1312297850948-4659036.post@n5.nabble.com>
2011-08-30 10:21   ` komkon555
2011-08-30 13:55     ` JavMV
2011-08-30 15:00       ` komkon555
2011-08-30 16:06         ` JavMV
2011-08-31  8:16           ` komkon555
2011-08-31  8:38             ` Pasi Kärkkäinen
2011-08-31  8:49               ` komkon555
2011-08-31 12:56                 ` komkon555
2011-08-31 15:19                   ` Pasi Kärkkäinen
2011-09-05 14:02                     ` David TECHER
2011-09-06 11:57                       ` komkon555
2011-09-06 21:17                         ` Re : " David TECHER
2011-09-07  8:05                           ` komkon555
2011-09-07  9:45                             ` David TECHER
2011-09-07  9:52                             ` Re : " David TECHER
2011-09-07 12:26                               ` komkon555
2011-09-07 12:51                                 ` Re : " David TECHER
2011-09-07 18:52                                   ` Konrad Rzeszutek Wilk
2011-09-07 19:57                                     ` Re : " David TECHER
2011-09-09  1:45                                   ` Weidong Han
2011-09-09  8:07                                     ` komkon555
2011-09-07 13:25                                 ` komkon555
2011-09-07 13:54                                   ` JavMV
2011-09-07 14:22                                     ` Re : " David TECHER
2011-09-07 14:32                                       ` komkon555
2011-09-07 15:22                                         ` JavMV
2011-09-07 16:21                                           ` komkon555
2011-09-07 16:25                                           ` Re : " David TECHER
2011-09-09  7:54                                           ` komkon555
2011-09-09 12:29                                             ` JavMV
2011-09-09 13:28                                             ` Pasi Kärkkäinen
2011-09-09 16:09                                               ` Wei Huang
2011-09-09 19:56                                             ` Re : " David TECHER
2011-09-10 10:27                                               ` Pasi Kärkkäinen
2011-09-21 13:44                                         ` JavMV
2011-09-21 13:56                                           ` komkon555
2011-09-21 14:08                                             ` JavMV
2011-09-21 14:24                                               ` JavMV
2011-09-21 14:32                                               ` komkon555
2011-09-21 14:40                                                 ` komkon555
2011-09-21 14:47                                                   ` komkon555
2011-09-21 14:52                                                     ` JavMV
2011-09-21 15:13                                                       ` Re : " David TECHER
2011-09-22 12:15                                                         ` JavMV
2011-09-22 12:45                                                           ` komkon555
2011-09-22 12:55                                                             ` JavMV
2011-09-22 17:41                                                               ` JavMV
2011-09-22 18:27                                                           ` Pasi Kärkkäinen
2011-09-22 21:54                                                             ` JavMV
2011-09-23 11:34                                                               ` JavMV
2011-09-23 14:00                                                                 ` JavMV
2011-09-23 14:52                                                                   ` JavMV
2011-09-23 15:12                                                                     ` komkon555
2011-09-23 17:21                                                                   ` Pasi Kärkkäinen
2011-10-15 10:00                                                                     ` David TECHER
2011-10-26 11:54                                                                       ` Zoltan Hubai
2011-10-26 13:35                                                                         ` Re : " David TECHER
2011-10-27  5:58                                                                           ` Zoltan Hubai
2011-10-27 10:14                                                                             ` Re : " David TECHER
2011-12-05 22:26                                                                               ` n4rC0t1C
2011-12-06 11:22                                                                                 ` Re : " David TECHER
2011-12-06 12:04                                                                                   ` n4rC0t1C
2011-12-06 13:57                                                                                     ` Re : " David TECHER
2011-12-06 15:19                                                                                       ` Tobias Geiger
2011-12-06 15:56                                                                                         ` Re : " David TECHER
2011-12-06 22:28                                                                                         ` David TECHER
2011-12-07 11:01                                                                                           ` n4rC0t1C
2011-12-07 11:44                                                                                           ` Tobias Geiger
2011-12-10  8:12                                                                                   ` Sythrar
2011-12-10 12:29                                                                                     ` n4rC0t1C
2011-12-13 21:03                                                                                       ` Sythrar
2011-12-14  9:43                                                                                         ` Tobias Geiger
2011-12-14 13:37                                                                                           ` n4rC0t1C
2012-02-16 13:38                                                                                           ` Jamesffs
2012-02-17  8:34                                                                                             ` Tobias Geiger
2012-02-17 11:32                                                                                               ` Jamesffs
2012-02-17 16:19                                                                                                 ` Tobias Geiger
2012-02-20 11:55                                                                                                   ` Jamesffs [this message]
2012-02-20 12:16                                                                                                     ` Jamesffs
2012-02-20 13:32                                                                                                       ` Tobias Geiger
2011-12-10 12:29                                                                                     ` n4rC0t1C
2011-09-09 11:31 ` Liwei
2011-09-09 16:17   ` Wei Huang
2011-09-09 16:42     ` Liwei
2011-09-12 12:49   ` Tobias Geiger
2012-01-05 23:15   ` romihs
2012-01-06  1:13     ` n4rC0t1C
2012-01-06 14:23       ` Re : " David TECHER
2012-01-06 16:22         ` -+= Lta =+-
2012-01-06 16:34           ` n4rC0t1C
2012-01-06 16:51             ` -+= Lta =+-
2012-01-06 16:58               ` Re : " David TECHER
2012-01-06 17:00                 ` David TECHER

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=1329738941603-5498806.post@n5.nabble.com \
    --to=javiapple@hotmail.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).