From: "Teo En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com>
To: "Teo En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com>
Cc: "xen-users@lists.xen.org" <xen-users@lists.xen.org>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: Unable to start Windows 8 HVM guest with Xen VGA Passthrough with Xen 4.2.1-pre
Date: Sun, 30 Sep 2012 00:09:33 +0800 [thread overview]
Message-ID: <50671D3D.1010304@gmail.com> (raw)
In-Reply-To: <5066F922.1090305@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 803 bytes --]
On 29/09/2012 21:35, Teo En Ming (Zhang Enming) wrote:
> Hi,
>
> I have applied Xen VGA passthrough patches from David Techer's
> personal website to Xen 4.2.1-pre source tree. Everything compiled and
> installed smoothly. But when I tried to start Windows 8 HVM domU with
> VGA passthrough, it gave me the following error:
>
> xc: error: unable to allocate memory to the HVM guest. (16: device or
> resource busy): Internal error.
>
> There are no issues with Xen 4.2-unstable changeset 25099 however.
>
Attached are screenshots of the errors for Xen 4.2.1-pre and Xen
configuration files.
The following are links to screenshots of the errors for Xen 4.2.1-pre.
http://i45.tinypic.com/2j3s7pj.jpg
http://i45.tinypic.com/95myc3.jpg
--
Yours sincerely,
Mr. Teo En Ming (Zhang Enming)
Singapore
[-- Attachment #2: start-windows --]
[-- Type: text/plain, Size: 4599 bytes --]
#!/bin/sh
set -x
#
# Starts Shorewall Firewall
sudo service shorewall restart
#
# Loads pci-stub kernel module
sudo modprobe pci-stub
#
# Passthrough EVGA Geforce GTX 560 1 GB GDDR5
#
echo "Passthrough EVGA Geforce GTX 560 1 GB GDDR5"
sudo chmod o+w /sys/bus/pci/drivers/pci-stub/new_id
sudo chmod o+w /sys/bus/pci/devices/0000:01:00.0/driver/unbind
sudo chmod o+w /sys/bus/pci/drivers/pci-stub/bind
echo "10de 1201" > /sys/bus/pci/drivers/pci-stub/new_id
echo "0000:01:00.0" > /sys/bus/pci/devices/0000:01:00.0/driver/unbind
echo "0000:01:00.0" > /sys/bus/pci/drivers/pci-stub/bind
#
# Passthrough Intel HD Audio Controller
#
echo "Passthrough Intel HD Audio Controller."
sudo chmod o+w /sys/bus/pci/drivers/pci-stub/new_id
sudo chmod o+w /sys/bus/pci/devices/0000:00:1b.0/driver/unbind
sudo chmod o+w /sys/bus/pci/drivers/pci-stub/bind
echo "8086 3a6e" > /sys/bus/pci/drivers/pci-stub/new_id
echo "0000:00:1b.0" > /sys/bus/pci/devices/0000:00:1b.0/driver/unbind
echo "0000:00:1b.0" > /sys/bus/pci/drivers/pci-stub/bind
#
# Sleep for 10 secs
#
sleep 10
#
# Passthrough USB Controller #1
#
echo "Passthrough USB Controller #1."
sudo chmod o+w /sys/bus/pci/drivers/pci-stub/new_id
sudo chmod o+w /sys/bus/pci/devices/0000:00:1a.0/driver/unbind
sudo chmod o+w /sys/bus/pci/drivers/pci-stub/bind
echo "8086 3a67" > /sys/bus/pci/drivers/pci-stub/new_id
echo "0000:00:1a.0" > /sys/bus/pci/devices/0000:00:1a.0/driver/unbind
echo "0000:00:1a.0" > /sys/bus/pci/drivers/pci-stub/bind
#
# Passthrough USB Controller #2
#
echo "Passthrough USB Controller #2."
sudo chmod o+w /sys/bus/pci/drivers/pci-stub/new_id
sudo chmod o+w /sys/bus/pci/devices/0000:00:1a.1/driver/unbind
sudo chmod o+w /sys/bus/pci/drivers/pci-stub/bind
echo "8086 3a68" > /sys/bus/pci/drivers/pci-stub/new_id
echo "0000:00:1a.1" > /sys/bus/pci/devices/0000:00:1a.1/driver/unbind
echo "0000:00:1a.1" > /sys/bus/pci/drivers/pci-stub/bind
#
# Passthrough USB Controller #3
#
echo "Passthrough USB Controller #3."
sudo chmod o+w /sys/bus/pci/drivers/pci-stub/new_id
sudo chmod o+w /sys/bus/pci/devices/0000:00:1a.2/driver/unbind
sudo chmod o+w /sys/bus/pci/drivers/pci-stub/bind
echo "8086 3a69" > /sys/bus/pci/drivers/pci-stub/new_id
echo "0000:00:1a.2" > /sys/bus/pci/devices/0000:00:1a.2/driver/unbind
echo "0000:00:1a.2" > /sys/bus/pci/drivers/pci-stub/bind
#
# Passthrough USB Controller #4
#
echo "Passthrough USB Controller #4."
sudo chmod o+w /sys/bus/pci/drivers/pci-stub/new_id
sudo chmod o+w /sys/bus/pci/devices/0000:00:1a.7/driver/unbind
sudo chmod o+w /sys/bus/pci/drivers/pci-stub/bind
echo "8086 3a6c" > /sys/bus/pci/drivers/pci-stub/new_id
echo "0000:00:1a.7" > /sys/bus/pci/devices/0000:00:1a.7/driver/unbind
echo "0000:00:1a.7" > /sys/bus/pci/drivers/pci-stub/bind
#
# Passthrough USB Controller #5
#
echo "Passthrough USB Controller #5."
sudo chmod o+w /sys/bus/pci/drivers/pci-stub/new_id
sudo chmod o+w /sys/bus/pci/devices/0000:00:1d.0/driver/unbind
sudo chmod o+w /sys/bus/pci/drivers/pci-stub/bind
echo "8086 3a64" > /sys/bus/pci/drivers/pci-stub/new_id
echo "0000:00:1d.0" > /sys/bus/pci/devices/0000:00:1d.0/driver/unbind
echo "0000:00:1d.0" > /sys/bus/pci/drivers/pci-stub/bind
#
# Passthrough USB Controller #6
#
echo "Passthrough USB Controller #6."
sudo chmod o+w /sys/bus/pci/drivers/pci-stub/new_id
sudo chmod o+w /sys/bus/pci/devices/0000:00:1d.1/driver/unbind
sudo chmod o+w /sys/bus/pci/drivers/pci-stub/bind
echo "8086 3a65" > /sys/bus/pci/drivers/pci-stub/new_id
echo "0000:00:1d.1" > /sys/bus/pci/devices/0000:00:1d.1/driver/unbind
echo "0000:00:1d.1" > /sys/bus/pci/drivers/pci-stub/bind
#
# Passthrough USB Controller #7
#
echo "Passthrough USB Controller #7."
sudo chmod o+w /sys/bus/pci/drivers/pci-stub/new_id
sudo chmod o+w /sys/bus/pci/devices/0000:00:1d.2/driver/unbind
sudo chmod o+w /sys/bus/pci/drivers/pci-stub/bind
echo "8086 3a66" > /sys/bus/pci/drivers/pci-stub/new_id
echo "0000:00:1d.2" > /sys/bus/pci/devices/0000:00:1d.2/driver/unbind
echo "0000:00:1d.2" > /sys/bus/pci/drivers/pci-stub/bind
#
# Passthrough USB Controller #8
#
echo "Passthrough USB Controller #8."
sudo chmod o+w /sys/bus/pci/drivers/pci-stub/new_id
sudo chmod o+w /sys/bus/pci/devices/0000:00:1d.7/driver/unbind
sudo chmod o+w /sys/bus/pci/drivers/pci-stub/bind
echo "8086 3a6a" > /sys/bus/pci/drivers/pci-stub/new_id
echo "0000:00:1d.7" > /sys/bus/pci/devices/0000:00:1d.7/driver/unbind
echo "0000:00:1d.7" > /sys/bus/pci/drivers/pci-stub/bind
#
# Wait for 10 seconds
#
sleep 10
#
# Start Windows HVM domU with VGA Passthrough
#
#sudo xl create /etc/xen/WindowsXPHomeEditionSP3
sudo xl create /etc/xen/windows8
[-- Attachment #3: windows8 --]
[-- Type: text/plain, Size: 1651 bytes --]
# XL domain configuration file for Windows 8 Consumer Preview 64-bit English HVM domU
# Please refer to "man xl.cfg" for further explanations.
# See also docs/misc/xl-network-configuration.markdown and
# docs/misc/xl-disk-configuration.txt
# Written by Teo En Ming (Zhang Enming)
# Email: teo.en.ming@gmail.com
# Mobile Phone: +65-8369-2618
# Country: Singapore
# Date: 18 Mar 2012 Sun
name="Windows8"
# Product Key: DNJXJ-7XBW8-2378T-X22TX-BKG7J
builder="hvm"
vcpus=2
memory=2048
on_poweroff="destroy"
on_reboot="restart"
on_crash="destroy"
disk=[ 'format=raw, vdev=hda, access=rw, target=/etc/xen/images/windows8.img', 'format=raw, vdev=hdc, access=ro, devtype=cdrom, target=/home/teo-en-ming/Windows8-ReleasePreview-64bit-English.iso' ]
#vif=[ 'bridge=virbr0,type=ioemu,model=e1000' ]
#boot=[c|d|n]
#Selects the emulated virtual device to boot from. Options are hard disk (c), cd-rom (d) or network/PXE (n).
#Multiple options can be given and will be attempted in the order they are given. e.g. to boot from cd-rom
#but fallback to the hard disk you can give dc. The default is cd.
boot="dc"
acpi=1
#xen_platform_pci=1
#viridian=1
#stdvga=1
vnc=1
vnclisten="192.168.1.2"
vncdisplay=0
vncunused=1
vncpasswd=""
sdl=0
usb=1
usbdevice="tablet"
# Enable Xen VGA Passthrough
gfx_passthru=1
# VGA Passthrough EVGA Geforce GTX 560 1 GB GDDR5.
pci = [ '01:00.0','00:1b.0','00:1a.0','00:1a.1','00:1a.2','00:1a.7','00:1d.0','00:1d.1','00:1d.2','00:1d.7' ]
# PCI Passthrough Intel HD Audio Controller.
#pci = [ '00:1b.0' ]
# PCI Passthrough all the USB Controllers.
# pci = [ '00:1a.0','00:1a.1','00:1a.2','00:1a.7','00:1d.0','00:1d.1','00:1d.2','00:1d.7' ]
[-- Attachment #4: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2012-09-29 16:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-29 13:35 Unable to start Windows 8 HVM guest with Xen VGA Passthrough with Xen 4.2.1-pre Teo En Ming (Zhang Enming)
2012-09-29 16:09 ` Teo En Ming (Zhang Enming) [this message]
2012-09-29 16:22 ` [Xen-users] " Casey DeLorme
2012-09-29 16:49 ` Teo En Ming (Zhang Enming)
2012-09-29 17:25 ` Casey DeLorme
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=50671D3D.1010304@gmail.com \
--to=singapore.mr.teo.en.ming@gmail.com \
--cc=xen-devel@lists.xen.org \
--cc=xen-users@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.