All of lore.kernel.org
 help / color / mirror / Atom feed
* Xen 4.3 PCI passthrough possible bug
@ 2014-02-06 14:39 Mike Neiderhauser
  2014-02-07 15:25 ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 22+ messages in thread
From: Mike Neiderhauser @ 2014-02-06 14:39 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 16621 bytes --]

Hi all,

I am attempting to do a pci passthrough of an Intel ET card (4x1G NIC) to a
HVM.  I have been attempting to resolve this issue on the xen-users list,
but it was advised to post this issue to this list. (Initial Message -
http://lists.xenproject.org/archives/html/xen-users/2014-02/msg00036.html)

The machine I am using as host is a Dell Poweredge server with a Xeon
E31220 with 4GB of ram.

The possible bug is the following:
root@fiat:/var/log/xen# cat qemu-dm-ubuntu-hvm-0.log
char device redirected to /dev/pts/5 (label serial0)
qemu: hardware error: xen: failed to populate ram at 40030000
....

I believe it may be similar to this thread
http://markmail.org/message/3zuiojywempoorxj#query:+page:1+mid:gul34vbe4uyog2d4+state:results


Additional info that may be helpful is below.

Please let me know if you need any additional information.

Thanks in advance for any help provided!
Regards

###########################################################
root@fiat:~# cat /etc/xen/ubuntu-hvm-0.cfg
###########################################################
# Configuration file for Xen HVM

# HVM Name (as appears in 'xl list')
name="ubuntu-hvm-0"
# HVM Build settings (+ hardware)
#kernel = "/usr/lib/xen-4.3/boot/hvmloader"
builder='hvm'
device_model='qemu-dm'
memory=1024
vcpus=2

# Virtual Interface
# Network bridge to USB NIC
vif=['bridge=xenbr0']

################### PCI PASSTHROUGH ###################
# PCI Permissive mode toggle
#pci_permissive=1

# All PCI Devices
#pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1', '05:00.0', '05:00.1']

# First two ports on Intel 4x1G NIC
#pci=['03:00.0','03:00.1']

# Last two ports on Intel 4x1G NIC
#pci=['04:00.0', '04:00.1']

# All ports on Intel 4x1G NIC
pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1']

# Brodcom 2x1G NIC
#pci=['05:00.0', '05:00.1']
################### PCI PASSTHROUGH ###################

# HVM Disks
# Hard disk only
# Boot from HDD first ('c')
boot="c"
disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w']

# Hard disk with ISO
# Boot from ISO first ('d')
#boot="d"
#disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w',
'file:/root/ubuntu-12.04.3-server-amd64.iso,hdc:cdrom,r']

# ACPI Enable
acpi=1
# HVM Event Modes
on_poweroff='destroy'
on_reboot='restart'
on_crash='restart'

# Serial Console Configuration (Xen Console)
sdl=0
serial='pty'

# VNC Configuration
# Only reacable from localhost
vnc=1
vnclisten="0.0.0.0"
vncpasswd=""

###########################################################
Copied for xen-users list
###########################################################

It appears that it cannot obtain the RAM mapping for this PCI device.


I rebooted the Host.  I ran assigned pci devices to pciback. The output
looks like:
root@fiat:~# ./dev_mgmt.sh
Loading Kernel Module 'xen-pciback'
Calling function pciback_dev for:
PCI DEVICE 0000:03:00.0
Unbinding 0000:03:00.0 from igb
Binding 0000:03:00.0 to pciback

PCI DEVICE 0000:03:00.1
Unbinding 0000:03:00.1 from igb
Binding 0000:03:00.1 to pciback

PCI DEVICE 0000:04:00.0
Unbinding 0000:04:00.0 from igb
Binding 0000:04:00.0 to pciback

PCI DEVICE 0000:04:00.1
Unbinding 0000:04:00.1 from igb
Binding 0000:04:00.1 to pciback

PCI DEVICE 0000:05:00.0
Unbinding 0000:05:00.0 from bnx2
Binding 0000:05:00.0 to pciback

PCI DEVICE 0000:05:00.1
Unbinding 0000:05:00.1 from bnx2
Binding 0000:05:00.1 to pciback

Listing PCI Devices Available to Xen
0000:03:00.0
0000:03:00.1
0000:04:00.0
0000:04:00.1
0000:05:00.0
0000:05:00.1

###########################################################
root@fiat:~# xl -vvv create /etc/xen/ubuntu-hvm-0.cfg
Parsing config from /etc/xen/ubuntu-hvm-0.cfg
WARNING: ignoring device_model directive.
WARNING: Use "device_model_override" instead if you really want a
non-default device_model
libxl: debug: libxl_create.c:1230:do_domain_create: ao 0x210c360: create:
how=(nil) callback=(nil) poller=0x210c3c0
libxl: debug: libxl_device.c:257:libxl__device_disk_set_backend: Disk
vdev=hda spec.backend=unknown
libxl: debug: libxl_device.c:296:libxl__device_disk_set_backend: Disk
vdev=hda, using backend phy
libxl: debug: libxl_create.c:675:initiate_domain_create: running bootloader
libxl: debug: libxl_bootloader.c:321:libxl__bootloader_run: not a PV
domain, skipping bootloader
libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch
w=0x210c728: deregister unregistered
libxl: debug: libxl_numa.c:475:libxl__get_numa_candidate: New best NUMA
placement candidate found: nr_nodes=1, nr_cpus=4, nr_vcpus=3,
free_memkb=2980
libxl: detail: libxl_dom.c:195:numa_place_domain: NUMA placement candidate
with 1 nodes, 4 cpus and 2980 KB free selected
xc: detail: elf_parse_binary: phdr: paddr=0x100000 memsz=0xa69a4
xc: detail: elf_parse_binary: memory: 0x100000 -> 0x1a69a4
xc: info: VIRTUAL MEMORY ARRANGEMENT:
  Loader:        0000000000100000->00000000001a69a4
  Modules:       0000000000000000->0000000000000000
  TOTAL:         0000000000000000->000000003f800000
  ENTRY ADDRESS: 0000000000100608
xc: info: PHYSICAL MEMORY ALLOCATION:
  4KB PAGES: 0x0000000000000200
  2MB PAGES: 0x00000000000001fb
  1GB PAGES: 0x0000000000000000
xc: detail: elf_load_binary: phdr 0 at 0x7f022c779000 -> 0x7f022c81682d
libxl: debug: libxl_device.c:257:libxl__device_disk_set_backend: Disk
vdev=hda spec.backend=phy
libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: watch
w=0x2112f48 wpath=/local/domain/0/backend/vbd/2/768/state token=3/0:
register slotnum=3
libxl: debug: libxl_create.c:1243:do_domain_create: ao 0x210c360:
inprogress: poller=0x210c3c0, flags=i
libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x2112f48
wpath=/local/domain/0/backend/vbd/2/768/state token=3/0: event
epath=/local/domain/0/backend/vbd/2/768/state
libxl: debug: libxl_event.c:647:devstate_watch_callback: backend
/local/domain/0/backend/vbd/2/768/state wanted state 2 still waiting state 1
libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x2112f48
wpath=/local/domain/0/backend/vbd/2/768/state token=3/0: event
epath=/local/domain/0/backend/vbd/2/768/state
libxl: debug: libxl_event.c:643:devstate_watch_callback: backend
/local/domain/0/backend/vbd/2/768/state wanted state 2 ok
libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister: watch
w=0x2112f48 wpath=/local/domain/0/backend/vbd/2/768/state token=3/0:
deregister slotnum=3
libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch
w=0x2112f48: deregister unregistered
libxl: debug: libxl_device.c:959:device_hotplug: calling hotplug script:
/etc/xen/scripts/block add
libxl: debug: libxl_dm.c:1206:libxl__spawn_local_dm: Spawning device-model
/usr/bin/qemu-system-i386 with arguments:
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
/usr/bin/qemu-system-i386
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -xen-domid
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   2
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -chardev
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-2,server,nowait
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -mon
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
chardev=libxl-cmd,mode=control
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -name
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   ubuntu-hvm-0
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -vnc
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   0.0.0.0:0,to=99
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -global
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   isa-fdc.driveA=
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -serial
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   pty
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -vga
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   cirrus
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -global
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   vga.vram_size_mb=8
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -boot
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   order=c
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -smp
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   2,maxcpus=2
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -device
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
rtl8139,id=nic0,netdev=net0,mac=00:16:3e:23:44:2c
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -netdev
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
type=tap,id=net0,ifname=vif2.0-emu,script=no,downscript=no
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -M
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   xenfv
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -m
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   1016
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -drive
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
file=/dev/ubuntu-vg/ubuntu-hvm-0,if=ide,index=0,media=disk,format=raw,cache=writeback
libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: watch
w=0x210c960 wpath=/local/domain/0/device-model/2/state token=3/1: register
slotnum=3
libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x210c960
wpath=/local/domain/0/device-model/2/state token=3/1: event
epath=/local/domain/0/device-model/2/state
libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x210c960
wpath=/local/domain/0/device-model/2/state token=3/1: event
epath=/local/domain/0/device-model/2/state
libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister: watch
w=0x210c960 wpath=/local/domain/0/device-model/2/state token=3/1:
deregister slotnum=3
libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch
w=0x210c960: deregister unregistered
libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize: connected to
/var/run/xen/qmp-libxl-2
libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: qmp
libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
    "execute": "qmp_capabilities",
    "id": 1
}
'
libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: return
libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
    "execute": "query-chardev",
    "id": 2
}
'
libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: return
libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
    "execute": "change",
    "id": 3,
    "arguments": {
        "device": "vnc",
        "target": "password",
        "arg": ""
    }
}
'
libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: return
libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
    "execute": "query-vnc",
    "id": 4
}
'
libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: return
libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: watch
w=0x210e8a8 wpath=/local/domain/0/backend/vif/2/0/state token=3/2: register
slotnum=3
libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x210e8a8
wpath=/local/domain/0/backend/vif/2/0/state token=3/2: event
epath=/local/domain/0/backend/vif/2/0/state
libxl: debug: libxl_event.c:647:devstate_watch_callback: backend
/local/domain/0/backend/vif/2/0/state wanted state 2 still waiting state 1
libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x210e8a8
wpath=/local/domain/0/backend/vif/2/0/state token=3/2: event
epath=/local/domain/0/backend/vif/2/0/state
libxl: debug: libxl_event.c:643:devstate_watch_callback: backend
/local/domain/0/backend/vif/2/0/state wanted state 2 ok
libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister: watch
w=0x210e8a8 wpath=/local/domain/0/backend/vif/2/0/state token=3/2:
deregister slotnum=3
libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch
w=0x210e8a8: deregister unregistered
libxl: debug: libxl_device.c:959:device_hotplug: calling hotplug script:
/etc/xen/scripts/vif-bridge online
libxl: debug: libxl_device.c:959:device_hotplug: calling hotplug script:
/etc/xen/scripts/vif-bridge add
libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize: connected to
/var/run/xen/qmp-libxl-2
libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: qmp
libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
    "execute": "qmp_capabilities",
    "id": 1
}
'
libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: return
libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
    "execute": "device_add",
    "id": 2,
    "arguments": {
        "driver": "xen-pci-passthrough",
        "id": "pci-pt-03_00.0",
        "hostaddr": "0000:03:00.0"
    }
}
'
libxl: error: libxl_qmp.c:454:qmp_next: Socket read error: Connection reset
by peer
libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: Connection error:
Connection refused
libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: Connection error:
Connection refused
libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: Connection error:
Connection refused
libxl: debug: libxl_pci.c:81:libxl__create_pci_backend: Creating pci backend
libxl: debug: libxl_event.c:1737:libxl__ao_progress_report: ao 0x210c360:
progress report: ignored
libxl: debug: libxl_event.c:1569:libxl__ao_complete: ao 0x210c360:
complete, rc=0
libxl: debug: libxl_event.c:1541:libxl__ao__destroy: ao 0x210c360: destroy
Daemon running with PID 3214
xc: debug: hypercall buffer: total allocations:793 total releases:793
xc: debug: hypercall buffer: current allocations:0 maximum allocations:4
xc: debug: hypercall buffer: cache current size:4
xc: debug: hypercall buffer: cache hits:785 misses:4 toobig:4

###########################################################
root@fiat:/var/log/xen# cat qemu-dm-ubuntu-hvm-0.log
char device redirected to /dev/pts/5 (label serial0)
qemu: hardware error: xen: failed to populate ram at 40030000
CPU #0:
EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=1
ES =0000 00000000 0000ffff 00009300
CS =f000 ffff0000 0000ffff 00009b00
SS =0000 00000000 0000ffff 00009300
DS =0000 00000000 0000ffff 00009300
FS =0000 00000000 0000ffff 00009300
GS =0000 00000000 0000ffff 00009300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT=     00000000 0000ffff
IDT=     00000000 0000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
DR6=ffff0ff0 DR7=00000400
EFER=0000000000000000
FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
XMM00=00000000000000000000000000000000
XMM01=00000000000000000000000000000000
XMM02=00000000000000000000000000000000
XMM03=00000000000000000000000000000000
XMM04=00000000000000000000000000000000
XMM05=00000000000000000000000000000000
XMM06=00000000000000000000000000000000
XMM07=00000000000000000000000000000000
CPU #1:
EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=1
ES =0000 00000000 0000ffff 00009300
CS =f000 ffff0000 0000ffff 00009b00
SS =0000 00000000 0000ffff 00009300
DS =0000 00000000 0000ffff 00009300
FS =0000 00000000 0000ffff 00009300
GS =0000 00000000 0000ffff 00009300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT=     00000000 0000ffff
IDT=     00000000 0000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
DR6=ffff0ff0 DR7=00000400
EFER=0000000000000000
FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
XMM00=00000000000000000000000000000000
XMM01=00000000000000000000000000000000
XMM02=00000000000000000000000000000000
XMM03=00000000000000000000000000000000
XMM04=00000000000000000000000000000000
XMM05=00000000000000000000000000000000
XMM06=00000000000000000000000000000000
XMM07=00000000000000000000000000000000

###########################################################
/etc/default/grub
GRUB_DEFAULT="Xen 4.3-amd64"
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
# biosdevname=0
GRUB_CMDLINE_XEN="dom0_mem=1024M dom0_max_vcpus=1"

[-- Attachment #1.2: Type: text/html, Size: 23641 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Xen 4.3 PCI passthrough possible bug
  2014-02-06 14:39 Xen 4.3 PCI passthrough possible bug Mike Neiderhauser
@ 2014-02-07 15:25 ` Konrad Rzeszutek Wilk
  2014-02-07 15:53   ` Mike Neiderhauser
  0 siblings, 1 reply; 22+ messages in thread
From: Konrad Rzeszutek Wilk @ 2014-02-07 15:25 UTC (permalink / raw)
  To: Mike Neiderhauser; +Cc: xen-devel

On Thu, Feb 06, 2014 at 09:39:37AM -0500, Mike Neiderhauser wrote:
> Hi all,
> 
> I am attempting to do a pci passthrough of an Intel ET card (4x1G NIC) to a
> HVM.  I have been attempting to resolve this issue on the xen-users list,
> but it was advised to post this issue to this list. (Initial Message -
> http://lists.xenproject.org/archives/html/xen-users/2014-02/msg00036.html)
> 
> The machine I am using as host is a Dell Poweredge server with a Xeon
> E31220 with 4GB of ram.
> 
> The possible bug is the following:
> root@fiat:/var/log/xen# cat qemu-dm-ubuntu-hvm-0.log
> char device redirected to /dev/pts/5 (label serial0)
> qemu: hardware error: xen: failed to populate ram at 40030000
> ....
> 
> I believe it may be similar to this thread
> http://markmail.org/message/3zuiojywempoorxj#query:+page:1+mid:gul34vbe4uyog2d4+state:results
> 
> 
> Additional info that may be helpful is below.

Did you try the patch?
> 
> Please let me know if you need any additional information.
> 
> Thanks in advance for any help provided!
> Regards
> 
> ###########################################################
> root@fiat:~# cat /etc/xen/ubuntu-hvm-0.cfg
> ###########################################################
> # Configuration file for Xen HVM
> 
> # HVM Name (as appears in 'xl list')
> name="ubuntu-hvm-0"
> # HVM Build settings (+ hardware)
> #kernel = "/usr/lib/xen-4.3/boot/hvmloader"
> builder='hvm'
> device_model='qemu-dm'
> memory=1024
> vcpus=2
> 
> # Virtual Interface
> # Network bridge to USB NIC
> vif=['bridge=xenbr0']
> 
> ################### PCI PASSTHROUGH ###################
> # PCI Permissive mode toggle
> #pci_permissive=1
> 
> # All PCI Devices
> #pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1', '05:00.0', '05:00.1']
> 
> # First two ports on Intel 4x1G NIC
> #pci=['03:00.0','03:00.1']
> 
> # Last two ports on Intel 4x1G NIC
> #pci=['04:00.0', '04:00.1']
> 
> # All ports on Intel 4x1G NIC
> pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1']
> 
> # Brodcom 2x1G NIC
> #pci=['05:00.0', '05:00.1']
> ################### PCI PASSTHROUGH ###################
> 
> # HVM Disks
> # Hard disk only
> # Boot from HDD first ('c')
> boot="c"
> disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w']
> 
> # Hard disk with ISO
> # Boot from ISO first ('d')
> #boot="d"
> #disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w',
> 'file:/root/ubuntu-12.04.3-server-amd64.iso,hdc:cdrom,r']
> 
> # ACPI Enable
> acpi=1
> # HVM Event Modes
> on_poweroff='destroy'
> on_reboot='restart'
> on_crash='restart'
> 
> # Serial Console Configuration (Xen Console)
> sdl=0
> serial='pty'
> 
> # VNC Configuration
> # Only reacable from localhost
> vnc=1
> vnclisten="0.0.0.0"
> vncpasswd=""
> 
> ###########################################################
> Copied for xen-users list
> ###########################################################
> 
> It appears that it cannot obtain the RAM mapping for this PCI device.
> 
> 
> I rebooted the Host.  I ran assigned pci devices to pciback. The output
> looks like:
> root@fiat:~# ./dev_mgmt.sh
> Loading Kernel Module 'xen-pciback'
> Calling function pciback_dev for:
> PCI DEVICE 0000:03:00.0
> Unbinding 0000:03:00.0 from igb
> Binding 0000:03:00.0 to pciback
> 
> PCI DEVICE 0000:03:00.1
> Unbinding 0000:03:00.1 from igb
> Binding 0000:03:00.1 to pciback
> 
> PCI DEVICE 0000:04:00.0
> Unbinding 0000:04:00.0 from igb
> Binding 0000:04:00.0 to pciback
> 
> PCI DEVICE 0000:04:00.1
> Unbinding 0000:04:00.1 from igb
> Binding 0000:04:00.1 to pciback
> 
> PCI DEVICE 0000:05:00.0
> Unbinding 0000:05:00.0 from bnx2
> Binding 0000:05:00.0 to pciback
> 
> PCI DEVICE 0000:05:00.1
> Unbinding 0000:05:00.1 from bnx2
> Binding 0000:05:00.1 to pciback
> 
> Listing PCI Devices Available to Xen
> 0000:03:00.0
> 0000:03:00.1
> 0000:04:00.0
> 0000:04:00.1
> 0000:05:00.0
> 0000:05:00.1
> 
> ###########################################################
> root@fiat:~# xl -vvv create /etc/xen/ubuntu-hvm-0.cfg
> Parsing config from /etc/xen/ubuntu-hvm-0.cfg
> WARNING: ignoring device_model directive.
> WARNING: Use "device_model_override" instead if you really want a
> non-default device_model
> libxl: debug: libxl_create.c:1230:do_domain_create: ao 0x210c360: create:
> how=(nil) callback=(nil) poller=0x210c3c0
> libxl: debug: libxl_device.c:257:libxl__device_disk_set_backend: Disk
> vdev=hda spec.backend=unknown
> libxl: debug: libxl_device.c:296:libxl__device_disk_set_backend: Disk
> vdev=hda, using backend phy
> libxl: debug: libxl_create.c:675:initiate_domain_create: running bootloader
> libxl: debug: libxl_bootloader.c:321:libxl__bootloader_run: not a PV
> domain, skipping bootloader
> libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch
> w=0x210c728: deregister unregistered
> libxl: debug: libxl_numa.c:475:libxl__get_numa_candidate: New best NUMA
> placement candidate found: nr_nodes=1, nr_cpus=4, nr_vcpus=3,
> free_memkb=2980
> libxl: detail: libxl_dom.c:195:numa_place_domain: NUMA placement candidate
> with 1 nodes, 4 cpus and 2980 KB free selected
> xc: detail: elf_parse_binary: phdr: paddr=0x100000 memsz=0xa69a4
> xc: detail: elf_parse_binary: memory: 0x100000 -> 0x1a69a4
> xc: info: VIRTUAL MEMORY ARRANGEMENT:
>   Loader:        0000000000100000->00000000001a69a4
>   Modules:       0000000000000000->0000000000000000
>   TOTAL:         0000000000000000->000000003f800000
>   ENTRY ADDRESS: 0000000000100608
> xc: info: PHYSICAL MEMORY ALLOCATION:
>   4KB PAGES: 0x0000000000000200
>   2MB PAGES: 0x00000000000001fb
>   1GB PAGES: 0x0000000000000000
> xc: detail: elf_load_binary: phdr 0 at 0x7f022c779000 -> 0x7f022c81682d
> libxl: debug: libxl_device.c:257:libxl__device_disk_set_backend: Disk
> vdev=hda spec.backend=phy
> libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: watch
> w=0x2112f48 wpath=/local/domain/0/backend/vbd/2/768/state token=3/0:
> register slotnum=3
> libxl: debug: libxl_create.c:1243:do_domain_create: ao 0x210c360:
> inprogress: poller=0x210c3c0, flags=i
> libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x2112f48
> wpath=/local/domain/0/backend/vbd/2/768/state token=3/0: event
> epath=/local/domain/0/backend/vbd/2/768/state
> libxl: debug: libxl_event.c:647:devstate_watch_callback: backend
> /local/domain/0/backend/vbd/2/768/state wanted state 2 still waiting state 1
> libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x2112f48
> wpath=/local/domain/0/backend/vbd/2/768/state token=3/0: event
> epath=/local/domain/0/backend/vbd/2/768/state
> libxl: debug: libxl_event.c:643:devstate_watch_callback: backend
> /local/domain/0/backend/vbd/2/768/state wanted state 2 ok
> libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister: watch
> w=0x2112f48 wpath=/local/domain/0/backend/vbd/2/768/state token=3/0:
> deregister slotnum=3
> libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch
> w=0x2112f48: deregister unregistered
> libxl: debug: libxl_device.c:959:device_hotplug: calling hotplug script:
> /etc/xen/scripts/block add
> libxl: debug: libxl_dm.c:1206:libxl__spawn_local_dm: Spawning device-model
> /usr/bin/qemu-system-i386 with arguments:
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> /usr/bin/qemu-system-i386
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -xen-domid
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   2
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -chardev
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-2,server,nowait
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -mon
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> chardev=libxl-cmd,mode=control
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -name
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   ubuntu-hvm-0
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -vnc
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   0.0.0.0:0,to=99
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -global
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   isa-fdc.driveA=
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -serial
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   pty
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -vga
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   cirrus
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -global
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   vga.vram_size_mb=8
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -boot
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   order=c
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -smp
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   2,maxcpus=2
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -device
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> rtl8139,id=nic0,netdev=net0,mac=00:16:3e:23:44:2c
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -netdev
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> type=tap,id=net0,ifname=vif2.0-emu,script=no,downscript=no
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -M
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   xenfv
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -m
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   1016
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -drive
> libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> file=/dev/ubuntu-vg/ubuntu-hvm-0,if=ide,index=0,media=disk,format=raw,cache=writeback
> libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: watch
> w=0x210c960 wpath=/local/domain/0/device-model/2/state token=3/1: register
> slotnum=3
> libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x210c960
> wpath=/local/domain/0/device-model/2/state token=3/1: event
> epath=/local/domain/0/device-model/2/state
> libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x210c960
> wpath=/local/domain/0/device-model/2/state token=3/1: event
> epath=/local/domain/0/device-model/2/state
> libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister: watch
> w=0x210c960 wpath=/local/domain/0/device-model/2/state token=3/1:
> deregister slotnum=3
> libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch
> w=0x210c960: deregister unregistered
> libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize: connected to
> /var/run/xen/qmp-libxl-2
> libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: qmp
> libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
>     "execute": "qmp_capabilities",
>     "id": 1
> }
> '
> libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: return
> libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
>     "execute": "query-chardev",
>     "id": 2
> }
> '
> libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: return
> libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
>     "execute": "change",
>     "id": 3,
>     "arguments": {
>         "device": "vnc",
>         "target": "password",
>         "arg": ""
>     }
> }
> '
> libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: return
> libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
>     "execute": "query-vnc",
>     "id": 4
> }
> '
> libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: return
> libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: watch
> w=0x210e8a8 wpath=/local/domain/0/backend/vif/2/0/state token=3/2: register
> slotnum=3
> libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x210e8a8
> wpath=/local/domain/0/backend/vif/2/0/state token=3/2: event
> epath=/local/domain/0/backend/vif/2/0/state
> libxl: debug: libxl_event.c:647:devstate_watch_callback: backend
> /local/domain/0/backend/vif/2/0/state wanted state 2 still waiting state 1
> libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x210e8a8
> wpath=/local/domain/0/backend/vif/2/0/state token=3/2: event
> epath=/local/domain/0/backend/vif/2/0/state
> libxl: debug: libxl_event.c:643:devstate_watch_callback: backend
> /local/domain/0/backend/vif/2/0/state wanted state 2 ok
> libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister: watch
> w=0x210e8a8 wpath=/local/domain/0/backend/vif/2/0/state token=3/2:
> deregister slotnum=3
> libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch
> w=0x210e8a8: deregister unregistered
> libxl: debug: libxl_device.c:959:device_hotplug: calling hotplug script:
> /etc/xen/scripts/vif-bridge online
> libxl: debug: libxl_device.c:959:device_hotplug: calling hotplug script:
> /etc/xen/scripts/vif-bridge add
> libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize: connected to
> /var/run/xen/qmp-libxl-2
> libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: qmp
> libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
>     "execute": "qmp_capabilities",
>     "id": 1
> }
> '
> libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: return
> libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
>     "execute": "device_add",
>     "id": 2,
>     "arguments": {
>         "driver": "xen-pci-passthrough",
>         "id": "pci-pt-03_00.0",
>         "hostaddr": "0000:03:00.0"
>     }
> }
> '
> libxl: error: libxl_qmp.c:454:qmp_next: Socket read error: Connection reset
> by peer
> libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: Connection error:
> Connection refused
> libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: Connection error:
> Connection refused
> libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: Connection error:
> Connection refused
> libxl: debug: libxl_pci.c:81:libxl__create_pci_backend: Creating pci backend
> libxl: debug: libxl_event.c:1737:libxl__ao_progress_report: ao 0x210c360:
> progress report: ignored
> libxl: debug: libxl_event.c:1569:libxl__ao_complete: ao 0x210c360:
> complete, rc=0
> libxl: debug: libxl_event.c:1541:libxl__ao__destroy: ao 0x210c360: destroy
> Daemon running with PID 3214
> xc: debug: hypercall buffer: total allocations:793 total releases:793
> xc: debug: hypercall buffer: current allocations:0 maximum allocations:4
> xc: debug: hypercall buffer: cache current size:4
> xc: debug: hypercall buffer: cache hits:785 misses:4 toobig:4
> 
> ###########################################################
> root@fiat:/var/log/xen# cat qemu-dm-ubuntu-hvm-0.log
> char device redirected to /dev/pts/5 (label serial0)
> qemu: hardware error: xen: failed to populate ram at 40030000
> CPU #0:
> EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
> ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
> EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=1
> ES =0000 00000000 0000ffff 00009300
> CS =f000 ffff0000 0000ffff 00009b00
> SS =0000 00000000 0000ffff 00009300
> DS =0000 00000000 0000ffff 00009300
> FS =0000 00000000 0000ffff 00009300
> GS =0000 00000000 0000ffff 00009300
> LDT=0000 00000000 0000ffff 00008200
> TR =0000 00000000 0000ffff 00008b00
> GDT=     00000000 0000ffff
> IDT=     00000000 0000ffff
> CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
> DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
> DR6=ffff0ff0 DR7=00000400
> EFER=0000000000000000
> FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
> FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
> FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
> FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
> FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
> XMM00=00000000000000000000000000000000
> XMM01=00000000000000000000000000000000
> XMM02=00000000000000000000000000000000
> XMM03=00000000000000000000000000000000
> XMM04=00000000000000000000000000000000
> XMM05=00000000000000000000000000000000
> XMM06=00000000000000000000000000000000
> XMM07=00000000000000000000000000000000
> CPU #1:
> EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
> ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
> EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=1
> ES =0000 00000000 0000ffff 00009300
> CS =f000 ffff0000 0000ffff 00009b00
> SS =0000 00000000 0000ffff 00009300
> DS =0000 00000000 0000ffff 00009300
> FS =0000 00000000 0000ffff 00009300
> GS =0000 00000000 0000ffff 00009300
> LDT=0000 00000000 0000ffff 00008200
> TR =0000 00000000 0000ffff 00008b00
> GDT=     00000000 0000ffff
> IDT=     00000000 0000ffff
> CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
> DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
> DR6=ffff0ff0 DR7=00000400
> EFER=0000000000000000
> FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
> FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
> FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
> FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
> FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
> XMM00=00000000000000000000000000000000
> XMM01=00000000000000000000000000000000
> XMM02=00000000000000000000000000000000
> XMM03=00000000000000000000000000000000
> XMM04=00000000000000000000000000000000
> XMM05=00000000000000000000000000000000
> XMM06=00000000000000000000000000000000
> XMM07=00000000000000000000000000000000
> 
> ###########################################################
> /etc/default/grub
> GRUB_DEFAULT="Xen 4.3-amd64"
> GRUB_HIDDEN_TIMEOUT=0
> GRUB_HIDDEN_TIMEOUT_QUIET=true
> GRUB_TIMEOUT=10
> GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
> GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
> GRUB_CMDLINE_LINUX=""
> # biosdevname=0
> GRUB_CMDLINE_XEN="dom0_mem=1024M dom0_max_vcpus=1"

> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Xen 4.3 PCI passthrough possible bug
  2014-02-07 15:25 ` Konrad Rzeszutek Wilk
@ 2014-02-07 15:53   ` Mike Neiderhauser
  2014-02-07 18:30     ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 22+ messages in thread
From: Mike Neiderhauser @ 2014-02-07 15:53 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 18827 bytes --]

I did not.  I do not have the toolchain installed.  I may have time later
today to try the patch.  Are there any specific instructions on how to
patch the src, compile and install?

Regards


On Fri, Feb 7, 2014 at 10:25 AM, Konrad Rzeszutek Wilk <
konrad.wilk@oracle.com> wrote:

> On Thu, Feb 06, 2014 at 09:39:37AM -0500, Mike Neiderhauser wrote:
> > Hi all,
> >
> > I am attempting to do a pci passthrough of an Intel ET card (4x1G NIC)
> to a
> > HVM.  I have been attempting to resolve this issue on the xen-users list,
> > but it was advised to post this issue to this list. (Initial Message -
> >
> http://lists.xenproject.org/archives/html/xen-users/2014-02/msg00036.html)
> >
> > The machine I am using as host is a Dell Poweredge server with a Xeon
> > E31220 with 4GB of ram.
> >
> > The possible bug is the following:
> > root@fiat:/var/log/xen# cat qemu-dm-ubuntu-hvm-0.log
> > char device redirected to /dev/pts/5 (label serial0)
> > qemu: hardware error: xen: failed to populate ram at 40030000
> > ....
> >
> > I believe it may be similar to this thread
> >
> http://markmail.org/message/3zuiojywempoorxj#query:+page:1+mid:gul34vbe4uyog2d4+state:results
> >
> >
> > Additional info that may be helpful is below.
>
> Did you try the patch?
> >
> > Please let me know if you need any additional information.
> >
> > Thanks in advance for any help provided!
> > Regards
> >
> > ###########################################################
> > root@fiat:~# cat /etc/xen/ubuntu-hvm-0.cfg
> > ###########################################################
> > # Configuration file for Xen HVM
> >
> > # HVM Name (as appears in 'xl list')
> > name="ubuntu-hvm-0"
> > # HVM Build settings (+ hardware)
> > #kernel = "/usr/lib/xen-4.3/boot/hvmloader"
> > builder='hvm'
> > device_model='qemu-dm'
> > memory=1024
> > vcpus=2
> >
> > # Virtual Interface
> > # Network bridge to USB NIC
> > vif=['bridge=xenbr0']
> >
> > ################### PCI PASSTHROUGH ###################
> > # PCI Permissive mode toggle
> > #pci_permissive=1
> >
> > # All PCI Devices
> > #pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1', '05:00.0', '05:00.1']
> >
> > # First two ports on Intel 4x1G NIC
> > #pci=['03:00.0','03:00.1']
> >
> > # Last two ports on Intel 4x1G NIC
> > #pci=['04:00.0', '04:00.1']
> >
> > # All ports on Intel 4x1G NIC
> > pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1']
> >
> > # Brodcom 2x1G NIC
> > #pci=['05:00.0', '05:00.1']
> > ################### PCI PASSTHROUGH ###################
> >
> > # HVM Disks
> > # Hard disk only
> > # Boot from HDD first ('c')
> > boot="c"
> > disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w']
> >
> > # Hard disk with ISO
> > # Boot from ISO first ('d')
> > #boot="d"
> > #disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w',
> > 'file:/root/ubuntu-12.04.3-server-amd64.iso,hdc:cdrom,r']
> >
> > # ACPI Enable
> > acpi=1
> > # HVM Event Modes
> > on_poweroff='destroy'
> > on_reboot='restart'
> > on_crash='restart'
> >
> > # Serial Console Configuration (Xen Console)
> > sdl=0
> > serial='pty'
> >
> > # VNC Configuration
> > # Only reacable from localhost
> > vnc=1
> > vnclisten="0.0.0.0"
> > vncpasswd=""
> >
> > ###########################################################
> > Copied for xen-users list
> > ###########################################################
> >
> > It appears that it cannot obtain the RAM mapping for this PCI device.
> >
> >
> > I rebooted the Host.  I ran assigned pci devices to pciback. The output
> > looks like:
> > root@fiat:~# ./dev_mgmt.sh
> > Loading Kernel Module 'xen-pciback'
> > Calling function pciback_dev for:
> > PCI DEVICE 0000:03:00.0
> > Unbinding 0000:03:00.0 from igb
> > Binding 0000:03:00.0 to pciback
> >
> > PCI DEVICE 0000:03:00.1
> > Unbinding 0000:03:00.1 from igb
> > Binding 0000:03:00.1 to pciback
> >
> > PCI DEVICE 0000:04:00.0
> > Unbinding 0000:04:00.0 from igb
> > Binding 0000:04:00.0 to pciback
> >
> > PCI DEVICE 0000:04:00.1
> > Unbinding 0000:04:00.1 from igb
> > Binding 0000:04:00.1 to pciback
> >
> > PCI DEVICE 0000:05:00.0
> > Unbinding 0000:05:00.0 from bnx2
> > Binding 0000:05:00.0 to pciback
> >
> > PCI DEVICE 0000:05:00.1
> > Unbinding 0000:05:00.1 from bnx2
> > Binding 0000:05:00.1 to pciback
> >
> > Listing PCI Devices Available to Xen
> > 0000:03:00.0
> > 0000:03:00.1
> > 0000:04:00.0
> > 0000:04:00.1
> > 0000:05:00.0
> > 0000:05:00.1
> >
> > ###########################################################
> > root@fiat:~# xl -vvv create /etc/xen/ubuntu-hvm-0.cfg
> > Parsing config from /etc/xen/ubuntu-hvm-0.cfg
> > WARNING: ignoring device_model directive.
> > WARNING: Use "device_model_override" instead if you really want a
> > non-default device_model
> > libxl: debug: libxl_create.c:1230:do_domain_create: ao 0x210c360: create:
> > how=(nil) callback=(nil) poller=0x210c3c0
> > libxl: debug: libxl_device.c:257:libxl__device_disk_set_backend: Disk
> > vdev=hda spec.backend=unknown
> > libxl: debug: libxl_device.c:296:libxl__device_disk_set_backend: Disk
> > vdev=hda, using backend phy
> > libxl: debug: libxl_create.c:675:initiate_domain_create: running
> bootloader
> > libxl: debug: libxl_bootloader.c:321:libxl__bootloader_run: not a PV
> > domain, skipping bootloader
> > libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch
> > w=0x210c728: deregister unregistered
> > libxl: debug: libxl_numa.c:475:libxl__get_numa_candidate: New best NUMA
> > placement candidate found: nr_nodes=1, nr_cpus=4, nr_vcpus=3,
> > free_memkb=2980
> > libxl: detail: libxl_dom.c:195:numa_place_domain: NUMA placement
> candidate
> > with 1 nodes, 4 cpus and 2980 KB free selected
> > xc: detail: elf_parse_binary: phdr: paddr=0x100000 memsz=0xa69a4
> > xc: detail: elf_parse_binary: memory: 0x100000 -> 0x1a69a4
> > xc: info: VIRTUAL MEMORY ARRANGEMENT:
> >   Loader:        0000000000100000->00000000001a69a4
> >   Modules:       0000000000000000->0000000000000000
> >   TOTAL:         0000000000000000->000000003f800000
> >   ENTRY ADDRESS: 0000000000100608
> > xc: info: PHYSICAL MEMORY ALLOCATION:
> >   4KB PAGES: 0x0000000000000200
> >   2MB PAGES: 0x00000000000001fb
> >   1GB PAGES: 0x0000000000000000
> > xc: detail: elf_load_binary: phdr 0 at 0x7f022c779000 -> 0x7f022c81682d
> > libxl: debug: libxl_device.c:257:libxl__device_disk_set_backend: Disk
> > vdev=hda spec.backend=phy
> > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: watch
> > w=0x2112f48 wpath=/local/domain/0/backend/vbd/2/768/state token=3/0:
> > register slotnum=3
> > libxl: debug: libxl_create.c:1243:do_domain_create: ao 0x210c360:
> > inprogress: poller=0x210c3c0, flags=i
> > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x2112f48
> > wpath=/local/domain/0/backend/vbd/2/768/state token=3/0: event
> > epath=/local/domain/0/backend/vbd/2/768/state
> > libxl: debug: libxl_event.c:647:devstate_watch_callback: backend
> > /local/domain/0/backend/vbd/2/768/state wanted state 2 still waiting
> state 1
> > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x2112f48
> > wpath=/local/domain/0/backend/vbd/2/768/state token=3/0: event
> > epath=/local/domain/0/backend/vbd/2/768/state
> > libxl: debug: libxl_event.c:643:devstate_watch_callback: backend
> > /local/domain/0/backend/vbd/2/768/state wanted state 2 ok
> > libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister: watch
> > w=0x2112f48 wpath=/local/domain/0/backend/vbd/2/768/state token=3/0:
> > deregister slotnum=3
> > libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch
> > w=0x2112f48: deregister unregistered
> > libxl: debug: libxl_device.c:959:device_hotplug: calling hotplug script:
> > /etc/xen/scripts/block add
> > libxl: debug: libxl_dm.c:1206:libxl__spawn_local_dm: Spawning
> device-model
> > /usr/bin/qemu-system-i386 with arguments:
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > /usr/bin/qemu-system-i386
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -xen-domid
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   2
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -chardev
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-2,server,nowait
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -mon
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > chardev=libxl-cmd,mode=control
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -name
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   ubuntu-hvm-0
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -vnc
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   0.0.0.0:0,to=99
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -global
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   isa-fdc.driveA=
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -serial
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   pty
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -vga
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   cirrus
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -global
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   vga.vram_size_mb=8
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -boot
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   order=c
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -smp
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   2,maxcpus=2
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -device
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > rtl8139,id=nic0,netdev=net0,mac=00:16:3e:23:44:2c
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -netdev
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > type=tap,id=net0,ifname=vif2.0-emu,script=no,downscript=no
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -M
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   xenfv
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -m
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   1016
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -drive
> > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> >
> file=/dev/ubuntu-vg/ubuntu-hvm-0,if=ide,index=0,media=disk,format=raw,cache=writeback
> > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: watch
> > w=0x210c960 wpath=/local/domain/0/device-model/2/state token=3/1:
> register
> > slotnum=3
> > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x210c960
> > wpath=/local/domain/0/device-model/2/state token=3/1: event
> > epath=/local/domain/0/device-model/2/state
> > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x210c960
> > wpath=/local/domain/0/device-model/2/state token=3/1: event
> > epath=/local/domain/0/device-model/2/state
> > libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister: watch
> > w=0x210c960 wpath=/local/domain/0/device-model/2/state token=3/1:
> > deregister slotnum=3
> > libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch
> > w=0x210c960: deregister unregistered
> > libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize: connected to
> > /var/run/xen/qmp-libxl-2
> > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: qmp
> > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
> >     "execute": "qmp_capabilities",
> >     "id": 1
> > }
> > '
> > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: return
> > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
> >     "execute": "query-chardev",
> >     "id": 2
> > }
> > '
> > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: return
> > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
> >     "execute": "change",
> >     "id": 3,
> >     "arguments": {
> >         "device": "vnc",
> >         "target": "password",
> >         "arg": ""
> >     }
> > }
> > '
> > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: return
> > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
> >     "execute": "query-vnc",
> >     "id": 4
> > }
> > '
> > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: return
> > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: watch
> > w=0x210e8a8 wpath=/local/domain/0/backend/vif/2/0/state token=3/2:
> register
> > slotnum=3
> > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x210e8a8
> > wpath=/local/domain/0/backend/vif/2/0/state token=3/2: event
> > epath=/local/domain/0/backend/vif/2/0/state
> > libxl: debug: libxl_event.c:647:devstate_watch_callback: backend
> > /local/domain/0/backend/vif/2/0/state wanted state 2 still waiting state
> 1
> > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x210e8a8
> > wpath=/local/domain/0/backend/vif/2/0/state token=3/2: event
> > epath=/local/domain/0/backend/vif/2/0/state
> > libxl: debug: libxl_event.c:643:devstate_watch_callback: backend
> > /local/domain/0/backend/vif/2/0/state wanted state 2 ok
> > libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister: watch
> > w=0x210e8a8 wpath=/local/domain/0/backend/vif/2/0/state token=3/2:
> > deregister slotnum=3
> > libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch
> > w=0x210e8a8: deregister unregistered
> > libxl: debug: libxl_device.c:959:device_hotplug: calling hotplug script:
> > /etc/xen/scripts/vif-bridge online
> > libxl: debug: libxl_device.c:959:device_hotplug: calling hotplug script:
> > /etc/xen/scripts/vif-bridge add
> > libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize: connected to
> > /var/run/xen/qmp-libxl-2
> > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: qmp
> > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
> >     "execute": "qmp_capabilities",
> >     "id": 1
> > }
> > '
> > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: return
> > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
> >     "execute": "device_add",
> >     "id": 2,
> >     "arguments": {
> >         "driver": "xen-pci-passthrough",
> >         "id": "pci-pt-03_00.0",
> >         "hostaddr": "0000:03:00.0"
> >     }
> > }
> > '
> > libxl: error: libxl_qmp.c:454:qmp_next: Socket read error: Connection
> reset
> > by peer
> > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: Connection error:
> > Connection refused
> > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: Connection error:
> > Connection refused
> > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: Connection error:
> > Connection refused
> > libxl: debug: libxl_pci.c:81:libxl__create_pci_backend: Creating pci
> backend
> > libxl: debug: libxl_event.c:1737:libxl__ao_progress_report: ao 0x210c360:
> > progress report: ignored
> > libxl: debug: libxl_event.c:1569:libxl__ao_complete: ao 0x210c360:
> > complete, rc=0
> > libxl: debug: libxl_event.c:1541:libxl__ao__destroy: ao 0x210c360:
> destroy
> > Daemon running with PID 3214
> > xc: debug: hypercall buffer: total allocations:793 total releases:793
> > xc: debug: hypercall buffer: current allocations:0 maximum allocations:4
> > xc: debug: hypercall buffer: cache current size:4
> > xc: debug: hypercall buffer: cache hits:785 misses:4 toobig:4
> >
> > ###########################################################
> > root@fiat:/var/log/xen# cat qemu-dm-ubuntu-hvm-0.log
> > char device redirected to /dev/pts/5 (label serial0)
> > qemu: hardware error: xen: failed to populate ram at 40030000
> > CPU #0:
> > EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
> > ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
> > EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=1
> > ES =0000 00000000 0000ffff 00009300
> > CS =f000 ffff0000 0000ffff 00009b00
> > SS =0000 00000000 0000ffff 00009300
> > DS =0000 00000000 0000ffff 00009300
> > FS =0000 00000000 0000ffff 00009300
> > GS =0000 00000000 0000ffff 00009300
> > LDT=0000 00000000 0000ffff 00008200
> > TR =0000 00000000 0000ffff 00008b00
> > GDT=     00000000 0000ffff
> > IDT=     00000000 0000ffff
> > CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
> > DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
> > DR6=ffff0ff0 DR7=00000400
> > EFER=0000000000000000
> > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
> > FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
> > FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
> > FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
> > FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
> > XMM00=00000000000000000000000000000000
> > XMM01=00000000000000000000000000000000
> > XMM02=00000000000000000000000000000000
> > XMM03=00000000000000000000000000000000
> > XMM04=00000000000000000000000000000000
> > XMM05=00000000000000000000000000000000
> > XMM06=00000000000000000000000000000000
> > XMM07=00000000000000000000000000000000
> > CPU #1:
> > EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
> > ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
> > EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=1
> > ES =0000 00000000 0000ffff 00009300
> > CS =f000 ffff0000 0000ffff 00009b00
> > SS =0000 00000000 0000ffff 00009300
> > DS =0000 00000000 0000ffff 00009300
> > FS =0000 00000000 0000ffff 00009300
> > GS =0000 00000000 0000ffff 00009300
> > LDT=0000 00000000 0000ffff 00008200
> > TR =0000 00000000 0000ffff 00008b00
> > GDT=     00000000 0000ffff
> > IDT=     00000000 0000ffff
> > CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
> > DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
> > DR6=ffff0ff0 DR7=00000400
> > EFER=0000000000000000
> > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
> > FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
> > FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
> > FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
> > FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
> > XMM00=00000000000000000000000000000000
> > XMM01=00000000000000000000000000000000
> > XMM02=00000000000000000000000000000000
> > XMM03=00000000000000000000000000000000
> > XMM04=00000000000000000000000000000000
> > XMM05=00000000000000000000000000000000
> > XMM06=00000000000000000000000000000000
> > XMM07=00000000000000000000000000000000
> >
> > ###########################################################
> > /etc/default/grub
> > GRUB_DEFAULT="Xen 4.3-amd64"
> > GRUB_HIDDEN_TIMEOUT=0
> > GRUB_HIDDEN_TIMEOUT_QUIET=true
> > GRUB_TIMEOUT=10
> > GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
> > GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
> > GRUB_CMDLINE_LINUX=""
> > # biosdevname=0
> > GRUB_CMDLINE_XEN="dom0_mem=1024M dom0_max_vcpus=1"
>
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.xen.org
> > http://lists.xen.org/xen-devel
>
>

[-- Attachment #1.2: Type: text/html, Size: 22878 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Xen 4.3 PCI passthrough possible bug
  2014-02-07 15:53   ` Mike Neiderhauser
@ 2014-02-07 18:30     ` Konrad Rzeszutek Wilk
  2014-02-07 18:40       ` Mike Neiderhauser
  0 siblings, 1 reply; 22+ messages in thread
From: Konrad Rzeszutek Wilk @ 2014-02-07 18:30 UTC (permalink / raw)
  To: Mike Neiderhauser; +Cc: xen-devel

On Fri, Feb 07, 2014 at 10:53:22AM -0500, Mike Neiderhauser wrote:
> I did not.  I do not have the toolchain installed.  I may have time later
> today to try the patch.  Are there any specific instructions on how to
> patch the src, compile and install?

There actually should be a new version of Xen 4.4-rcX which will have the
fix. That might be easier for you?
> 
> Regards
> 
> 
> On Fri, Feb 7, 2014 at 10:25 AM, Konrad Rzeszutek Wilk <
> konrad.wilk@oracle.com> wrote:
> 
> > On Thu, Feb 06, 2014 at 09:39:37AM -0500, Mike Neiderhauser wrote:
> > > Hi all,
> > >
> > > I am attempting to do a pci passthrough of an Intel ET card (4x1G NIC)
> > to a
> > > HVM.  I have been attempting to resolve this issue on the xen-users list,
> > > but it was advised to post this issue to this list. (Initial Message -
> > >
> > http://lists.xenproject.org/archives/html/xen-users/2014-02/msg00036.html)
> > >
> > > The machine I am using as host is a Dell Poweredge server with a Xeon
> > > E31220 with 4GB of ram.
> > >
> > > The possible bug is the following:
> > > root@fiat:/var/log/xen# cat qemu-dm-ubuntu-hvm-0.log
> > > char device redirected to /dev/pts/5 (label serial0)
> > > qemu: hardware error: xen: failed to populate ram at 40030000
> > > ....
> > >
> > > I believe it may be similar to this thread
> > >
> > http://markmail.org/message/3zuiojywempoorxj#query:+page:1+mid:gul34vbe4uyog2d4+state:results
> > >
> > >
> > > Additional info that may be helpful is below.
> >
> > Did you try the patch?
> > >
> > > Please let me know if you need any additional information.
> > >
> > > Thanks in advance for any help provided!
> > > Regards
> > >
> > > ###########################################################
> > > root@fiat:~# cat /etc/xen/ubuntu-hvm-0.cfg
> > > ###########################################################
> > > # Configuration file for Xen HVM
> > >
> > > # HVM Name (as appears in 'xl list')
> > > name="ubuntu-hvm-0"
> > > # HVM Build settings (+ hardware)
> > > #kernel = "/usr/lib/xen-4.3/boot/hvmloader"
> > > builder='hvm'
> > > device_model='qemu-dm'
> > > memory=1024
> > > vcpus=2
> > >
> > > # Virtual Interface
> > > # Network bridge to USB NIC
> > > vif=['bridge=xenbr0']
> > >
> > > ################### PCI PASSTHROUGH ###################
> > > # PCI Permissive mode toggle
> > > #pci_permissive=1
> > >
> > > # All PCI Devices
> > > #pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1', '05:00.0', '05:00.1']
> > >
> > > # First two ports on Intel 4x1G NIC
> > > #pci=['03:00.0','03:00.1']
> > >
> > > # Last two ports on Intel 4x1G NIC
> > > #pci=['04:00.0', '04:00.1']
> > >
> > > # All ports on Intel 4x1G NIC
> > > pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1']
> > >
> > > # Brodcom 2x1G NIC
> > > #pci=['05:00.0', '05:00.1']
> > > ################### PCI PASSTHROUGH ###################
> > >
> > > # HVM Disks
> > > # Hard disk only
> > > # Boot from HDD first ('c')
> > > boot="c"
> > > disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w']
> > >
> > > # Hard disk with ISO
> > > # Boot from ISO first ('d')
> > > #boot="d"
> > > #disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w',
> > > 'file:/root/ubuntu-12.04.3-server-amd64.iso,hdc:cdrom,r']
> > >
> > > # ACPI Enable
> > > acpi=1
> > > # HVM Event Modes
> > > on_poweroff='destroy'
> > > on_reboot='restart'
> > > on_crash='restart'
> > >
> > > # Serial Console Configuration (Xen Console)
> > > sdl=0
> > > serial='pty'
> > >
> > > # VNC Configuration
> > > # Only reacable from localhost
> > > vnc=1
> > > vnclisten="0.0.0.0"
> > > vncpasswd=""
> > >
> > > ###########################################################
> > > Copied for xen-users list
> > > ###########################################################
> > >
> > > It appears that it cannot obtain the RAM mapping for this PCI device.
> > >
> > >
> > > I rebooted the Host.  I ran assigned pci devices to pciback. The output
> > > looks like:
> > > root@fiat:~# ./dev_mgmt.sh
> > > Loading Kernel Module 'xen-pciback'
> > > Calling function pciback_dev for:
> > > PCI DEVICE 0000:03:00.0
> > > Unbinding 0000:03:00.0 from igb
> > > Binding 0000:03:00.0 to pciback
> > >
> > > PCI DEVICE 0000:03:00.1
> > > Unbinding 0000:03:00.1 from igb
> > > Binding 0000:03:00.1 to pciback
> > >
> > > PCI DEVICE 0000:04:00.0
> > > Unbinding 0000:04:00.0 from igb
> > > Binding 0000:04:00.0 to pciback
> > >
> > > PCI DEVICE 0000:04:00.1
> > > Unbinding 0000:04:00.1 from igb
> > > Binding 0000:04:00.1 to pciback
> > >
> > > PCI DEVICE 0000:05:00.0
> > > Unbinding 0000:05:00.0 from bnx2
> > > Binding 0000:05:00.0 to pciback
> > >
> > > PCI DEVICE 0000:05:00.1
> > > Unbinding 0000:05:00.1 from bnx2
> > > Binding 0000:05:00.1 to pciback
> > >
> > > Listing PCI Devices Available to Xen
> > > 0000:03:00.0
> > > 0000:03:00.1
> > > 0000:04:00.0
> > > 0000:04:00.1
> > > 0000:05:00.0
> > > 0000:05:00.1
> > >
> > > ###########################################################
> > > root@fiat:~# xl -vvv create /etc/xen/ubuntu-hvm-0.cfg
> > > Parsing config from /etc/xen/ubuntu-hvm-0.cfg
> > > WARNING: ignoring device_model directive.
> > > WARNING: Use "device_model_override" instead if you really want a
> > > non-default device_model
> > > libxl: debug: libxl_create.c:1230:do_domain_create: ao 0x210c360: create:
> > > how=(nil) callback=(nil) poller=0x210c3c0
> > > libxl: debug: libxl_device.c:257:libxl__device_disk_set_backend: Disk
> > > vdev=hda spec.backend=unknown
> > > libxl: debug: libxl_device.c:296:libxl__device_disk_set_backend: Disk
> > > vdev=hda, using backend phy
> > > libxl: debug: libxl_create.c:675:initiate_domain_create: running
> > bootloader
> > > libxl: debug: libxl_bootloader.c:321:libxl__bootloader_run: not a PV
> > > domain, skipping bootloader
> > > libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch
> > > w=0x210c728: deregister unregistered
> > > libxl: debug: libxl_numa.c:475:libxl__get_numa_candidate: New best NUMA
> > > placement candidate found: nr_nodes=1, nr_cpus=4, nr_vcpus=3,
> > > free_memkb=2980
> > > libxl: detail: libxl_dom.c:195:numa_place_domain: NUMA placement
> > candidate
> > > with 1 nodes, 4 cpus and 2980 KB free selected
> > > xc: detail: elf_parse_binary: phdr: paddr=0x100000 memsz=0xa69a4
> > > xc: detail: elf_parse_binary: memory: 0x100000 -> 0x1a69a4
> > > xc: info: VIRTUAL MEMORY ARRANGEMENT:
> > >   Loader:        0000000000100000->00000000001a69a4
> > >   Modules:       0000000000000000->0000000000000000
> > >   TOTAL:         0000000000000000->000000003f800000
> > >   ENTRY ADDRESS: 0000000000100608
> > > xc: info: PHYSICAL MEMORY ALLOCATION:
> > >   4KB PAGES: 0x0000000000000200
> > >   2MB PAGES: 0x00000000000001fb
> > >   1GB PAGES: 0x0000000000000000
> > > xc: detail: elf_load_binary: phdr 0 at 0x7f022c779000 -> 0x7f022c81682d
> > > libxl: debug: libxl_device.c:257:libxl__device_disk_set_backend: Disk
> > > vdev=hda spec.backend=phy
> > > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: watch
> > > w=0x2112f48 wpath=/local/domain/0/backend/vbd/2/768/state token=3/0:
> > > register slotnum=3
> > > libxl: debug: libxl_create.c:1243:do_domain_create: ao 0x210c360:
> > > inprogress: poller=0x210c3c0, flags=i
> > > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x2112f48
> > > wpath=/local/domain/0/backend/vbd/2/768/state token=3/0: event
> > > epath=/local/domain/0/backend/vbd/2/768/state
> > > libxl: debug: libxl_event.c:647:devstate_watch_callback: backend
> > > /local/domain/0/backend/vbd/2/768/state wanted state 2 still waiting
> > state 1
> > > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x2112f48
> > > wpath=/local/domain/0/backend/vbd/2/768/state token=3/0: event
> > > epath=/local/domain/0/backend/vbd/2/768/state
> > > libxl: debug: libxl_event.c:643:devstate_watch_callback: backend
> > > /local/domain/0/backend/vbd/2/768/state wanted state 2 ok
> > > libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister: watch
> > > w=0x2112f48 wpath=/local/domain/0/backend/vbd/2/768/state token=3/0:
> > > deregister slotnum=3
> > > libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch
> > > w=0x2112f48: deregister unregistered
> > > libxl: debug: libxl_device.c:959:device_hotplug: calling hotplug script:
> > > /etc/xen/scripts/block add
> > > libxl: debug: libxl_dm.c:1206:libxl__spawn_local_dm: Spawning
> > device-model
> > > /usr/bin/qemu-system-i386 with arguments:
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > /usr/bin/qemu-system-i386
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -xen-domid
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   2
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -chardev
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-2,server,nowait
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -mon
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > chardev=libxl-cmd,mode=control
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -name
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   ubuntu-hvm-0
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -vnc
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   0.0.0.0:0,to=99
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -global
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   isa-fdc.driveA=
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -serial
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   pty
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -vga
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   cirrus
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -global
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   vga.vram_size_mb=8
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -boot
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   order=c
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -smp
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   2,maxcpus=2
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -device
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > rtl8139,id=nic0,netdev=net0,mac=00:16:3e:23:44:2c
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -netdev
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > type=tap,id=net0,ifname=vif2.0-emu,script=no,downscript=no
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -M
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   xenfv
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -m
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   1016
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -drive
> > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > >
> > file=/dev/ubuntu-vg/ubuntu-hvm-0,if=ide,index=0,media=disk,format=raw,cache=writeback
> > > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: watch
> > > w=0x210c960 wpath=/local/domain/0/device-model/2/state token=3/1:
> > register
> > > slotnum=3
> > > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x210c960
> > > wpath=/local/domain/0/device-model/2/state token=3/1: event
> > > epath=/local/domain/0/device-model/2/state
> > > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x210c960
> > > wpath=/local/domain/0/device-model/2/state token=3/1: event
> > > epath=/local/domain/0/device-model/2/state
> > > libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister: watch
> > > w=0x210c960 wpath=/local/domain/0/device-model/2/state token=3/1:
> > > deregister slotnum=3
> > > libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch
> > > w=0x210c960: deregister unregistered
> > > libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize: connected to
> > > /var/run/xen/qmp-libxl-2
> > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: qmp
> > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
> > >     "execute": "qmp_capabilities",
> > >     "id": 1
> > > }
> > > '
> > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: return
> > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
> > >     "execute": "query-chardev",
> > >     "id": 2
> > > }
> > > '
> > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: return
> > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
> > >     "execute": "change",
> > >     "id": 3,
> > >     "arguments": {
> > >         "device": "vnc",
> > >         "target": "password",
> > >         "arg": ""
> > >     }
> > > }
> > > '
> > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: return
> > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
> > >     "execute": "query-vnc",
> > >     "id": 4
> > > }
> > > '
> > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: return
> > > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: watch
> > > w=0x210e8a8 wpath=/local/domain/0/backend/vif/2/0/state token=3/2:
> > register
> > > slotnum=3
> > > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x210e8a8
> > > wpath=/local/domain/0/backend/vif/2/0/state token=3/2: event
> > > epath=/local/domain/0/backend/vif/2/0/state
> > > libxl: debug: libxl_event.c:647:devstate_watch_callback: backend
> > > /local/domain/0/backend/vif/2/0/state wanted state 2 still waiting state
> > 1
> > > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x210e8a8
> > > wpath=/local/domain/0/backend/vif/2/0/state token=3/2: event
> > > epath=/local/domain/0/backend/vif/2/0/state
> > > libxl: debug: libxl_event.c:643:devstate_watch_callback: backend
> > > /local/domain/0/backend/vif/2/0/state wanted state 2 ok
> > > libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister: watch
> > > w=0x210e8a8 wpath=/local/domain/0/backend/vif/2/0/state token=3/2:
> > > deregister slotnum=3
> > > libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch
> > > w=0x210e8a8: deregister unregistered
> > > libxl: debug: libxl_device.c:959:device_hotplug: calling hotplug script:
> > > /etc/xen/scripts/vif-bridge online
> > > libxl: debug: libxl_device.c:959:device_hotplug: calling hotplug script:
> > > /etc/xen/scripts/vif-bridge add
> > > libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize: connected to
> > > /var/run/xen/qmp-libxl-2
> > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: qmp
> > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
> > >     "execute": "qmp_capabilities",
> > >     "id": 1
> > > }
> > > '
> > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: return
> > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
> > >     "execute": "device_add",
> > >     "id": 2,
> > >     "arguments": {
> > >         "driver": "xen-pci-passthrough",
> > >         "id": "pci-pt-03_00.0",
> > >         "hostaddr": "0000:03:00.0"
> > >     }
> > > }
> > > '
> > > libxl: error: libxl_qmp.c:454:qmp_next: Socket read error: Connection
> > reset
> > > by peer
> > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: Connection error:
> > > Connection refused
> > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: Connection error:
> > > Connection refused
> > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: Connection error:
> > > Connection refused
> > > libxl: debug: libxl_pci.c:81:libxl__create_pci_backend: Creating pci
> > backend
> > > libxl: debug: libxl_event.c:1737:libxl__ao_progress_report: ao 0x210c360:
> > > progress report: ignored
> > > libxl: debug: libxl_event.c:1569:libxl__ao_complete: ao 0x210c360:
> > > complete, rc=0
> > > libxl: debug: libxl_event.c:1541:libxl__ao__destroy: ao 0x210c360:
> > destroy
> > > Daemon running with PID 3214
> > > xc: debug: hypercall buffer: total allocations:793 total releases:793
> > > xc: debug: hypercall buffer: current allocations:0 maximum allocations:4
> > > xc: debug: hypercall buffer: cache current size:4
> > > xc: debug: hypercall buffer: cache hits:785 misses:4 toobig:4
> > >
> > > ###########################################################
> > > root@fiat:/var/log/xen# cat qemu-dm-ubuntu-hvm-0.log
> > > char device redirected to /dev/pts/5 (label serial0)
> > > qemu: hardware error: xen: failed to populate ram at 40030000
> > > CPU #0:
> > > EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
> > > ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
> > > EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=1
> > > ES =0000 00000000 0000ffff 00009300
> > > CS =f000 ffff0000 0000ffff 00009b00
> > > SS =0000 00000000 0000ffff 00009300
> > > DS =0000 00000000 0000ffff 00009300
> > > FS =0000 00000000 0000ffff 00009300
> > > GS =0000 00000000 0000ffff 00009300
> > > LDT=0000 00000000 0000ffff 00008200
> > > TR =0000 00000000 0000ffff 00008b00
> > > GDT=     00000000 0000ffff
> > > IDT=     00000000 0000ffff
> > > CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
> > > DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
> > > DR6=ffff0ff0 DR7=00000400
> > > EFER=0000000000000000
> > > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
> > > FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
> > > FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
> > > FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
> > > FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
> > > XMM00=00000000000000000000000000000000
> > > XMM01=00000000000000000000000000000000
> > > XMM02=00000000000000000000000000000000
> > > XMM03=00000000000000000000000000000000
> > > XMM04=00000000000000000000000000000000
> > > XMM05=00000000000000000000000000000000
> > > XMM06=00000000000000000000000000000000
> > > XMM07=00000000000000000000000000000000
> > > CPU #1:
> > > EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
> > > ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
> > > EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=1
> > > ES =0000 00000000 0000ffff 00009300
> > > CS =f000 ffff0000 0000ffff 00009b00
> > > SS =0000 00000000 0000ffff 00009300
> > > DS =0000 00000000 0000ffff 00009300
> > > FS =0000 00000000 0000ffff 00009300
> > > GS =0000 00000000 0000ffff 00009300
> > > LDT=0000 00000000 0000ffff 00008200
> > > TR =0000 00000000 0000ffff 00008b00
> > > GDT=     00000000 0000ffff
> > > IDT=     00000000 0000ffff
> > > CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
> > > DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
> > > DR6=ffff0ff0 DR7=00000400
> > > EFER=0000000000000000
> > > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
> > > FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
> > > FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
> > > FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
> > > FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
> > > XMM00=00000000000000000000000000000000
> > > XMM01=00000000000000000000000000000000
> > > XMM02=00000000000000000000000000000000
> > > XMM03=00000000000000000000000000000000
> > > XMM04=00000000000000000000000000000000
> > > XMM05=00000000000000000000000000000000
> > > XMM06=00000000000000000000000000000000
> > > XMM07=00000000000000000000000000000000
> > >
> > > ###########################################################
> > > /etc/default/grub
> > > GRUB_DEFAULT="Xen 4.3-amd64"
> > > GRUB_HIDDEN_TIMEOUT=0
> > > GRUB_HIDDEN_TIMEOUT_QUIET=true
> > > GRUB_TIMEOUT=10
> > > GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
> > > GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
> > > GRUB_CMDLINE_LINUX=""
> > > # biosdevname=0
> > > GRUB_CMDLINE_XEN="dom0_mem=1024M dom0_max_vcpus=1"
> >
> > > _______________________________________________
> > > Xen-devel mailing list
> > > Xen-devel@lists.xen.org
> > > http://lists.xen.org/xen-devel
> >
> >

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Xen 4.3 PCI passthrough possible bug
  2014-02-07 18:30     ` Konrad Rzeszutek Wilk
@ 2014-02-07 18:40       ` Mike Neiderhauser
  2014-02-07 20:36         ` Mike Neiderhauser
  0 siblings, 1 reply; 22+ messages in thread
From: Mike Neiderhauser @ 2014-02-07 18:40 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 21058 bytes --]

Much. Do I need to install from src or is there a package I can install.

Regards


On Fri, Feb 7, 2014 at 1:30 PM, Konrad Rzeszutek Wilk <
konrad.wilk@oracle.com> wrote:

> On Fri, Feb 07, 2014 at 10:53:22AM -0500, Mike Neiderhauser wrote:
> > I did not.  I do not have the toolchain installed.  I may have time later
> > today to try the patch.  Are there any specific instructions on how to
> > patch the src, compile and install?
>
> There actually should be a new version of Xen 4.4-rcX which will have the
> fix. That might be easier for you?
> >
> > Regards
> >
> >
> > On Fri, Feb 7, 2014 at 10:25 AM, Konrad Rzeszutek Wilk <
> > konrad.wilk@oracle.com> wrote:
> >
> > > On Thu, Feb 06, 2014 at 09:39:37AM -0500, Mike Neiderhauser wrote:
> > > > Hi all,
> > > >
> > > > I am attempting to do a pci passthrough of an Intel ET card (4x1G
> NIC)
> > > to a
> > > > HVM.  I have been attempting to resolve this issue on the xen-users
> list,
> > > > but it was advised to post this issue to this list. (Initial Message
> -
> > > >
> > >
> http://lists.xenproject.org/archives/html/xen-users/2014-02/msg00036.html)
> > > >
> > > > The machine I am using as host is a Dell Poweredge server with a Xeon
> > > > E31220 with 4GB of ram.
> > > >
> > > > The possible bug is the following:
> > > > root@fiat:/var/log/xen# cat qemu-dm-ubuntu-hvm-0.log
> > > > char device redirected to /dev/pts/5 (label serial0)
> > > > qemu: hardware error: xen: failed to populate ram at 40030000
> > > > ....
> > > >
> > > > I believe it may be similar to this thread
> > > >
> > >
> http://markmail.org/message/3zuiojywempoorxj#query:+page:1+mid:gul34vbe4uyog2d4+state:results
> > > >
> > > >
> > > > Additional info that may be helpful is below.
> > >
> > > Did you try the patch?
> > > >
> > > > Please let me know if you need any additional information.
> > > >
> > > > Thanks in advance for any help provided!
> > > > Regards
> > > >
> > > > ###########################################################
> > > > root@fiat:~# cat /etc/xen/ubuntu-hvm-0.cfg
> > > > ###########################################################
> > > > # Configuration file for Xen HVM
> > > >
> > > > # HVM Name (as appears in 'xl list')
> > > > name="ubuntu-hvm-0"
> > > > # HVM Build settings (+ hardware)
> > > > #kernel = "/usr/lib/xen-4.3/boot/hvmloader"
> > > > builder='hvm'
> > > > device_model='qemu-dm'
> > > > memory=1024
> > > > vcpus=2
> > > >
> > > > # Virtual Interface
> > > > # Network bridge to USB NIC
> > > > vif=['bridge=xenbr0']
> > > >
> > > > ################### PCI PASSTHROUGH ###################
> > > > # PCI Permissive mode toggle
> > > > #pci_permissive=1
> > > >
> > > > # All PCI Devices
> > > > #pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1', '05:00.0',
> '05:00.1']
> > > >
> > > > # First two ports on Intel 4x1G NIC
> > > > #pci=['03:00.0','03:00.1']
> > > >
> > > > # Last two ports on Intel 4x1G NIC
> > > > #pci=['04:00.0', '04:00.1']
> > > >
> > > > # All ports on Intel 4x1G NIC
> > > > pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1']
> > > >
> > > > # Brodcom 2x1G NIC
> > > > #pci=['05:00.0', '05:00.1']
> > > > ################### PCI PASSTHROUGH ###################
> > > >
> > > > # HVM Disks
> > > > # Hard disk only
> > > > # Boot from HDD first ('c')
> > > > boot="c"
> > > > disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w']
> > > >
> > > > # Hard disk with ISO
> > > > # Boot from ISO first ('d')
> > > > #boot="d"
> > > > #disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w',
> > > > 'file:/root/ubuntu-12.04.3-server-amd64.iso,hdc:cdrom,r']
> > > >
> > > > # ACPI Enable
> > > > acpi=1
> > > > # HVM Event Modes
> > > > on_poweroff='destroy'
> > > > on_reboot='restart'
> > > > on_crash='restart'
> > > >
> > > > # Serial Console Configuration (Xen Console)
> > > > sdl=0
> > > > serial='pty'
> > > >
> > > > # VNC Configuration
> > > > # Only reacable from localhost
> > > > vnc=1
> > > > vnclisten="0.0.0.0"
> > > > vncpasswd=""
> > > >
> > > > ###########################################################
> > > > Copied for xen-users list
> > > > ###########################################################
> > > >
> > > > It appears that it cannot obtain the RAM mapping for this PCI device.
> > > >
> > > >
> > > > I rebooted the Host.  I ran assigned pci devices to pciback. The
> output
> > > > looks like:
> > > > root@fiat:~# ./dev_mgmt.sh
> > > > Loading Kernel Module 'xen-pciback'
> > > > Calling function pciback_dev for:
> > > > PCI DEVICE 0000:03:00.0
> > > > Unbinding 0000:03:00.0 from igb
> > > > Binding 0000:03:00.0 to pciback
> > > >
> > > > PCI DEVICE 0000:03:00.1
> > > > Unbinding 0000:03:00.1 from igb
> > > > Binding 0000:03:00.1 to pciback
> > > >
> > > > PCI DEVICE 0000:04:00.0
> > > > Unbinding 0000:04:00.0 from igb
> > > > Binding 0000:04:00.0 to pciback
> > > >
> > > > PCI DEVICE 0000:04:00.1
> > > > Unbinding 0000:04:00.1 from igb
> > > > Binding 0000:04:00.1 to pciback
> > > >
> > > > PCI DEVICE 0000:05:00.0
> > > > Unbinding 0000:05:00.0 from bnx2
> > > > Binding 0000:05:00.0 to pciback
> > > >
> > > > PCI DEVICE 0000:05:00.1
> > > > Unbinding 0000:05:00.1 from bnx2
> > > > Binding 0000:05:00.1 to pciback
> > > >
> > > > Listing PCI Devices Available to Xen
> > > > 0000:03:00.0
> > > > 0000:03:00.1
> > > > 0000:04:00.0
> > > > 0000:04:00.1
> > > > 0000:05:00.0
> > > > 0000:05:00.1
> > > >
> > > > ###########################################################
> > > > root@fiat:~# xl -vvv create /etc/xen/ubuntu-hvm-0.cfg
> > > > Parsing config from /etc/xen/ubuntu-hvm-0.cfg
> > > > WARNING: ignoring device_model directive.
> > > > WARNING: Use "device_model_override" instead if you really want a
> > > > non-default device_model
> > > > libxl: debug: libxl_create.c:1230:do_domain_create: ao 0x210c360:
> create:
> > > > how=(nil) callback=(nil) poller=0x210c3c0
> > > > libxl: debug: libxl_device.c:257:libxl__device_disk_set_backend: Disk
> > > > vdev=hda spec.backend=unknown
> > > > libxl: debug: libxl_device.c:296:libxl__device_disk_set_backend: Disk
> > > > vdev=hda, using backend phy
> > > > libxl: debug: libxl_create.c:675:initiate_domain_create: running
> > > bootloader
> > > > libxl: debug: libxl_bootloader.c:321:libxl__bootloader_run: not a PV
> > > > domain, skipping bootloader
> > > > libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch
> > > > w=0x210c728: deregister unregistered
> > > > libxl: debug: libxl_numa.c:475:libxl__get_numa_candidate: New best
> NUMA
> > > > placement candidate found: nr_nodes=1, nr_cpus=4, nr_vcpus=3,
> > > > free_memkb=2980
> > > > libxl: detail: libxl_dom.c:195:numa_place_domain: NUMA placement
> > > candidate
> > > > with 1 nodes, 4 cpus and 2980 KB free selected
> > > > xc: detail: elf_parse_binary: phdr: paddr=0x100000 memsz=0xa69a4
> > > > xc: detail: elf_parse_binary: memory: 0x100000 -> 0x1a69a4
> > > > xc: info: VIRTUAL MEMORY ARRANGEMENT:
> > > >   Loader:        0000000000100000->00000000001a69a4
> > > >   Modules:       0000000000000000->0000000000000000
> > > >   TOTAL:         0000000000000000->000000003f800000
> > > >   ENTRY ADDRESS: 0000000000100608
> > > > xc: info: PHYSICAL MEMORY ALLOCATION:
> > > >   4KB PAGES: 0x0000000000000200
> > > >   2MB PAGES: 0x00000000000001fb
> > > >   1GB PAGES: 0x0000000000000000
> > > > xc: detail: elf_load_binary: phdr 0 at 0x7f022c779000 ->
> 0x7f022c81682d
> > > > libxl: debug: libxl_device.c:257:libxl__device_disk_set_backend: Disk
> > > > vdev=hda spec.backend=phy
> > > > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: watch
> > > > w=0x2112f48 wpath=/local/domain/0/backend/vbd/2/768/state token=3/0:
> > > > register slotnum=3
> > > > libxl: debug: libxl_create.c:1243:do_domain_create: ao 0x210c360:
> > > > inprogress: poller=0x210c3c0, flags=i
> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x2112f48
> > > > wpath=/local/domain/0/backend/vbd/2/768/state token=3/0: event
> > > > epath=/local/domain/0/backend/vbd/2/768/state
> > > > libxl: debug: libxl_event.c:647:devstate_watch_callback: backend
> > > > /local/domain/0/backend/vbd/2/768/state wanted state 2 still waiting
> > > state 1
> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x2112f48
> > > > wpath=/local/domain/0/backend/vbd/2/768/state token=3/0: event
> > > > epath=/local/domain/0/backend/vbd/2/768/state
> > > > libxl: debug: libxl_event.c:643:devstate_watch_callback: backend
> > > > /local/domain/0/backend/vbd/2/768/state wanted state 2 ok
> > > > libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister: watch
> > > > w=0x2112f48 wpath=/local/domain/0/backend/vbd/2/768/state token=3/0:
> > > > deregister slotnum=3
> > > > libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch
> > > > w=0x2112f48: deregister unregistered
> > > > libxl: debug: libxl_device.c:959:device_hotplug: calling hotplug
> script:
> > > > /etc/xen/scripts/block add
> > > > libxl: debug: libxl_dm.c:1206:libxl__spawn_local_dm: Spawning
> > > device-model
> > > > /usr/bin/qemu-system-i386 with arguments:
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > /usr/bin/qemu-system-i386
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -xen-domid
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   2
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -chardev
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-2,server,nowait
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -mon
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > chardev=libxl-cmd,mode=control
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -name
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   ubuntu-hvm-0
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -vnc
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   0.0.0.0:0
> ,to=99
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -global
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> isa-fdc.driveA=
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -serial
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   pty
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -vga
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   cirrus
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -global
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> vga.vram_size_mb=8
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -boot
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   order=c
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -smp
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   2,maxcpus=2
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -device
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > rtl8139,id=nic0,netdev=net0,mac=00:16:3e:23:44:2c
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -netdev
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > type=tap,id=net0,ifname=vif2.0-emu,script=no,downscript=no
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -M
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   xenfv
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -m
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   1016
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -drive
> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > >
> > >
> file=/dev/ubuntu-vg/ubuntu-hvm-0,if=ide,index=0,media=disk,format=raw,cache=writeback
> > > > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: watch
> > > > w=0x210c960 wpath=/local/domain/0/device-model/2/state token=3/1:
> > > register
> > > > slotnum=3
> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x210c960
> > > > wpath=/local/domain/0/device-model/2/state token=3/1: event
> > > > epath=/local/domain/0/device-model/2/state
> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x210c960
> > > > wpath=/local/domain/0/device-model/2/state token=3/1: event
> > > > epath=/local/domain/0/device-model/2/state
> > > > libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister: watch
> > > > w=0x210c960 wpath=/local/domain/0/device-model/2/state token=3/1:
> > > > deregister slotnum=3
> > > > libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch
> > > > w=0x210c960: deregister unregistered
> > > > libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize: connected to
> > > > /var/run/xen/qmp-libxl-2
> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: qmp
> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
> > > >     "execute": "qmp_capabilities",
> > > >     "id": 1
> > > > }
> > > > '
> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type:
> return
> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
> > > >     "execute": "query-chardev",
> > > >     "id": 2
> > > > }
> > > > '
> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type:
> return
> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
> > > >     "execute": "change",
> > > >     "id": 3,
> > > >     "arguments": {
> > > >         "device": "vnc",
> > > >         "target": "password",
> > > >         "arg": ""
> > > >     }
> > > > }
> > > > '
> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type:
> return
> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
> > > >     "execute": "query-vnc",
> > > >     "id": 4
> > > > }
> > > > '
> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type:
> return
> > > > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: watch
> > > > w=0x210e8a8 wpath=/local/domain/0/backend/vif/2/0/state token=3/2:
> > > register
> > > > slotnum=3
> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x210e8a8
> > > > wpath=/local/domain/0/backend/vif/2/0/state token=3/2: event
> > > > epath=/local/domain/0/backend/vif/2/0/state
> > > > libxl: debug: libxl_event.c:647:devstate_watch_callback: backend
> > > > /local/domain/0/backend/vif/2/0/state wanted state 2 still waiting
> state
> > > 1
> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x210e8a8
> > > > wpath=/local/domain/0/backend/vif/2/0/state token=3/2: event
> > > > epath=/local/domain/0/backend/vif/2/0/state
> > > > libxl: debug: libxl_event.c:643:devstate_watch_callback: backend
> > > > /local/domain/0/backend/vif/2/0/state wanted state 2 ok
> > > > libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister: watch
> > > > w=0x210e8a8 wpath=/local/domain/0/backend/vif/2/0/state token=3/2:
> > > > deregister slotnum=3
> > > > libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch
> > > > w=0x210e8a8: deregister unregistered
> > > > libxl: debug: libxl_device.c:959:device_hotplug: calling hotplug
> script:
> > > > /etc/xen/scripts/vif-bridge online
> > > > libxl: debug: libxl_device.c:959:device_hotplug: calling hotplug
> script:
> > > > /etc/xen/scripts/vif-bridge add
> > > > libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize: connected to
> > > > /var/run/xen/qmp-libxl-2
> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: qmp
> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
> > > >     "execute": "qmp_capabilities",
> > > >     "id": 1
> > > > }
> > > > '
> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type:
> return
> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
> > > >     "execute": "device_add",
> > > >     "id": 2,
> > > >     "arguments": {
> > > >         "driver": "xen-pci-passthrough",
> > > >         "id": "pci-pt-03_00.0",
> > > >         "hostaddr": "0000:03:00.0"
> > > >     }
> > > > }
> > > > '
> > > > libxl: error: libxl_qmp.c:454:qmp_next: Socket read error: Connection
> > > reset
> > > > by peer
> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: Connection
> error:
> > > > Connection refused
> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: Connection
> error:
> > > > Connection refused
> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: Connection
> error:
> > > > Connection refused
> > > > libxl: debug: libxl_pci.c:81:libxl__create_pci_backend: Creating pci
> > > backend
> > > > libxl: debug: libxl_event.c:1737:libxl__ao_progress_report: ao
> 0x210c360:
> > > > progress report: ignored
> > > > libxl: debug: libxl_event.c:1569:libxl__ao_complete: ao 0x210c360:
> > > > complete, rc=0
> > > > libxl: debug: libxl_event.c:1541:libxl__ao__destroy: ao 0x210c360:
> > > destroy
> > > > Daemon running with PID 3214
> > > > xc: debug: hypercall buffer: total allocations:793 total releases:793
> > > > xc: debug: hypercall buffer: current allocations:0 maximum
> allocations:4
> > > > xc: debug: hypercall buffer: cache current size:4
> > > > xc: debug: hypercall buffer: cache hits:785 misses:4 toobig:4
> > > >
> > > > ###########################################################
> > > > root@fiat:/var/log/xen# cat qemu-dm-ubuntu-hvm-0.log
> > > > char device redirected to /dev/pts/5 (label serial0)
> > > > qemu: hardware error: xen: failed to populate ram at 40030000
> > > > CPU #0:
> > > > EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
> > > > ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
> > > > EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=1
> > > > ES =0000 00000000 0000ffff 00009300
> > > > CS =f000 ffff0000 0000ffff 00009b00
> > > > SS =0000 00000000 0000ffff 00009300
> > > > DS =0000 00000000 0000ffff 00009300
> > > > FS =0000 00000000 0000ffff 00009300
> > > > GS =0000 00000000 0000ffff 00009300
> > > > LDT=0000 00000000 0000ffff 00008200
> > > > TR =0000 00000000 0000ffff 00008b00
> > > > GDT=     00000000 0000ffff
> > > > IDT=     00000000 0000ffff
> > > > CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
> > > > DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
> > > > DR6=ffff0ff0 DR7=00000400
> > > > EFER=0000000000000000
> > > > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
> > > > FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
> > > > FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
> > > > FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
> > > > FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
> > > > XMM00=00000000000000000000000000000000
> > > > XMM01=00000000000000000000000000000000
> > > > XMM02=00000000000000000000000000000000
> > > > XMM03=00000000000000000000000000000000
> > > > XMM04=00000000000000000000000000000000
> > > > XMM05=00000000000000000000000000000000
> > > > XMM06=00000000000000000000000000000000
> > > > XMM07=00000000000000000000000000000000
> > > > CPU #1:
> > > > EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
> > > > ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
> > > > EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=1
> > > > ES =0000 00000000 0000ffff 00009300
> > > > CS =f000 ffff0000 0000ffff 00009b00
> > > > SS =0000 00000000 0000ffff 00009300
> > > > DS =0000 00000000 0000ffff 00009300
> > > > FS =0000 00000000 0000ffff 00009300
> > > > GS =0000 00000000 0000ffff 00009300
> > > > LDT=0000 00000000 0000ffff 00008200
> > > > TR =0000 00000000 0000ffff 00008b00
> > > > GDT=     00000000 0000ffff
> > > > IDT=     00000000 0000ffff
> > > > CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
> > > > DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
> > > > DR6=ffff0ff0 DR7=00000400
> > > > EFER=0000000000000000
> > > > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
> > > > FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
> > > > FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
> > > > FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
> > > > FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
> > > > XMM00=00000000000000000000000000000000
> > > > XMM01=00000000000000000000000000000000
> > > > XMM02=00000000000000000000000000000000
> > > > XMM03=00000000000000000000000000000000
> > > > XMM04=00000000000000000000000000000000
> > > > XMM05=00000000000000000000000000000000
> > > > XMM06=00000000000000000000000000000000
> > > > XMM07=00000000000000000000000000000000
> > > >
> > > > ###########################################################
> > > > /etc/default/grub
> > > > GRUB_DEFAULT="Xen 4.3-amd64"
> > > > GRUB_HIDDEN_TIMEOUT=0
> > > > GRUB_HIDDEN_TIMEOUT_QUIET=true
> > > > GRUB_TIMEOUT=10
> > > > GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
> > > > GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
> > > > GRUB_CMDLINE_LINUX=""
> > > > # biosdevname=0
> > > > GRUB_CMDLINE_XEN="dom0_mem=1024M dom0_max_vcpus=1"
> > >
> > > > _______________________________________________
> > > > Xen-devel mailing list
> > > > Xen-devel@lists.xen.org
> > > > http://lists.xen.org/xen-devel
> > >
> > >
>

[-- Attachment #1.2: Type: text/html, Size: 27936 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Xen 4.3 PCI passthrough possible bug
  2014-02-07 18:40       ` Mike Neiderhauser
@ 2014-02-07 20:36         ` Mike Neiderhauser
  2014-02-07 20:39           ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 22+ messages in thread
From: Mike Neiderhauser @ 2014-02-07 20:36 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 22219 bytes --]

I was able to compile and install xen4.4 RC3 on my host, however I am
getting the error:

root@fiat:~/git/xen# xl list
xc: error: Could not obtain handle on privileged command interface (2 = No
such file or directory): Internal error
libxl: error: libxl.c:92:libxl_ctx_alloc: cannot open libxc handle: No such
file or directory
cannot init xl context

I've google searched for this and an article appears, but is not the same
(as far as I can tell).  Running any xl command generates a similar error.

What can I do to fix this?

Regards


On Fri, Feb 7, 2014 at 1:40 PM, Mike Neiderhauser <
mikeneiderhauser@gmail.com> wrote:

> Much. Do I need to install from src or is there a package I can install.
>
> Regards
>
>
> On Fri, Feb 7, 2014 at 1:30 PM, Konrad Rzeszutek Wilk <
> konrad.wilk@oracle.com> wrote:
>
>> On Fri, Feb 07, 2014 at 10:53:22AM -0500, Mike Neiderhauser wrote:
>> > I did not.  I do not have the toolchain installed.  I may have time
>> later
>> > today to try the patch.  Are there any specific instructions on how to
>> > patch the src, compile and install?
>>
>> There actually should be a new version of Xen 4.4-rcX which will have the
>> fix. That might be easier for you?
>> >
>> > Regards
>> >
>> >
>> > On Fri, Feb 7, 2014 at 10:25 AM, Konrad Rzeszutek Wilk <
>> > konrad.wilk@oracle.com> wrote:
>> >
>> > > On Thu, Feb 06, 2014 at 09:39:37AM -0500, Mike Neiderhauser wrote:
>> > > > Hi all,
>> > > >
>> > > > I am attempting to do a pci passthrough of an Intel ET card (4x1G
>> NIC)
>> > > to a
>> > > > HVM.  I have been attempting to resolve this issue on the xen-users
>> list,
>> > > > but it was advised to post this issue to this list. (Initial
>> Message -
>> > > >
>> > >
>> http://lists.xenproject.org/archives/html/xen-users/2014-02/msg00036.html
>> )
>> > > >
>> > > > The machine I am using as host is a Dell Poweredge server with a
>> Xeon
>> > > > E31220 with 4GB of ram.
>> > > >
>> > > > The possible bug is the following:
>> > > > root@fiat:/var/log/xen# cat qemu-dm-ubuntu-hvm-0.log
>> > > > char device redirected to /dev/pts/5 (label serial0)
>> > > > qemu: hardware error: xen: failed to populate ram at 40030000
>> > > > ....
>> > > >
>> > > > I believe it may be similar to this thread
>> > > >
>> > >
>> http://markmail.org/message/3zuiojywempoorxj#query:+page:1+mid:gul34vbe4uyog2d4+state:results
>> > > >
>> > > >
>> > > > Additional info that may be helpful is below.
>> > >
>> > > Did you try the patch?
>> > > >
>> > > > Please let me know if you need any additional information.
>> > > >
>> > > > Thanks in advance for any help provided!
>> > > > Regards
>> > > >
>> > > > ###########################################################
>> > > > root@fiat:~# cat /etc/xen/ubuntu-hvm-0.cfg
>> > > > ###########################################################
>> > > > # Configuration file for Xen HVM
>> > > >
>> > > > # HVM Name (as appears in 'xl list')
>> > > > name="ubuntu-hvm-0"
>> > > > # HVM Build settings (+ hardware)
>> > > > #kernel = "/usr/lib/xen-4.3/boot/hvmloader"
>> > > > builder='hvm'
>> > > > device_model='qemu-dm'
>> > > > memory=1024
>> > > > vcpus=2
>> > > >
>> > > > # Virtual Interface
>> > > > # Network bridge to USB NIC
>> > > > vif=['bridge=xenbr0']
>> > > >
>> > > > ################### PCI PASSTHROUGH ###################
>> > > > # PCI Permissive mode toggle
>> > > > #pci_permissive=1
>> > > >
>> > > > # All PCI Devices
>> > > > #pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1', '05:00.0',
>> '05:00.1']
>> > > >
>> > > > # First two ports on Intel 4x1G NIC
>> > > > #pci=['03:00.0','03:00.1']
>> > > >
>> > > > # Last two ports on Intel 4x1G NIC
>> > > > #pci=['04:00.0', '04:00.1']
>> > > >
>> > > > # All ports on Intel 4x1G NIC
>> > > > pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1']
>> > > >
>> > > > # Brodcom 2x1G NIC
>> > > > #pci=['05:00.0', '05:00.1']
>> > > > ################### PCI PASSTHROUGH ###################
>> > > >
>> > > > # HVM Disks
>> > > > # Hard disk only
>> > > > # Boot from HDD first ('c')
>> > > > boot="c"
>> > > > disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w']
>> > > >
>> > > > # Hard disk with ISO
>> > > > # Boot from ISO first ('d')
>> > > > #boot="d"
>> > > > #disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w',
>> > > > 'file:/root/ubuntu-12.04.3-server-amd64.iso,hdc:cdrom,r']
>> > > >
>> > > > # ACPI Enable
>> > > > acpi=1
>> > > > # HVM Event Modes
>> > > > on_poweroff='destroy'
>> > > > on_reboot='restart'
>> > > > on_crash='restart'
>> > > >
>> > > > # Serial Console Configuration (Xen Console)
>> > > > sdl=0
>> > > > serial='pty'
>> > > >
>> > > > # VNC Configuration
>> > > > # Only reacable from localhost
>> > > > vnc=1
>> > > > vnclisten="0.0.0.0"
>> > > > vncpasswd=""
>> > > >
>> > > > ###########################################################
>> > > > Copied for xen-users list
>> > > > ###########################################################
>> > > >
>> > > > It appears that it cannot obtain the RAM mapping for this PCI
>> device.
>> > > >
>> > > >
>> > > > I rebooted the Host.  I ran assigned pci devices to pciback. The
>> output
>> > > > looks like:
>> > > > root@fiat:~# ./dev_mgmt.sh
>> > > > Loading Kernel Module 'xen-pciback'
>> > > > Calling function pciback_dev for:
>> > > > PCI DEVICE 0000:03:00.0
>> > > > Unbinding 0000:03:00.0 from igb
>> > > > Binding 0000:03:00.0 to pciback
>> > > >
>> > > > PCI DEVICE 0000:03:00.1
>> > > > Unbinding 0000:03:00.1 from igb
>> > > > Binding 0000:03:00.1 to pciback
>> > > >
>> > > > PCI DEVICE 0000:04:00.0
>> > > > Unbinding 0000:04:00.0 from igb
>> > > > Binding 0000:04:00.0 to pciback
>> > > >
>> > > > PCI DEVICE 0000:04:00.1
>> > > > Unbinding 0000:04:00.1 from igb
>> > > > Binding 0000:04:00.1 to pciback
>> > > >
>> > > > PCI DEVICE 0000:05:00.0
>> > > > Unbinding 0000:05:00.0 from bnx2
>> > > > Binding 0000:05:00.0 to pciback
>> > > >
>> > > > PCI DEVICE 0000:05:00.1
>> > > > Unbinding 0000:05:00.1 from bnx2
>> > > > Binding 0000:05:00.1 to pciback
>> > > >
>> > > > Listing PCI Devices Available to Xen
>> > > > 0000:03:00.0
>> > > > 0000:03:00.1
>> > > > 0000:04:00.0
>> > > > 0000:04:00.1
>> > > > 0000:05:00.0
>> > > > 0000:05:00.1
>> > > >
>> > > > ###########################################################
>> > > > root@fiat:~# xl -vvv create /etc/xen/ubuntu-hvm-0.cfg
>> > > > Parsing config from /etc/xen/ubuntu-hvm-0.cfg
>> > > > WARNING: ignoring device_model directive.
>> > > > WARNING: Use "device_model_override" instead if you really want a
>> > > > non-default device_model
>> > > > libxl: debug: libxl_create.c:1230:do_domain_create: ao 0x210c360:
>> create:
>> > > > how=(nil) callback=(nil) poller=0x210c3c0
>> > > > libxl: debug: libxl_device.c:257:libxl__device_disk_set_backend:
>> Disk
>> > > > vdev=hda spec.backend=unknown
>> > > > libxl: debug: libxl_device.c:296:libxl__device_disk_set_backend:
>> Disk
>> > > > vdev=hda, using backend phy
>> > > > libxl: debug: libxl_create.c:675:initiate_domain_create: running
>> > > bootloader
>> > > > libxl: debug: libxl_bootloader.c:321:libxl__bootloader_run: not a PV
>> > > > domain, skipping bootloader
>> > > > libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch
>> > > > w=0x210c728: deregister unregistered
>> > > > libxl: debug: libxl_numa.c:475:libxl__get_numa_candidate: New best
>> NUMA
>> > > > placement candidate found: nr_nodes=1, nr_cpus=4, nr_vcpus=3,
>> > > > free_memkb=2980
>> > > > libxl: detail: libxl_dom.c:195:numa_place_domain: NUMA placement
>> > > candidate
>> > > > with 1 nodes, 4 cpus and 2980 KB free selected
>> > > > xc: detail: elf_parse_binary: phdr: paddr=0x100000 memsz=0xa69a4
>> > > > xc: detail: elf_parse_binary: memory: 0x100000 -> 0x1a69a4
>> > > > xc: info: VIRTUAL MEMORY ARRANGEMENT:
>> > > >   Loader:        0000000000100000->00000000001a69a4
>> > > >   Modules:       0000000000000000->0000000000000000
>> > > >   TOTAL:         0000000000000000->000000003f800000
>> > > >   ENTRY ADDRESS: 0000000000100608
>> > > > xc: info: PHYSICAL MEMORY ALLOCATION:
>> > > >   4KB PAGES: 0x0000000000000200
>> > > >   2MB PAGES: 0x00000000000001fb
>> > > >   1GB PAGES: 0x0000000000000000
>> > > > xc: detail: elf_load_binary: phdr 0 at 0x7f022c779000 ->
>> 0x7f022c81682d
>> > > > libxl: debug: libxl_device.c:257:libxl__device_disk_set_backend:
>> Disk
>> > > > vdev=hda spec.backend=phy
>> > > > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: watch
>> > > > w=0x2112f48 wpath=/local/domain/0/backend/vbd/2/768/state token=3/0:
>> > > > register slotnum=3
>> > > > libxl: debug: libxl_create.c:1243:do_domain_create: ao 0x210c360:
>> > > > inprogress: poller=0x210c3c0, flags=i
>> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x2112f48
>> > > > wpath=/local/domain/0/backend/vbd/2/768/state token=3/0: event
>> > > > epath=/local/domain/0/backend/vbd/2/768/state
>> > > > libxl: debug: libxl_event.c:647:devstate_watch_callback: backend
>> > > > /local/domain/0/backend/vbd/2/768/state wanted state 2 still waiting
>> > > state 1
>> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x2112f48
>> > > > wpath=/local/domain/0/backend/vbd/2/768/state token=3/0: event
>> > > > epath=/local/domain/0/backend/vbd/2/768/state
>> > > > libxl: debug: libxl_event.c:643:devstate_watch_callback: backend
>> > > > /local/domain/0/backend/vbd/2/768/state wanted state 2 ok
>> > > > libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister: watch
>> > > > w=0x2112f48 wpath=/local/domain/0/backend/vbd/2/768/state token=3/0:
>> > > > deregister slotnum=3
>> > > > libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch
>> > > > w=0x2112f48: deregister unregistered
>> > > > libxl: debug: libxl_device.c:959:device_hotplug: calling hotplug
>> script:
>> > > > /etc/xen/scripts/block add
>> > > > libxl: debug: libxl_dm.c:1206:libxl__spawn_local_dm: Spawning
>> > > device-model
>> > > > /usr/bin/qemu-system-i386 with arguments:
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> > > > /usr/bin/qemu-system-i386
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -xen-domid
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   2
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -chardev
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> > > > socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-2,server,nowait
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -mon
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> > > > chardev=libxl-cmd,mode=control
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -name
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   ubuntu-hvm-0
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -vnc
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   0.0.0.0:0
>> ,to=99
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -global
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> isa-fdc.driveA=
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -serial
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   pty
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -vga
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   cirrus
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -global
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> vga.vram_size_mb=8
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -boot
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   order=c
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -smp
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   2,maxcpus=2
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -device
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> > > > rtl8139,id=nic0,netdev=net0,mac=00:16:3e:23:44:2c
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -netdev
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> > > > type=tap,id=net0,ifname=vif2.0-emu,script=no,downscript=no
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -M
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   xenfv
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -m
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   1016
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -drive
>> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> > > >
>> > >
>> file=/dev/ubuntu-vg/ubuntu-hvm-0,if=ide,index=0,media=disk,format=raw,cache=writeback
>> > > > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: watch
>> > > > w=0x210c960 wpath=/local/domain/0/device-model/2/state token=3/1:
>> > > register
>> > > > slotnum=3
>> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x210c960
>> > > > wpath=/local/domain/0/device-model/2/state token=3/1: event
>> > > > epath=/local/domain/0/device-model/2/state
>> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x210c960
>> > > > wpath=/local/domain/0/device-model/2/state token=3/1: event
>> > > > epath=/local/domain/0/device-model/2/state
>> > > > libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister: watch
>> > > > w=0x210c960 wpath=/local/domain/0/device-model/2/state token=3/1:
>> > > > deregister slotnum=3
>> > > > libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch
>> > > > w=0x210c960: deregister unregistered
>> > > > libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize: connected to
>> > > > /var/run/xen/qmp-libxl-2
>> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: qmp
>> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
>> > > >     "execute": "qmp_capabilities",
>> > > >     "id": 1
>> > > > }
>> > > > '
>> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type:
>> return
>> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
>> > > >     "execute": "query-chardev",
>> > > >     "id": 2
>> > > > }
>> > > > '
>> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type:
>> return
>> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
>> > > >     "execute": "change",
>> > > >     "id": 3,
>> > > >     "arguments": {
>> > > >         "device": "vnc",
>> > > >         "target": "password",
>> > > >         "arg": ""
>> > > >     }
>> > > > }
>> > > > '
>> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type:
>> return
>> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
>> > > >     "execute": "query-vnc",
>> > > >     "id": 4
>> > > > }
>> > > > '
>> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type:
>> return
>> > > > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: watch
>> > > > w=0x210e8a8 wpath=/local/domain/0/backend/vif/2/0/state token=3/2:
>> > > register
>> > > > slotnum=3
>> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x210e8a8
>> > > > wpath=/local/domain/0/backend/vif/2/0/state token=3/2: event
>> > > > epath=/local/domain/0/backend/vif/2/0/state
>> > > > libxl: debug: libxl_event.c:647:devstate_watch_callback: backend
>> > > > /local/domain/0/backend/vif/2/0/state wanted state 2 still waiting
>> state
>> > > 1
>> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x210e8a8
>> > > > wpath=/local/domain/0/backend/vif/2/0/state token=3/2: event
>> > > > epath=/local/domain/0/backend/vif/2/0/state
>> > > > libxl: debug: libxl_event.c:643:devstate_watch_callback: backend
>> > > > /local/domain/0/backend/vif/2/0/state wanted state 2 ok
>> > > > libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister: watch
>> > > > w=0x210e8a8 wpath=/local/domain/0/backend/vif/2/0/state token=3/2:
>> > > > deregister slotnum=3
>> > > > libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch
>> > > > w=0x210e8a8: deregister unregistered
>> > > > libxl: debug: libxl_device.c:959:device_hotplug: calling hotplug
>> script:
>> > > > /etc/xen/scripts/vif-bridge online
>> > > > libxl: debug: libxl_device.c:959:device_hotplug: calling hotplug
>> script:
>> > > > /etc/xen/scripts/vif-bridge add
>> > > > libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize: connected to
>> > > > /var/run/xen/qmp-libxl-2
>> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: qmp
>> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
>> > > >     "execute": "qmp_capabilities",
>> > > >     "id": 1
>> > > > }
>> > > > '
>> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type:
>> return
>> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
>> > > >     "execute": "device_add",
>> > > >     "id": 2,
>> > > >     "arguments": {
>> > > >         "driver": "xen-pci-passthrough",
>> > > >         "id": "pci-pt-03_00.0",
>> > > >         "hostaddr": "0000:03:00.0"
>> > > >     }
>> > > > }
>> > > > '
>> > > > libxl: error: libxl_qmp.c:454:qmp_next: Socket read error:
>> Connection
>> > > reset
>> > > > by peer
>> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: Connection
>> error:
>> > > > Connection refused
>> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: Connection
>> error:
>> > > > Connection refused
>> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: Connection
>> error:
>> > > > Connection refused
>> > > > libxl: debug: libxl_pci.c:81:libxl__create_pci_backend: Creating pci
>> > > backend
>> > > > libxl: debug: libxl_event.c:1737:libxl__ao_progress_report: ao
>> 0x210c360:
>> > > > progress report: ignored
>> > > > libxl: debug: libxl_event.c:1569:libxl__ao_complete: ao 0x210c360:
>> > > > complete, rc=0
>> > > > libxl: debug: libxl_event.c:1541:libxl__ao__destroy: ao 0x210c360:
>> > > destroy
>> > > > Daemon running with PID 3214
>> > > > xc: debug: hypercall buffer: total allocations:793 total
>> releases:793
>> > > > xc: debug: hypercall buffer: current allocations:0 maximum
>> allocations:4
>> > > > xc: debug: hypercall buffer: cache current size:4
>> > > > xc: debug: hypercall buffer: cache hits:785 misses:4 toobig:4
>> > > >
>> > > > ###########################################################
>> > > > root@fiat:/var/log/xen# cat qemu-dm-ubuntu-hvm-0.log
>> > > > char device redirected to /dev/pts/5 (label serial0)
>> > > > qemu: hardware error: xen: failed to populate ram at 40030000
>> > > > CPU #0:
>> > > > EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
>> > > > ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
>> > > > EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=1
>> > > > ES =0000 00000000 0000ffff 00009300
>> > > > CS =f000 ffff0000 0000ffff 00009b00
>> > > > SS =0000 00000000 0000ffff 00009300
>> > > > DS =0000 00000000 0000ffff 00009300
>> > > > FS =0000 00000000 0000ffff 00009300
>> > > > GS =0000 00000000 0000ffff 00009300
>> > > > LDT=0000 00000000 0000ffff 00008200
>> > > > TR =0000 00000000 0000ffff 00008b00
>> > > > GDT=     00000000 0000ffff
>> > > > IDT=     00000000 0000ffff
>> > > > CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
>> > > > DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
>> > > > DR6=ffff0ff0 DR7=00000400
>> > > > EFER=0000000000000000
>> > > > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
>> > > > FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
>> > > > FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
>> > > > FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
>> > > > FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
>> > > > XMM00=00000000000000000000000000000000
>> > > > XMM01=00000000000000000000000000000000
>> > > > XMM02=00000000000000000000000000000000
>> > > > XMM03=00000000000000000000000000000000
>> > > > XMM04=00000000000000000000000000000000
>> > > > XMM05=00000000000000000000000000000000
>> > > > XMM06=00000000000000000000000000000000
>> > > > XMM07=00000000000000000000000000000000
>> > > > CPU #1:
>> > > > EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
>> > > > ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
>> > > > EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=1
>> > > > ES =0000 00000000 0000ffff 00009300
>> > > > CS =f000 ffff0000 0000ffff 00009b00
>> > > > SS =0000 00000000 0000ffff 00009300
>> > > > DS =0000 00000000 0000ffff 00009300
>> > > > FS =0000 00000000 0000ffff 00009300
>> > > > GS =0000 00000000 0000ffff 00009300
>> > > > LDT=0000 00000000 0000ffff 00008200
>> > > > TR =0000 00000000 0000ffff 00008b00
>> > > > GDT=     00000000 0000ffff
>> > > > IDT=     00000000 0000ffff
>> > > > CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
>> > > > DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
>> > > > DR6=ffff0ff0 DR7=00000400
>> > > > EFER=0000000000000000
>> > > > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
>> > > > FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
>> > > > FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
>> > > > FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
>> > > > FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
>> > > > XMM00=00000000000000000000000000000000
>> > > > XMM01=00000000000000000000000000000000
>> > > > XMM02=00000000000000000000000000000000
>> > > > XMM03=00000000000000000000000000000000
>> > > > XMM04=00000000000000000000000000000000
>> > > > XMM05=00000000000000000000000000000000
>> > > > XMM06=00000000000000000000000000000000
>> > > > XMM07=00000000000000000000000000000000
>> > > >
>> > > > ###########################################################
>> > > > /etc/default/grub
>> > > > GRUB_DEFAULT="Xen 4.3-amd64"
>> > > > GRUB_HIDDEN_TIMEOUT=0
>> > > > GRUB_HIDDEN_TIMEOUT_QUIET=true
>> > > > GRUB_TIMEOUT=10
>> > > > GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
>> > > > GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
>> > > > GRUB_CMDLINE_LINUX=""
>> > > > # biosdevname=0
>> > > > GRUB_CMDLINE_XEN="dom0_mem=1024M dom0_max_vcpus=1"
>> > >
>> > > > _______________________________________________
>> > > > Xen-devel mailing list
>> > > > Xen-devel@lists.xen.org
>> > > > http://lists.xen.org/xen-devel
>> > >
>> > >
>>
>
>

[-- Attachment #1.2: Type: text/html, Size: 29071 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Xen 4.3 PCI passthrough possible bug
  2014-02-07 20:36         ` Mike Neiderhauser
@ 2014-02-07 20:39           ` Konrad Rzeszutek Wilk
  2014-02-07 20:45             ` Mike Neiderhauser
  0 siblings, 1 reply; 22+ messages in thread
From: Konrad Rzeszutek Wilk @ 2014-02-07 20:39 UTC (permalink / raw)
  To: Mike Neiderhauser; +Cc: xen-devel

On Fri, Feb 07, 2014 at 03:36:49PM -0500, Mike Neiderhauser wrote:
> I was able to compile and install xen4.4 RC3 on my host, however I am
> getting the error:
> 
> root@fiat:~/git/xen# xl list
> xc: error: Could not obtain handle on privileged command interface (2 = No
> such file or directory): Internal error
> libxl: error: libxl.c:92:libxl_ctx_alloc: cannot open libxc handle: No such
> file or directory
> cannot init xl context
> 
> I've google searched for this and an article appears, but is not the same
> (as far as I can tell).  Running any xl command generates a similar error.
> 
> What can I do to fix this?


You need to run the initscripts for Xen. I don't know what your distro is, but
they are usually put in /etc/init.d/rc.d/xen*


> 
> Regards
> 
> 
> On Fri, Feb 7, 2014 at 1:40 PM, Mike Neiderhauser <
> mikeneiderhauser@gmail.com> wrote:
> 
> > Much. Do I need to install from src or is there a package I can install.
> >
> > Regards
> >
> >
> > On Fri, Feb 7, 2014 at 1:30 PM, Konrad Rzeszutek Wilk <
> > konrad.wilk@oracle.com> wrote:
> >
> >> On Fri, Feb 07, 2014 at 10:53:22AM -0500, Mike Neiderhauser wrote:
> >> > I did not.  I do not have the toolchain installed.  I may have time
> >> later
> >> > today to try the patch.  Are there any specific instructions on how to
> >> > patch the src, compile and install?
> >>
> >> There actually should be a new version of Xen 4.4-rcX which will have the
> >> fix. That might be easier for you?
> >> >
> >> > Regards
> >> >
> >> >
> >> > On Fri, Feb 7, 2014 at 10:25 AM, Konrad Rzeszutek Wilk <
> >> > konrad.wilk@oracle.com> wrote:
> >> >
> >> > > On Thu, Feb 06, 2014 at 09:39:37AM -0500, Mike Neiderhauser wrote:
> >> > > > Hi all,
> >> > > >
> >> > > > I am attempting to do a pci passthrough of an Intel ET card (4x1G
> >> NIC)
> >> > > to a
> >> > > > HVM.  I have been attempting to resolve this issue on the xen-users
> >> list,
> >> > > > but it was advised to post this issue to this list. (Initial
> >> Message -
> >> > > >
> >> > >
> >> http://lists.xenproject.org/archives/html/xen-users/2014-02/msg00036.html
> >> )
> >> > > >
> >> > > > The machine I am using as host is a Dell Poweredge server with a
> >> Xeon
> >> > > > E31220 with 4GB of ram.
> >> > > >
> >> > > > The possible bug is the following:
> >> > > > root@fiat:/var/log/xen# cat qemu-dm-ubuntu-hvm-0.log
> >> > > > char device redirected to /dev/pts/5 (label serial0)
> >> > > > qemu: hardware error: xen: failed to populate ram at 40030000
> >> > > > ....
> >> > > >
> >> > > > I believe it may be similar to this thread
> >> > > >
> >> > >
> >> http://markmail.org/message/3zuiojywempoorxj#query:+page:1+mid:gul34vbe4uyog2d4+state:results
> >> > > >
> >> > > >
> >> > > > Additional info that may be helpful is below.
> >> > >
> >> > > Did you try the patch?
> >> > > >
> >> > > > Please let me know if you need any additional information.
> >> > > >
> >> > > > Thanks in advance for any help provided!
> >> > > > Regards
> >> > > >
> >> > > > ###########################################################
> >> > > > root@fiat:~# cat /etc/xen/ubuntu-hvm-0.cfg
> >> > > > ###########################################################
> >> > > > # Configuration file for Xen HVM
> >> > > >
> >> > > > # HVM Name (as appears in 'xl list')
> >> > > > name="ubuntu-hvm-0"
> >> > > > # HVM Build settings (+ hardware)
> >> > > > #kernel = "/usr/lib/xen-4.3/boot/hvmloader"
> >> > > > builder='hvm'
> >> > > > device_model='qemu-dm'
> >> > > > memory=1024
> >> > > > vcpus=2
> >> > > >
> >> > > > # Virtual Interface
> >> > > > # Network bridge to USB NIC
> >> > > > vif=['bridge=xenbr0']
> >> > > >
> >> > > > ################### PCI PASSTHROUGH ###################
> >> > > > # PCI Permissive mode toggle
> >> > > > #pci_permissive=1
> >> > > >
> >> > > > # All PCI Devices
> >> > > > #pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1', '05:00.0',
> >> '05:00.1']
> >> > > >
> >> > > > # First two ports on Intel 4x1G NIC
> >> > > > #pci=['03:00.0','03:00.1']
> >> > > >
> >> > > > # Last two ports on Intel 4x1G NIC
> >> > > > #pci=['04:00.0', '04:00.1']
> >> > > >
> >> > > > # All ports on Intel 4x1G NIC
> >> > > > pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1']
> >> > > >
> >> > > > # Brodcom 2x1G NIC
> >> > > > #pci=['05:00.0', '05:00.1']
> >> > > > ################### PCI PASSTHROUGH ###################
> >> > > >
> >> > > > # HVM Disks
> >> > > > # Hard disk only
> >> > > > # Boot from HDD first ('c')
> >> > > > boot="c"
> >> > > > disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w']
> >> > > >
> >> > > > # Hard disk with ISO
> >> > > > # Boot from ISO first ('d')
> >> > > > #boot="d"
> >> > > > #disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w',
> >> > > > 'file:/root/ubuntu-12.04.3-server-amd64.iso,hdc:cdrom,r']
> >> > > >
> >> > > > # ACPI Enable
> >> > > > acpi=1
> >> > > > # HVM Event Modes
> >> > > > on_poweroff='destroy'
> >> > > > on_reboot='restart'
> >> > > > on_crash='restart'
> >> > > >
> >> > > > # Serial Console Configuration (Xen Console)
> >> > > > sdl=0
> >> > > > serial='pty'
> >> > > >
> >> > > > # VNC Configuration
> >> > > > # Only reacable from localhost
> >> > > > vnc=1
> >> > > > vnclisten="0.0.0.0"
> >> > > > vncpasswd=""
> >> > > >
> >> > > > ###########################################################
> >> > > > Copied for xen-users list
> >> > > > ###########################################################
> >> > > >
> >> > > > It appears that it cannot obtain the RAM mapping for this PCI
> >> device.
> >> > > >
> >> > > >
> >> > > > I rebooted the Host.  I ran assigned pci devices to pciback. The
> >> output
> >> > > > looks like:
> >> > > > root@fiat:~# ./dev_mgmt.sh
> >> > > > Loading Kernel Module 'xen-pciback'
> >> > > > Calling function pciback_dev for:
> >> > > > PCI DEVICE 0000:03:00.0
> >> > > > Unbinding 0000:03:00.0 from igb
> >> > > > Binding 0000:03:00.0 to pciback
> >> > > >
> >> > > > PCI DEVICE 0000:03:00.1
> >> > > > Unbinding 0000:03:00.1 from igb
> >> > > > Binding 0000:03:00.1 to pciback
> >> > > >
> >> > > > PCI DEVICE 0000:04:00.0
> >> > > > Unbinding 0000:04:00.0 from igb
> >> > > > Binding 0000:04:00.0 to pciback
> >> > > >
> >> > > > PCI DEVICE 0000:04:00.1
> >> > > > Unbinding 0000:04:00.1 from igb
> >> > > > Binding 0000:04:00.1 to pciback
> >> > > >
> >> > > > PCI DEVICE 0000:05:00.0
> >> > > > Unbinding 0000:05:00.0 from bnx2
> >> > > > Binding 0000:05:00.0 to pciback
> >> > > >
> >> > > > PCI DEVICE 0000:05:00.1
> >> > > > Unbinding 0000:05:00.1 from bnx2
> >> > > > Binding 0000:05:00.1 to pciback
> >> > > >
> >> > > > Listing PCI Devices Available to Xen
> >> > > > 0000:03:00.0
> >> > > > 0000:03:00.1
> >> > > > 0000:04:00.0
> >> > > > 0000:04:00.1
> >> > > > 0000:05:00.0
> >> > > > 0000:05:00.1
> >> > > >
> >> > > > ###########################################################
> >> > > > root@fiat:~# xl -vvv create /etc/xen/ubuntu-hvm-0.cfg
> >> > > > Parsing config from /etc/xen/ubuntu-hvm-0.cfg
> >> > > > WARNING: ignoring device_model directive.
> >> > > > WARNING: Use "device_model_override" instead if you really want a
> >> > > > non-default device_model
> >> > > > libxl: debug: libxl_create.c:1230:do_domain_create: ao 0x210c360:
> >> create:
> >> > > > how=(nil) callback=(nil) poller=0x210c3c0
> >> > > > libxl: debug: libxl_device.c:257:libxl__device_disk_set_backend:
> >> Disk
> >> > > > vdev=hda spec.backend=unknown
> >> > > > libxl: debug: libxl_device.c:296:libxl__device_disk_set_backend:
> >> Disk
> >> > > > vdev=hda, using backend phy
> >> > > > libxl: debug: libxl_create.c:675:initiate_domain_create: running
> >> > > bootloader
> >> > > > libxl: debug: libxl_bootloader.c:321:libxl__bootloader_run: not a PV
> >> > > > domain, skipping bootloader
> >> > > > libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch
> >> > > > w=0x210c728: deregister unregistered
> >> > > > libxl: debug: libxl_numa.c:475:libxl__get_numa_candidate: New best
> >> NUMA
> >> > > > placement candidate found: nr_nodes=1, nr_cpus=4, nr_vcpus=3,
> >> > > > free_memkb=2980
> >> > > > libxl: detail: libxl_dom.c:195:numa_place_domain: NUMA placement
> >> > > candidate
> >> > > > with 1 nodes, 4 cpus and 2980 KB free selected
> >> > > > xc: detail: elf_parse_binary: phdr: paddr=0x100000 memsz=0xa69a4
> >> > > > xc: detail: elf_parse_binary: memory: 0x100000 -> 0x1a69a4
> >> > > > xc: info: VIRTUAL MEMORY ARRANGEMENT:
> >> > > >   Loader:        0000000000100000->00000000001a69a4
> >> > > >   Modules:       0000000000000000->0000000000000000
> >> > > >   TOTAL:         0000000000000000->000000003f800000
> >> > > >   ENTRY ADDRESS: 0000000000100608
> >> > > > xc: info: PHYSICAL MEMORY ALLOCATION:
> >> > > >   4KB PAGES: 0x0000000000000200
> >> > > >   2MB PAGES: 0x00000000000001fb
> >> > > >   1GB PAGES: 0x0000000000000000
> >> > > > xc: detail: elf_load_binary: phdr 0 at 0x7f022c779000 ->
> >> 0x7f022c81682d
> >> > > > libxl: debug: libxl_device.c:257:libxl__device_disk_set_backend:
> >> Disk
> >> > > > vdev=hda spec.backend=phy
> >> > > > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: watch
> >> > > > w=0x2112f48 wpath=/local/domain/0/backend/vbd/2/768/state token=3/0:
> >> > > > register slotnum=3
> >> > > > libxl: debug: libxl_create.c:1243:do_domain_create: ao 0x210c360:
> >> > > > inprogress: poller=0x210c3c0, flags=i
> >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x2112f48
> >> > > > wpath=/local/domain/0/backend/vbd/2/768/state token=3/0: event
> >> > > > epath=/local/domain/0/backend/vbd/2/768/state
> >> > > > libxl: debug: libxl_event.c:647:devstate_watch_callback: backend
> >> > > > /local/domain/0/backend/vbd/2/768/state wanted state 2 still waiting
> >> > > state 1
> >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x2112f48
> >> > > > wpath=/local/domain/0/backend/vbd/2/768/state token=3/0: event
> >> > > > epath=/local/domain/0/backend/vbd/2/768/state
> >> > > > libxl: debug: libxl_event.c:643:devstate_watch_callback: backend
> >> > > > /local/domain/0/backend/vbd/2/768/state wanted state 2 ok
> >> > > > libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister: watch
> >> > > > w=0x2112f48 wpath=/local/domain/0/backend/vbd/2/768/state token=3/0:
> >> > > > deregister slotnum=3
> >> > > > libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch
> >> > > > w=0x2112f48: deregister unregistered
> >> > > > libxl: debug: libxl_device.c:959:device_hotplug: calling hotplug
> >> script:
> >> > > > /etc/xen/scripts/block add
> >> > > > libxl: debug: libxl_dm.c:1206:libxl__spawn_local_dm: Spawning
> >> > > device-model
> >> > > > /usr/bin/qemu-system-i386 with arguments:
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> >> > > > /usr/bin/qemu-system-i386
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -xen-domid
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   2
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -chardev
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> >> > > > socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-2,server,nowait
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -mon
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> >> > > > chardev=libxl-cmd,mode=control
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -name
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   ubuntu-hvm-0
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -vnc
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   0.0.0.0:0
> >> ,to=99
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -global
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> >> isa-fdc.driveA=
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -serial
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   pty
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -vga
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   cirrus
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -global
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> >> vga.vram_size_mb=8
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -boot
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   order=c
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -smp
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   2,maxcpus=2
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -device
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> >> > > > rtl8139,id=nic0,netdev=net0,mac=00:16:3e:23:44:2c
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -netdev
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> >> > > > type=tap,id=net0,ifname=vif2.0-emu,script=no,downscript=no
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -M
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   xenfv
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -m
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   1016
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -drive
> >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> >> > > >
> >> > >
> >> file=/dev/ubuntu-vg/ubuntu-hvm-0,if=ide,index=0,media=disk,format=raw,cache=writeback
> >> > > > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: watch
> >> > > > w=0x210c960 wpath=/local/domain/0/device-model/2/state token=3/1:
> >> > > register
> >> > > > slotnum=3
> >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x210c960
> >> > > > wpath=/local/domain/0/device-model/2/state token=3/1: event
> >> > > > epath=/local/domain/0/device-model/2/state
> >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x210c960
> >> > > > wpath=/local/domain/0/device-model/2/state token=3/1: event
> >> > > > epath=/local/domain/0/device-model/2/state
> >> > > > libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister: watch
> >> > > > w=0x210c960 wpath=/local/domain/0/device-model/2/state token=3/1:
> >> > > > deregister slotnum=3
> >> > > > libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch
> >> > > > w=0x210c960: deregister unregistered
> >> > > > libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize: connected to
> >> > > > /var/run/xen/qmp-libxl-2
> >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: qmp
> >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
> >> > > >     "execute": "qmp_capabilities",
> >> > > >     "id": 1
> >> > > > }
> >> > > > '
> >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type:
> >> return
> >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
> >> > > >     "execute": "query-chardev",
> >> > > >     "id": 2
> >> > > > }
> >> > > > '
> >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type:
> >> return
> >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
> >> > > >     "execute": "change",
> >> > > >     "id": 3,
> >> > > >     "arguments": {
> >> > > >         "device": "vnc",
> >> > > >         "target": "password",
> >> > > >         "arg": ""
> >> > > >     }
> >> > > > }
> >> > > > '
> >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type:
> >> return
> >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
> >> > > >     "execute": "query-vnc",
> >> > > >     "id": 4
> >> > > > }
> >> > > > '
> >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type:
> >> return
> >> > > > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: watch
> >> > > > w=0x210e8a8 wpath=/local/domain/0/backend/vif/2/0/state token=3/2:
> >> > > register
> >> > > > slotnum=3
> >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x210e8a8
> >> > > > wpath=/local/domain/0/backend/vif/2/0/state token=3/2: event
> >> > > > epath=/local/domain/0/backend/vif/2/0/state
> >> > > > libxl: debug: libxl_event.c:647:devstate_watch_callback: backend
> >> > > > /local/domain/0/backend/vif/2/0/state wanted state 2 still waiting
> >> state
> >> > > 1
> >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x210e8a8
> >> > > > wpath=/local/domain/0/backend/vif/2/0/state token=3/2: event
> >> > > > epath=/local/domain/0/backend/vif/2/0/state
> >> > > > libxl: debug: libxl_event.c:643:devstate_watch_callback: backend
> >> > > > /local/domain/0/backend/vif/2/0/state wanted state 2 ok
> >> > > > libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister: watch
> >> > > > w=0x210e8a8 wpath=/local/domain/0/backend/vif/2/0/state token=3/2:
> >> > > > deregister slotnum=3
> >> > > > libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch
> >> > > > w=0x210e8a8: deregister unregistered
> >> > > > libxl: debug: libxl_device.c:959:device_hotplug: calling hotplug
> >> script:
> >> > > > /etc/xen/scripts/vif-bridge online
> >> > > > libxl: debug: libxl_device.c:959:device_hotplug: calling hotplug
> >> script:
> >> > > > /etc/xen/scripts/vif-bridge add
> >> > > > libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize: connected to
> >> > > > /var/run/xen/qmp-libxl-2
> >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type: qmp
> >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
> >> > > >     "execute": "qmp_capabilities",
> >> > > >     "id": 1
> >> > > > }
> >> > > > '
> >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type:
> >> return
> >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
> >> > > >     "execute": "device_add",
> >> > > >     "id": 2,
> >> > > >     "arguments": {
> >> > > >         "driver": "xen-pci-passthrough",
> >> > > >         "id": "pci-pt-03_00.0",
> >> > > >         "hostaddr": "0000:03:00.0"
> >> > > >     }
> >> > > > }
> >> > > > '
> >> > > > libxl: error: libxl_qmp.c:454:qmp_next: Socket read error:
> >> Connection
> >> > > reset
> >> > > > by peer
> >> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: Connection
> >> error:
> >> > > > Connection refused
> >> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: Connection
> >> error:
> >> > > > Connection refused
> >> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: Connection
> >> error:
> >> > > > Connection refused
> >> > > > libxl: debug: libxl_pci.c:81:libxl__create_pci_backend: Creating pci
> >> > > backend
> >> > > > libxl: debug: libxl_event.c:1737:libxl__ao_progress_report: ao
> >> 0x210c360:
> >> > > > progress report: ignored
> >> > > > libxl: debug: libxl_event.c:1569:libxl__ao_complete: ao 0x210c360:
> >> > > > complete, rc=0
> >> > > > libxl: debug: libxl_event.c:1541:libxl__ao__destroy: ao 0x210c360:
> >> > > destroy
> >> > > > Daemon running with PID 3214
> >> > > > xc: debug: hypercall buffer: total allocations:793 total
> >> releases:793
> >> > > > xc: debug: hypercall buffer: current allocations:0 maximum
> >> allocations:4
> >> > > > xc: debug: hypercall buffer: cache current size:4
> >> > > > xc: debug: hypercall buffer: cache hits:785 misses:4 toobig:4
> >> > > >
> >> > > > ###########################################################
> >> > > > root@fiat:/var/log/xen# cat qemu-dm-ubuntu-hvm-0.log
> >> > > > char device redirected to /dev/pts/5 (label serial0)
> >> > > > qemu: hardware error: xen: failed to populate ram at 40030000
> >> > > > CPU #0:
> >> > > > EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
> >> > > > ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
> >> > > > EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=1
> >> > > > ES =0000 00000000 0000ffff 00009300
> >> > > > CS =f000 ffff0000 0000ffff 00009b00
> >> > > > SS =0000 00000000 0000ffff 00009300
> >> > > > DS =0000 00000000 0000ffff 00009300
> >> > > > FS =0000 00000000 0000ffff 00009300
> >> > > > GS =0000 00000000 0000ffff 00009300
> >> > > > LDT=0000 00000000 0000ffff 00008200
> >> > > > TR =0000 00000000 0000ffff 00008b00
> >> > > > GDT=     00000000 0000ffff
> >> > > > IDT=     00000000 0000ffff
> >> > > > CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
> >> > > > DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
> >> > > > DR6=ffff0ff0 DR7=00000400
> >> > > > EFER=0000000000000000
> >> > > > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
> >> > > > FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
> >> > > > FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
> >> > > > FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
> >> > > > FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
> >> > > > XMM00=00000000000000000000000000000000
> >> > > > XMM01=00000000000000000000000000000000
> >> > > > XMM02=00000000000000000000000000000000
> >> > > > XMM03=00000000000000000000000000000000
> >> > > > XMM04=00000000000000000000000000000000
> >> > > > XMM05=00000000000000000000000000000000
> >> > > > XMM06=00000000000000000000000000000000
> >> > > > XMM07=00000000000000000000000000000000
> >> > > > CPU #1:
> >> > > > EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
> >> > > > ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
> >> > > > EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=1
> >> > > > ES =0000 00000000 0000ffff 00009300
> >> > > > CS =f000 ffff0000 0000ffff 00009b00
> >> > > > SS =0000 00000000 0000ffff 00009300
> >> > > > DS =0000 00000000 0000ffff 00009300
> >> > > > FS =0000 00000000 0000ffff 00009300
> >> > > > GS =0000 00000000 0000ffff 00009300
> >> > > > LDT=0000 00000000 0000ffff 00008200
> >> > > > TR =0000 00000000 0000ffff 00008b00
> >> > > > GDT=     00000000 0000ffff
> >> > > > IDT=     00000000 0000ffff
> >> > > > CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
> >> > > > DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
> >> > > > DR6=ffff0ff0 DR7=00000400
> >> > > > EFER=0000000000000000
> >> > > > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
> >> > > > FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
> >> > > > FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
> >> > > > FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
> >> > > > FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
> >> > > > XMM00=00000000000000000000000000000000
> >> > > > XMM01=00000000000000000000000000000000
> >> > > > XMM02=00000000000000000000000000000000
> >> > > > XMM03=00000000000000000000000000000000
> >> > > > XMM04=00000000000000000000000000000000
> >> > > > XMM05=00000000000000000000000000000000
> >> > > > XMM06=00000000000000000000000000000000
> >> > > > XMM07=00000000000000000000000000000000
> >> > > >
> >> > > > ###########################################################
> >> > > > /etc/default/grub
> >> > > > GRUB_DEFAULT="Xen 4.3-amd64"
> >> > > > GRUB_HIDDEN_TIMEOUT=0
> >> > > > GRUB_HIDDEN_TIMEOUT_QUIET=true
> >> > > > GRUB_TIMEOUT=10
> >> > > > GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
> >> > > > GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
> >> > > > GRUB_CMDLINE_LINUX=""
> >> > > > # biosdevname=0
> >> > > > GRUB_CMDLINE_XEN="dom0_mem=1024M dom0_max_vcpus=1"
> >> > >
> >> > > > _______________________________________________
> >> > > > Xen-devel mailing list
> >> > > > Xen-devel@lists.xen.org
> >> > > > http://lists.xen.org/xen-devel
> >> > >
> >> > >
> >>
> >
> >

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Xen 4.3 PCI passthrough possible bug
  2014-02-07 20:39           ` Konrad Rzeszutek Wilk
@ 2014-02-07 20:45             ` Mike Neiderhauser
  2014-02-07 21:01               ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 22+ messages in thread
From: Mike Neiderhauser @ 2014-02-07 20:45 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 28009 bytes --]

Ok. I started ran the initscripts and now xl works.

However, I still see the same behavior as before:

root@fiat:~# xl create /etc/xen/ubuntu-hvm-0.cfg
Parsing config from /etc/xen/ubuntu-hvm-0.cfg
libxl: error: libxl_qmp.c:448:qmp_next: Socket read error: Connection reset
by peer
libxl: error: libxl_qmp.c:691:libxl__qmp_initialize: Connection error:
Connection refused
libxl: error: libxl_qmp.c:691:libxl__qmp_initialize: Connection error:
Connection refused
libxl: error: libxl_qmp.c:691:libxl__qmp_initialize: Connection error:
Connection refused
root@fiat:~# xl list
Name                                        ID   Mem VCPUs State Time(s)
Domain-0                                     0  1024     1     r-----
 15.2
ubuntu-hvm-0                                 1  1025     1     ------
0.0

(XEN)  Dom0 kernel: 64-bit, PAE, lsb, paddr 0x1000000 -> 0x23f3000
(XEN) PHYSICAL MEMORY ARRANGEMENT:
(XEN)  Dom0 alloc.:   0000000134000000->0000000138000000 (233690 pages to
be allocated)
(XEN)  Init. ramdisk: 000000013d0da000->000000013ffffe00
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN)  Loaded kernel: ffffffff81000000->ffffffff823f3000
(XEN)  Init. ramdisk: ffffffff823f3000->ffffffff85318e00
(XEN)  Phys-Mach map: ffffffff85319000->ffffffff85519000
(XEN)  Start info:    ffffffff85519000->ffffffff855194b4
(XEN)  Page tables:   ffffffff8551a000->ffffffff85549000
(XEN)  Boot stack:    ffffffff85549000->ffffffff8554a000
(XEN)  TOTAL:         ffffffff80000000->ffffffff85800000
(XEN)  ENTRY ADDRESS: ffffffff81d261e0
(XEN) Dom0 has maximum 1 VCPUs
(XEN) elf_load_binary: phdr 0 at 0xffffffff81000000 -> 0xffffffff81b2f000
(XEN) elf_load_binary: phdr 1 at 0xffffffff81c00000 -> 0xffffffff81d0f0f0
(XEN) elf_load_binary: phdr 2 at 0xffffffff81d10000 -> 0xffffffff81d252c0
(XEN) elf_load_binary: phdr 3 at 0xffffffff81d26000 -> 0xffffffff81e6d000
(XEN) Scrubbing Free RAM: .............................done.
(XEN) Initial low memory virq threshold set at 0x4000 pages.
(XEN) Std. Loglevel: All
(XEN) Guest Loglevel: All
(XEN) Xen is relinquishing VGA console.
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input
to Xen)
(XEN) Freed 260kB init memory.
(XEN) PCI add device 0000:00:00.0
(XEN) PCI add device 0000:00:01.0
(XEN) PCI add device 0000:00:1a.0
(XEN) PCI add device 0000:00:1c.0
(XEN) PCI add device 0000:00:1d.0
(XEN) PCI add device 0000:00:1e.0
(XEN) PCI add device 0000:00:1f.0
(XEN) PCI add device 0000:00:1f.2
(XEN) PCI add device 0000:00:1f.3
(XEN) PCI add device 0000:01:00.0
(XEN) PCI add device 0000:02:02.0
(XEN) PCI add device 0000:02:04.0
(XEN) PCI add device 0000:03:00.0
(XEN) PCI add device 0000:03:00.1
(XEN) PCI add device 0000:04:00.0
(XEN) PCI add device 0000:04:00.1
(XEN) PCI add device 0000:05:00.0
(XEN) PCI add device 0000:05:00.1
(XEN) PCI add device 0000:06:03.0
(XEN) page_alloc.c:1460:d0 Over-allocation for domain 1: 262401 > 262400
(XEN) memory.c:158:d0 Could not allocate order=0 extent: id=1 memflags=0
(200 of 1024)
(d1) HVM Loader
(d1) Detected Xen v4.4-rc2
(d1) Xenbus rings @0xfeffc000, event channel 4
(d1) System requested SeaBIOS
(d1) CPU speed is 3093 MHz
(d1) Relocating guest memory for lowmem MMIO space disabled


Excerpt from /var/log/xen/*
qemu: hardware error: xen: failed to populate ram at 40050000


On Fri, Feb 7, 2014 at 3:39 PM, Konrad Rzeszutek Wilk <
konrad.wilk@oracle.com> wrote:

> On Fri, Feb 07, 2014 at 03:36:49PM -0500, Mike Neiderhauser wrote:
> > I was able to compile and install xen4.4 RC3 on my host, however I am
> > getting the error:
> >
> > root@fiat:~/git/xen# xl list
> > xc: error: Could not obtain handle on privileged command interface (2 =
> No
> > such file or directory): Internal error
> > libxl: error: libxl.c:92:libxl_ctx_alloc: cannot open libxc handle: No
> such
> > file or directory
> > cannot init xl context
> >
> > I've google searched for this and an article appears, but is not the same
> > (as far as I can tell).  Running any xl command generates a similar
> error.
> >
> > What can I do to fix this?
>
>
> You need to run the initscripts for Xen. I don't know what your distro is,
> but
> they are usually put in /etc/init.d/rc.d/xen*
>
>
> >
> > Regards
> >
> >
> > On Fri, Feb 7, 2014 at 1:40 PM, Mike Neiderhauser <
> > mikeneiderhauser@gmail.com> wrote:
> >
> > > Much. Do I need to install from src or is there a package I can
> install.
> > >
> > > Regards
> > >
> > >
> > > On Fri, Feb 7, 2014 at 1:30 PM, Konrad Rzeszutek Wilk <
> > > konrad.wilk@oracle.com> wrote:
> > >
> > >> On Fri, Feb 07, 2014 at 10:53:22AM -0500, Mike Neiderhauser wrote:
> > >> > I did not.  I do not have the toolchain installed.  I may have time
> > >> later
> > >> > today to try the patch.  Are there any specific instructions on how
> to
> > >> > patch the src, compile and install?
> > >>
> > >> There actually should be a new version of Xen 4.4-rcX which will have
> the
> > >> fix. That might be easier for you?
> > >> >
> > >> > Regards
> > >> >
> > >> >
> > >> > On Fri, Feb 7, 2014 at 10:25 AM, Konrad Rzeszutek Wilk <
> > >> > konrad.wilk@oracle.com> wrote:
> > >> >
> > >> > > On Thu, Feb 06, 2014 at 09:39:37AM -0500, Mike Neiderhauser wrote:
> > >> > > > Hi all,
> > >> > > >
> > >> > > > I am attempting to do a pci passthrough of an Intel ET card
> (4x1G
> > >> NIC)
> > >> > > to a
> > >> > > > HVM.  I have been attempting to resolve this issue on the
> xen-users
> > >> list,
> > >> > > > but it was advised to post this issue to this list. (Initial
> > >> Message -
> > >> > > >
> > >> > >
> > >>
> http://lists.xenproject.org/archives/html/xen-users/2014-02/msg00036.html
> > >> )
> > >> > > >
> > >> > > > The machine I am using as host is a Dell Poweredge server with a
> > >> Xeon
> > >> > > > E31220 with 4GB of ram.
> > >> > > >
> > >> > > > The possible bug is the following:
> > >> > > > root@fiat:/var/log/xen# cat qemu-dm-ubuntu-hvm-0.log
> > >> > > > char device redirected to /dev/pts/5 (label serial0)
> > >> > > > qemu: hardware error: xen: failed to populate ram at 40030000
> > >> > > > ....
> > >> > > >
> > >> > > > I believe it may be similar to this thread
> > >> > > >
> > >> > >
> > >>
> http://markmail.org/message/3zuiojywempoorxj#query:+page:1+mid:gul34vbe4uyog2d4+state:results
> > >> > > >
> > >> > > >
> > >> > > > Additional info that may be helpful is below.
> > >> > >
> > >> > > Did you try the patch?
> > >> > > >
> > >> > > > Please let me know if you need any additional information.
> > >> > > >
> > >> > > > Thanks in advance for any help provided!
> > >> > > > Regards
> > >> > > >
> > >> > > > ###########################################################
> > >> > > > root@fiat:~# cat /etc/xen/ubuntu-hvm-0.cfg
> > >> > > > ###########################################################
> > >> > > > # Configuration file for Xen HVM
> > >> > > >
> > >> > > > # HVM Name (as appears in 'xl list')
> > >> > > > name="ubuntu-hvm-0"
> > >> > > > # HVM Build settings (+ hardware)
> > >> > > > #kernel = "/usr/lib/xen-4.3/boot/hvmloader"
> > >> > > > builder='hvm'
> > >> > > > device_model='qemu-dm'
> > >> > > > memory=1024
> > >> > > > vcpus=2
> > >> > > >
> > >> > > > # Virtual Interface
> > >> > > > # Network bridge to USB NIC
> > >> > > > vif=['bridge=xenbr0']
> > >> > > >
> > >> > > > ################### PCI PASSTHROUGH ###################
> > >> > > > # PCI Permissive mode toggle
> > >> > > > #pci_permissive=1
> > >> > > >
> > >> > > > # All PCI Devices
> > >> > > > #pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1', '05:00.0',
> > >> '05:00.1']
> > >> > > >
> > >> > > > # First two ports on Intel 4x1G NIC
> > >> > > > #pci=['03:00.0','03:00.1']
> > >> > > >
> > >> > > > # Last two ports on Intel 4x1G NIC
> > >> > > > #pci=['04:00.0', '04:00.1']
> > >> > > >
> > >> > > > # All ports on Intel 4x1G NIC
> > >> > > > pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1']
> > >> > > >
> > >> > > > # Brodcom 2x1G NIC
> > >> > > > #pci=['05:00.0', '05:00.1']
> > >> > > > ################### PCI PASSTHROUGH ###################
> > >> > > >
> > >> > > > # HVM Disks
> > >> > > > # Hard disk only
> > >> > > > # Boot from HDD first ('c')
> > >> > > > boot="c"
> > >> > > > disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w']
> > >> > > >
> > >> > > > # Hard disk with ISO
> > >> > > > # Boot from ISO first ('d')
> > >> > > > #boot="d"
> > >> > > > #disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w',
> > >> > > > 'file:/root/ubuntu-12.04.3-server-amd64.iso,hdc:cdrom,r']
> > >> > > >
> > >> > > > # ACPI Enable
> > >> > > > acpi=1
> > >> > > > # HVM Event Modes
> > >> > > > on_poweroff='destroy'
> > >> > > > on_reboot='restart'
> > >> > > > on_crash='restart'
> > >> > > >
> > >> > > > # Serial Console Configuration (Xen Console)
> > >> > > > sdl=0
> > >> > > > serial='pty'
> > >> > > >
> > >> > > > # VNC Configuration
> > >> > > > # Only reacable from localhost
> > >> > > > vnc=1
> > >> > > > vnclisten="0.0.0.0"
> > >> > > > vncpasswd=""
> > >> > > >
> > >> > > > ###########################################################
> > >> > > > Copied for xen-users list
> > >> > > > ###########################################################
> > >> > > >
> > >> > > > It appears that it cannot obtain the RAM mapping for this PCI
> > >> device.
> > >> > > >
> > >> > > >
> > >> > > > I rebooted the Host.  I ran assigned pci devices to pciback. The
> > >> output
> > >> > > > looks like:
> > >> > > > root@fiat:~# ./dev_mgmt.sh
> > >> > > > Loading Kernel Module 'xen-pciback'
> > >> > > > Calling function pciback_dev for:
> > >> > > > PCI DEVICE 0000:03:00.0
> > >> > > > Unbinding 0000:03:00.0 from igb
> > >> > > > Binding 0000:03:00.0 to pciback
> > >> > > >
> > >> > > > PCI DEVICE 0000:03:00.1
> > >> > > > Unbinding 0000:03:00.1 from igb
> > >> > > > Binding 0000:03:00.1 to pciback
> > >> > > >
> > >> > > > PCI DEVICE 0000:04:00.0
> > >> > > > Unbinding 0000:04:00.0 from igb
> > >> > > > Binding 0000:04:00.0 to pciback
> > >> > > >
> > >> > > > PCI DEVICE 0000:04:00.1
> > >> > > > Unbinding 0000:04:00.1 from igb
> > >> > > > Binding 0000:04:00.1 to pciback
> > >> > > >
> > >> > > > PCI DEVICE 0000:05:00.0
> > >> > > > Unbinding 0000:05:00.0 from bnx2
> > >> > > > Binding 0000:05:00.0 to pciback
> > >> > > >
> > >> > > > PCI DEVICE 0000:05:00.1
> > >> > > > Unbinding 0000:05:00.1 from bnx2
> > >> > > > Binding 0000:05:00.1 to pciback
> > >> > > >
> > >> > > > Listing PCI Devices Available to Xen
> > >> > > > 0000:03:00.0
> > >> > > > 0000:03:00.1
> > >> > > > 0000:04:00.0
> > >> > > > 0000:04:00.1
> > >> > > > 0000:05:00.0
> > >> > > > 0000:05:00.1
> > >> > > >
> > >> > > > ###########################################################
> > >> > > > root@fiat:~# xl -vvv create /etc/xen/ubuntu-hvm-0.cfg
> > >> > > > Parsing config from /etc/xen/ubuntu-hvm-0.cfg
> > >> > > > WARNING: ignoring device_model directive.
> > >> > > > WARNING: Use "device_model_override" instead if you really want
> a
> > >> > > > non-default device_model
> > >> > > > libxl: debug: libxl_create.c:1230:do_domain_create: ao
> 0x210c360:
> > >> create:
> > >> > > > how=(nil) callback=(nil) poller=0x210c3c0
> > >> > > > libxl: debug: libxl_device.c:257:libxl__device_disk_set_backend:
> > >> Disk
> > >> > > > vdev=hda spec.backend=unknown
> > >> > > > libxl: debug: libxl_device.c:296:libxl__device_disk_set_backend:
> > >> Disk
> > >> > > > vdev=hda, using backend phy
> > >> > > > libxl: debug: libxl_create.c:675:initiate_domain_create: running
> > >> > > bootloader
> > >> > > > libxl: debug: libxl_bootloader.c:321:libxl__bootloader_run: not
> a PV
> > >> > > > domain, skipping bootloader
> > >> > > > libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister:
> watch
> > >> > > > w=0x210c728: deregister unregistered
> > >> > > > libxl: debug: libxl_numa.c:475:libxl__get_numa_candidate: New
> best
> > >> NUMA
> > >> > > > placement candidate found: nr_nodes=1, nr_cpus=4, nr_vcpus=3,
> > >> > > > free_memkb=2980
> > >> > > > libxl: detail: libxl_dom.c:195:numa_place_domain: NUMA placement
> > >> > > candidate
> > >> > > > with 1 nodes, 4 cpus and 2980 KB free selected
> > >> > > > xc: detail: elf_parse_binary: phdr: paddr=0x100000 memsz=0xa69a4
> > >> > > > xc: detail: elf_parse_binary: memory: 0x100000 -> 0x1a69a4
> > >> > > > xc: info: VIRTUAL MEMORY ARRANGEMENT:
> > >> > > >   Loader:        0000000000100000->00000000001a69a4
> > >> > > >   Modules:       0000000000000000->0000000000000000
> > >> > > >   TOTAL:         0000000000000000->000000003f800000
> > >> > > >   ENTRY ADDRESS: 0000000000100608
> > >> > > > xc: info: PHYSICAL MEMORY ALLOCATION:
> > >> > > >   4KB PAGES: 0x0000000000000200
> > >> > > >   2MB PAGES: 0x00000000000001fb
> > >> > > >   1GB PAGES: 0x0000000000000000
> > >> > > > xc: detail: elf_load_binary: phdr 0 at 0x7f022c779000 ->
> > >> 0x7f022c81682d
> > >> > > > libxl: debug: libxl_device.c:257:libxl__device_disk_set_backend:
> > >> Disk
> > >> > > > vdev=hda spec.backend=phy
> > >> > > > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register:
> watch
> > >> > > > w=0x2112f48 wpath=/local/domain/0/backend/vbd/2/768/state
> token=3/0:
> > >> > > > register slotnum=3
> > >> > > > libxl: debug: libxl_create.c:1243:do_domain_create: ao
> 0x210c360:
> > >> > > > inprogress: poller=0x210c3c0, flags=i
> > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> w=0x2112f48
> > >> > > > wpath=/local/domain/0/backend/vbd/2/768/state token=3/0: event
> > >> > > > epath=/local/domain/0/backend/vbd/2/768/state
> > >> > > > libxl: debug: libxl_event.c:647:devstate_watch_callback: backend
> > >> > > > /local/domain/0/backend/vbd/2/768/state wanted state 2 still
> waiting
> > >> > > state 1
> > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> w=0x2112f48
> > >> > > > wpath=/local/domain/0/backend/vbd/2/768/state token=3/0: event
> > >> > > > epath=/local/domain/0/backend/vbd/2/768/state
> > >> > > > libxl: debug: libxl_event.c:643:devstate_watch_callback: backend
> > >> > > > /local/domain/0/backend/vbd/2/768/state wanted state 2 ok
> > >> > > > libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister:
> watch
> > >> > > > w=0x2112f48 wpath=/local/domain/0/backend/vbd/2/768/state
> token=3/0:
> > >> > > > deregister slotnum=3
> > >> > > > libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister:
> watch
> > >> > > > w=0x2112f48: deregister unregistered
> > >> > > > libxl: debug: libxl_device.c:959:device_hotplug: calling hotplug
> > >> script:
> > >> > > > /etc/xen/scripts/block add
> > >> > > > libxl: debug: libxl_dm.c:1206:libxl__spawn_local_dm: Spawning
> > >> > > device-model
> > >> > > > /usr/bin/qemu-system-i386 with arguments:
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > >> > > > /usr/bin/qemu-system-i386
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> -xen-domid
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   2
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -chardev
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > >> > > > socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-2,server,nowait
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -mon
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > >> > > > chardev=libxl-cmd,mode=control
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -name
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> ubuntu-hvm-0
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -vnc
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> 0.0.0.0:0
> > >> ,to=99
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -global
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > >> isa-fdc.driveA=
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -serial
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   pty
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -vga
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   cirrus
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -global
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > >> vga.vram_size_mb=8
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -boot
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   order=c
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -smp
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> 2,maxcpus=2
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -device
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > >> > > > rtl8139,id=nic0,netdev=net0,mac=00:16:3e:23:44:2c
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -netdev
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > >> > > > type=tap,id=net0,ifname=vif2.0-emu,script=no,downscript=no
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -M
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   xenfv
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -m
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   1016
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -drive
> > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > >> > > >
> > >> > >
> > >>
> file=/dev/ubuntu-vg/ubuntu-hvm-0,if=ide,index=0,media=disk,format=raw,cache=writeback
> > >> > > > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register:
> watch
> > >> > > > w=0x210c960 wpath=/local/domain/0/device-model/2/state
> token=3/1:
> > >> > > register
> > >> > > > slotnum=3
> > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> w=0x210c960
> > >> > > > wpath=/local/domain/0/device-model/2/state token=3/1: event
> > >> > > > epath=/local/domain/0/device-model/2/state
> > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> w=0x210c960
> > >> > > > wpath=/local/domain/0/device-model/2/state token=3/1: event
> > >> > > > epath=/local/domain/0/device-model/2/state
> > >> > > > libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister:
> watch
> > >> > > > w=0x210c960 wpath=/local/domain/0/device-model/2/state
> token=3/1:
> > >> > > > deregister slotnum=3
> > >> > > > libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister:
> watch
> > >> > > > w=0x210c960: deregister unregistered
> > >> > > > libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize: connected
> to
> > >> > > > /var/run/xen/qmp-libxl-2
> > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message
> type: qmp
> > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> command: '{
> > >> > > >     "execute": "qmp_capabilities",
> > >> > > >     "id": 1
> > >> > > > }
> > >> > > > '
> > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type:
> > >> return
> > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> command: '{
> > >> > > >     "execute": "query-chardev",
> > >> > > >     "id": 2
> > >> > > > }
> > >> > > > '
> > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type:
> > >> return
> > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> command: '{
> > >> > > >     "execute": "change",
> > >> > > >     "id": 3,
> > >> > > >     "arguments": {
> > >> > > >         "device": "vnc",
> > >> > > >         "target": "password",
> > >> > > >         "arg": ""
> > >> > > >     }
> > >> > > > }
> > >> > > > '
> > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type:
> > >> return
> > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> command: '{
> > >> > > >     "execute": "query-vnc",
> > >> > > >     "id": 4
> > >> > > > }
> > >> > > > '
> > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type:
> > >> return
> > >> > > > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register:
> watch
> > >> > > > w=0x210e8a8 wpath=/local/domain/0/backend/vif/2/0/state
> token=3/2:
> > >> > > register
> > >> > > > slotnum=3
> > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> w=0x210e8a8
> > >> > > > wpath=/local/domain/0/backend/vif/2/0/state token=3/2: event
> > >> > > > epath=/local/domain/0/backend/vif/2/0/state
> > >> > > > libxl: debug: libxl_event.c:647:devstate_watch_callback: backend
> > >> > > > /local/domain/0/backend/vif/2/0/state wanted state 2 still
> waiting
> > >> state
> > >> > > 1
> > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> w=0x210e8a8
> > >> > > > wpath=/local/domain/0/backend/vif/2/0/state token=3/2: event
> > >> > > > epath=/local/domain/0/backend/vif/2/0/state
> > >> > > > libxl: debug: libxl_event.c:643:devstate_watch_callback: backend
> > >> > > > /local/domain/0/backend/vif/2/0/state wanted state 2 ok
> > >> > > > libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister:
> watch
> > >> > > > w=0x210e8a8 wpath=/local/domain/0/backend/vif/2/0/state
> token=3/2:
> > >> > > > deregister slotnum=3
> > >> > > > libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister:
> watch
> > >> > > > w=0x210e8a8: deregister unregistered
> > >> > > > libxl: debug: libxl_device.c:959:device_hotplug: calling hotplug
> > >> script:
> > >> > > > /etc/xen/scripts/vif-bridge online
> > >> > > > libxl: debug: libxl_device.c:959:device_hotplug: calling hotplug
> > >> script:
> > >> > > > /etc/xen/scripts/vif-bridge add
> > >> > > > libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize: connected
> to
> > >> > > > /var/run/xen/qmp-libxl-2
> > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message
> type: qmp
> > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> command: '{
> > >> > > >     "execute": "qmp_capabilities",
> > >> > > >     "id": 1
> > >> > > > }
> > >> > > > '
> > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type:
> > >> return
> > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> command: '{
> > >> > > >     "execute": "device_add",
> > >> > > >     "id": 2,
> > >> > > >     "arguments": {
> > >> > > >         "driver": "xen-pci-passthrough",
> > >> > > >         "id": "pci-pt-03_00.0",
> > >> > > >         "hostaddr": "0000:03:00.0"
> > >> > > >     }
> > >> > > > }
> > >> > > > '
> > >> > > > libxl: error: libxl_qmp.c:454:qmp_next: Socket read error:
> > >> Connection
> > >> > > reset
> > >> > > > by peer
> > >> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: Connection
> > >> error:
> > >> > > > Connection refused
> > >> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: Connection
> > >> error:
> > >> > > > Connection refused
> > >> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: Connection
> > >> error:
> > >> > > > Connection refused
> > >> > > > libxl: debug: libxl_pci.c:81:libxl__create_pci_backend:
> Creating pci
> > >> > > backend
> > >> > > > libxl: debug: libxl_event.c:1737:libxl__ao_progress_report: ao
> > >> 0x210c360:
> > >> > > > progress report: ignored
> > >> > > > libxl: debug: libxl_event.c:1569:libxl__ao_complete: ao
> 0x210c360:
> > >> > > > complete, rc=0
> > >> > > > libxl: debug: libxl_event.c:1541:libxl__ao__destroy: ao
> 0x210c360:
> > >> > > destroy
> > >> > > > Daemon running with PID 3214
> > >> > > > xc: debug: hypercall buffer: total allocations:793 total
> > >> releases:793
> > >> > > > xc: debug: hypercall buffer: current allocations:0 maximum
> > >> allocations:4
> > >> > > > xc: debug: hypercall buffer: cache current size:4
> > >> > > > xc: debug: hypercall buffer: cache hits:785 misses:4 toobig:4
> > >> > > >
> > >> > > > ###########################################################
> > >> > > > root@fiat:/var/log/xen# cat qemu-dm-ubuntu-hvm-0.log
> > >> > > > char device redirected to /dev/pts/5 (label serial0)
> > >> > > > qemu: hardware error: xen: failed to populate ram at 40030000
> > >> > > > CPU #0:
> > >> > > > EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
> > >> > > > ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
> > >> > > > EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=1
> > >> > > > ES =0000 00000000 0000ffff 00009300
> > >> > > > CS =f000 ffff0000 0000ffff 00009b00
> > >> > > > SS =0000 00000000 0000ffff 00009300
> > >> > > > DS =0000 00000000 0000ffff 00009300
> > >> > > > FS =0000 00000000 0000ffff 00009300
> > >> > > > GS =0000 00000000 0000ffff 00009300
> > >> > > > LDT=0000 00000000 0000ffff 00008200
> > >> > > > TR =0000 00000000 0000ffff 00008b00
> > >> > > > GDT=     00000000 0000ffff
> > >> > > > IDT=     00000000 0000ffff
> > >> > > > CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
> > >> > > > DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
> > >> > > > DR6=ffff0ff0 DR7=00000400
> > >> > > > EFER=0000000000000000
> > >> > > > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
> > >> > > > FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
> > >> > > > FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
> > >> > > > FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
> > >> > > > FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
> > >> > > > XMM00=00000000000000000000000000000000
> > >> > > > XMM01=00000000000000000000000000000000
> > >> > > > XMM02=00000000000000000000000000000000
> > >> > > > XMM03=00000000000000000000000000000000
> > >> > > > XMM04=00000000000000000000000000000000
> > >> > > > XMM05=00000000000000000000000000000000
> > >> > > > XMM06=00000000000000000000000000000000
> > >> > > > XMM07=00000000000000000000000000000000
> > >> > > > CPU #1:
> > >> > > > EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
> > >> > > > ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
> > >> > > > EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=1
> > >> > > > ES =0000 00000000 0000ffff 00009300
> > >> > > > CS =f000 ffff0000 0000ffff 00009b00
> > >> > > > SS =0000 00000000 0000ffff 00009300
> > >> > > > DS =0000 00000000 0000ffff 00009300
> > >> > > > FS =0000 00000000 0000ffff 00009300
> > >> > > > GS =0000 00000000 0000ffff 00009300
> > >> > > > LDT=0000 00000000 0000ffff 00008200
> > >> > > > TR =0000 00000000 0000ffff 00008b00
> > >> > > > GDT=     00000000 0000ffff
> > >> > > > IDT=     00000000 0000ffff
> > >> > > > CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
> > >> > > > DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
> > >> > > > DR6=ffff0ff0 DR7=00000400
> > >> > > > EFER=0000000000000000
> > >> > > > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
> > >> > > > FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
> > >> > > > FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
> > >> > > > FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
> > >> > > > FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
> > >> > > > XMM00=00000000000000000000000000000000
> > >> > > > XMM01=00000000000000000000000000000000
> > >> > > > XMM02=00000000000000000000000000000000
> > >> > > > XMM03=00000000000000000000000000000000
> > >> > > > XMM04=00000000000000000000000000000000
> > >> > > > XMM05=00000000000000000000000000000000
> > >> > > > XMM06=00000000000000000000000000000000
> > >> > > > XMM07=00000000000000000000000000000000
> > >> > > >
> > >> > > > ###########################################################
> > >> > > > /etc/default/grub
> > >> > > > GRUB_DEFAULT="Xen 4.3-amd64"
> > >> > > > GRUB_HIDDEN_TIMEOUT=0
> > >> > > > GRUB_HIDDEN_TIMEOUT_QUIET=true
> > >> > > > GRUB_TIMEOUT=10
> > >> > > > GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
> > >> > > > GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
> > >> > > > GRUB_CMDLINE_LINUX=""
> > >> > > > # biosdevname=0
> > >> > > > GRUB_CMDLINE_XEN="dom0_mem=1024M dom0_max_vcpus=1"
> > >> > >
> > >> > > > _______________________________________________
> > >> > > > Xen-devel mailing list
> > >> > > > Xen-devel@lists.xen.org
> > >> > > > http://lists.xen.org/xen-devel
> > >> > >
> > >> > >
> > >>
> > >
> > >
>

[-- Attachment #1.2: Type: text/html, Size: 40776 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Xen 4.3 PCI passthrough possible bug
  2014-02-07 20:45             ` Mike Neiderhauser
@ 2014-02-07 21:01               ` Konrad Rzeszutek Wilk
  2014-02-07 21:29                 ` Mike Neiderhauser
  0 siblings, 1 reply; 22+ messages in thread
From: Konrad Rzeszutek Wilk @ 2014-02-07 21:01 UTC (permalink / raw)
  To: Mike Neiderhauser; +Cc: xen-devel

On Fri, Feb 07, 2014 at 03:45:19PM -0500, Mike Neiderhauser wrote:
> Ok. I started ran the initscripts and now xl works.
> 
> However, I still see the same behavior as before:
> 

Did you use the patch that was mentioned in the URL?

> root@fiat:~# xl create /etc/xen/ubuntu-hvm-0.cfg
> Parsing config from /etc/xen/ubuntu-hvm-0.cfg
> libxl: error: libxl_qmp.c:448:qmp_next: Socket read error: Connection reset
> by peer
> libxl: error: libxl_qmp.c:691:libxl__qmp_initialize: Connection error:
> Connection refused
> libxl: error: libxl_qmp.c:691:libxl__qmp_initialize: Connection error:
> Connection refused
> libxl: error: libxl_qmp.c:691:libxl__qmp_initialize: Connection error:
> Connection refused
> root@fiat:~# xl list
> Name                                        ID   Mem VCPUs State Time(s)
> Domain-0                                     0  1024     1     r-----
>  15.2
> ubuntu-hvm-0                                 1  1025     1     ------
> 0.0
> 
> (XEN)  Dom0 kernel: 64-bit, PAE, lsb, paddr 0x1000000 -> 0x23f3000
> (XEN) PHYSICAL MEMORY ARRANGEMENT:
> (XEN)  Dom0 alloc.:   0000000134000000->0000000138000000 (233690 pages to
> be allocated)
> (XEN)  Init. ramdisk: 000000013d0da000->000000013ffffe00
> (XEN) VIRTUAL MEMORY ARRANGEMENT:
> (XEN)  Loaded kernel: ffffffff81000000->ffffffff823f3000
> (XEN)  Init. ramdisk: ffffffff823f3000->ffffffff85318e00
> (XEN)  Phys-Mach map: ffffffff85319000->ffffffff85519000
> (XEN)  Start info:    ffffffff85519000->ffffffff855194b4
> (XEN)  Page tables:   ffffffff8551a000->ffffffff85549000
> (XEN)  Boot stack:    ffffffff85549000->ffffffff8554a000
> (XEN)  TOTAL:         ffffffff80000000->ffffffff85800000
> (XEN)  ENTRY ADDRESS: ffffffff81d261e0
> (XEN) Dom0 has maximum 1 VCPUs
> (XEN) elf_load_binary: phdr 0 at 0xffffffff81000000 -> 0xffffffff81b2f000
> (XEN) elf_load_binary: phdr 1 at 0xffffffff81c00000 -> 0xffffffff81d0f0f0
> (XEN) elf_load_binary: phdr 2 at 0xffffffff81d10000 -> 0xffffffff81d252c0
> (XEN) elf_load_binary: phdr 3 at 0xffffffff81d26000 -> 0xffffffff81e6d000
> (XEN) Scrubbing Free RAM: .............................done.
> (XEN) Initial low memory virq threshold set at 0x4000 pages.
> (XEN) Std. Loglevel: All
> (XEN) Guest Loglevel: All
> (XEN) Xen is relinquishing VGA console.
> (XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input
> to Xen)
> (XEN) Freed 260kB init memory.
> (XEN) PCI add device 0000:00:00.0
> (XEN) PCI add device 0000:00:01.0
> (XEN) PCI add device 0000:00:1a.0
> (XEN) PCI add device 0000:00:1c.0
> (XEN) PCI add device 0000:00:1d.0
> (XEN) PCI add device 0000:00:1e.0
> (XEN) PCI add device 0000:00:1f.0
> (XEN) PCI add device 0000:00:1f.2
> (XEN) PCI add device 0000:00:1f.3
> (XEN) PCI add device 0000:01:00.0
> (XEN) PCI add device 0000:02:02.0
> (XEN) PCI add device 0000:02:04.0
> (XEN) PCI add device 0000:03:00.0
> (XEN) PCI add device 0000:03:00.1
> (XEN) PCI add device 0000:04:00.0
> (XEN) PCI add device 0000:04:00.1
> (XEN) PCI add device 0000:05:00.0
> (XEN) PCI add device 0000:05:00.1
> (XEN) PCI add device 0000:06:03.0
> (XEN) page_alloc.c:1460:d0 Over-allocation for domain 1: 262401 > 262400
> (XEN) memory.c:158:d0 Could not allocate order=0 extent: id=1 memflags=0
> (200 of 1024)
> (d1) HVM Loader
> (d1) Detected Xen v4.4-rc2
> (d1) Xenbus rings @0xfeffc000, event channel 4
> (d1) System requested SeaBIOS
> (d1) CPU speed is 3093 MHz
> (d1) Relocating guest memory for lowmem MMIO space disabled
> 
> 
> Excerpt from /var/log/xen/*
> qemu: hardware error: xen: failed to populate ram at 40050000
> 
> 
> On Fri, Feb 7, 2014 at 3:39 PM, Konrad Rzeszutek Wilk <
> konrad.wilk@oracle.com> wrote:
> 
> > On Fri, Feb 07, 2014 at 03:36:49PM -0500, Mike Neiderhauser wrote:
> > > I was able to compile and install xen4.4 RC3 on my host, however I am
> > > getting the error:
> > >
> > > root@fiat:~/git/xen# xl list
> > > xc: error: Could not obtain handle on privileged command interface (2 =
> > No
> > > such file or directory): Internal error
> > > libxl: error: libxl.c:92:libxl_ctx_alloc: cannot open libxc handle: No
> > such
> > > file or directory
> > > cannot init xl context
> > >
> > > I've google searched for this and an article appears, but is not the same
> > > (as far as I can tell).  Running any xl command generates a similar
> > error.
> > >
> > > What can I do to fix this?
> >
> >
> > You need to run the initscripts for Xen. I don't know what your distro is,
> > but
> > they are usually put in /etc/init.d/rc.d/xen*
> >
> >
> > >
> > > Regards
> > >
> > >
> > > On Fri, Feb 7, 2014 at 1:40 PM, Mike Neiderhauser <
> > > mikeneiderhauser@gmail.com> wrote:
> > >
> > > > Much. Do I need to install from src or is there a package I can
> > install.
> > > >
> > > > Regards
> > > >
> > > >
> > > > On Fri, Feb 7, 2014 at 1:30 PM, Konrad Rzeszutek Wilk <
> > > > konrad.wilk@oracle.com> wrote:
> > > >
> > > >> On Fri, Feb 07, 2014 at 10:53:22AM -0500, Mike Neiderhauser wrote:
> > > >> > I did not.  I do not have the toolchain installed.  I may have time
> > > >> later
> > > >> > today to try the patch.  Are there any specific instructions on how
> > to
> > > >> > patch the src, compile and install?
> > > >>
> > > >> There actually should be a new version of Xen 4.4-rcX which will have
> > the
> > > >> fix. That might be easier for you?
> > > >> >
> > > >> > Regards
> > > >> >
> > > >> >
> > > >> > On Fri, Feb 7, 2014 at 10:25 AM, Konrad Rzeszutek Wilk <
> > > >> > konrad.wilk@oracle.com> wrote:
> > > >> >
> > > >> > > On Thu, Feb 06, 2014 at 09:39:37AM -0500, Mike Neiderhauser wrote:
> > > >> > > > Hi all,
> > > >> > > >
> > > >> > > > I am attempting to do a pci passthrough of an Intel ET card
> > (4x1G
> > > >> NIC)
> > > >> > > to a
> > > >> > > > HVM.  I have been attempting to resolve this issue on the
> > xen-users
> > > >> list,
> > > >> > > > but it was advised to post this issue to this list. (Initial
> > > >> Message -
> > > >> > > >
> > > >> > >
> > > >>
> > http://lists.xenproject.org/archives/html/xen-users/2014-02/msg00036.html
> > > >> )
> > > >> > > >
> > > >> > > > The machine I am using as host is a Dell Poweredge server with a
> > > >> Xeon
> > > >> > > > E31220 with 4GB of ram.
> > > >> > > >
> > > >> > > > The possible bug is the following:
> > > >> > > > root@fiat:/var/log/xen# cat qemu-dm-ubuntu-hvm-0.log
> > > >> > > > char device redirected to /dev/pts/5 (label serial0)
> > > >> > > > qemu: hardware error: xen: failed to populate ram at 40030000
> > > >> > > > ....
> > > >> > > >
> > > >> > > > I believe it may be similar to this thread
> > > >> > > >
> > > >> > >
> > > >>
> > http://markmail.org/message/3zuiojywempoorxj#query:+page:1+mid:gul34vbe4uyog2d4+state:results
> > > >> > > >
> > > >> > > >
> > > >> > > > Additional info that may be helpful is below.
> > > >> > >
> > > >> > > Did you try the patch?
> > > >> > > >
> > > >> > > > Please let me know if you need any additional information.
> > > >> > > >
> > > >> > > > Thanks in advance for any help provided!
> > > >> > > > Regards
> > > >> > > >
> > > >> > > > ###########################################################
> > > >> > > > root@fiat:~# cat /etc/xen/ubuntu-hvm-0.cfg
> > > >> > > > ###########################################################
> > > >> > > > # Configuration file for Xen HVM
> > > >> > > >
> > > >> > > > # HVM Name (as appears in 'xl list')
> > > >> > > > name="ubuntu-hvm-0"
> > > >> > > > # HVM Build settings (+ hardware)
> > > >> > > > #kernel = "/usr/lib/xen-4.3/boot/hvmloader"
> > > >> > > > builder='hvm'
> > > >> > > > device_model='qemu-dm'
> > > >> > > > memory=1024
> > > >> > > > vcpus=2
> > > >> > > >
> > > >> > > > # Virtual Interface
> > > >> > > > # Network bridge to USB NIC
> > > >> > > > vif=['bridge=xenbr0']
> > > >> > > >
> > > >> > > > ################### PCI PASSTHROUGH ###################
> > > >> > > > # PCI Permissive mode toggle
> > > >> > > > #pci_permissive=1
> > > >> > > >
> > > >> > > > # All PCI Devices
> > > >> > > > #pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1', '05:00.0',
> > > >> '05:00.1']
> > > >> > > >
> > > >> > > > # First two ports on Intel 4x1G NIC
> > > >> > > > #pci=['03:00.0','03:00.1']
> > > >> > > >
> > > >> > > > # Last two ports on Intel 4x1G NIC
> > > >> > > > #pci=['04:00.0', '04:00.1']
> > > >> > > >
> > > >> > > > # All ports on Intel 4x1G NIC
> > > >> > > > pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1']
> > > >> > > >
> > > >> > > > # Brodcom 2x1G NIC
> > > >> > > > #pci=['05:00.0', '05:00.1']
> > > >> > > > ################### PCI PASSTHROUGH ###################
> > > >> > > >
> > > >> > > > # HVM Disks
> > > >> > > > # Hard disk only
> > > >> > > > # Boot from HDD first ('c')
> > > >> > > > boot="c"
> > > >> > > > disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w']
> > > >> > > >
> > > >> > > > # Hard disk with ISO
> > > >> > > > # Boot from ISO first ('d')
> > > >> > > > #boot="d"
> > > >> > > > #disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w',
> > > >> > > > 'file:/root/ubuntu-12.04.3-server-amd64.iso,hdc:cdrom,r']
> > > >> > > >
> > > >> > > > # ACPI Enable
> > > >> > > > acpi=1
> > > >> > > > # HVM Event Modes
> > > >> > > > on_poweroff='destroy'
> > > >> > > > on_reboot='restart'
> > > >> > > > on_crash='restart'
> > > >> > > >
> > > >> > > > # Serial Console Configuration (Xen Console)
> > > >> > > > sdl=0
> > > >> > > > serial='pty'
> > > >> > > >
> > > >> > > > # VNC Configuration
> > > >> > > > # Only reacable from localhost
> > > >> > > > vnc=1
> > > >> > > > vnclisten="0.0.0.0"
> > > >> > > > vncpasswd=""
> > > >> > > >
> > > >> > > > ###########################################################
> > > >> > > > Copied for xen-users list
> > > >> > > > ###########################################################
> > > >> > > >
> > > >> > > > It appears that it cannot obtain the RAM mapping for this PCI
> > > >> device.
> > > >> > > >
> > > >> > > >
> > > >> > > > I rebooted the Host.  I ran assigned pci devices to pciback. The
> > > >> output
> > > >> > > > looks like:
> > > >> > > > root@fiat:~# ./dev_mgmt.sh
> > > >> > > > Loading Kernel Module 'xen-pciback'
> > > >> > > > Calling function pciback_dev for:
> > > >> > > > PCI DEVICE 0000:03:00.0
> > > >> > > > Unbinding 0000:03:00.0 from igb
> > > >> > > > Binding 0000:03:00.0 to pciback
> > > >> > > >
> > > >> > > > PCI DEVICE 0000:03:00.1
> > > >> > > > Unbinding 0000:03:00.1 from igb
> > > >> > > > Binding 0000:03:00.1 to pciback
> > > >> > > >
> > > >> > > > PCI DEVICE 0000:04:00.0
> > > >> > > > Unbinding 0000:04:00.0 from igb
> > > >> > > > Binding 0000:04:00.0 to pciback
> > > >> > > >
> > > >> > > > PCI DEVICE 0000:04:00.1
> > > >> > > > Unbinding 0000:04:00.1 from igb
> > > >> > > > Binding 0000:04:00.1 to pciback
> > > >> > > >
> > > >> > > > PCI DEVICE 0000:05:00.0
> > > >> > > > Unbinding 0000:05:00.0 from bnx2
> > > >> > > > Binding 0000:05:00.0 to pciback
> > > >> > > >
> > > >> > > > PCI DEVICE 0000:05:00.1
> > > >> > > > Unbinding 0000:05:00.1 from bnx2
> > > >> > > > Binding 0000:05:00.1 to pciback
> > > >> > > >
> > > >> > > > Listing PCI Devices Available to Xen
> > > >> > > > 0000:03:00.0
> > > >> > > > 0000:03:00.1
> > > >> > > > 0000:04:00.0
> > > >> > > > 0000:04:00.1
> > > >> > > > 0000:05:00.0
> > > >> > > > 0000:05:00.1
> > > >> > > >
> > > >> > > > ###########################################################
> > > >> > > > root@fiat:~# xl -vvv create /etc/xen/ubuntu-hvm-0.cfg
> > > >> > > > Parsing config from /etc/xen/ubuntu-hvm-0.cfg
> > > >> > > > WARNING: ignoring device_model directive.
> > > >> > > > WARNING: Use "device_model_override" instead if you really want
> > a
> > > >> > > > non-default device_model
> > > >> > > > libxl: debug: libxl_create.c:1230:do_domain_create: ao
> > 0x210c360:
> > > >> create:
> > > >> > > > how=(nil) callback=(nil) poller=0x210c3c0
> > > >> > > > libxl: debug: libxl_device.c:257:libxl__device_disk_set_backend:
> > > >> Disk
> > > >> > > > vdev=hda spec.backend=unknown
> > > >> > > > libxl: debug: libxl_device.c:296:libxl__device_disk_set_backend:
> > > >> Disk
> > > >> > > > vdev=hda, using backend phy
> > > >> > > > libxl: debug: libxl_create.c:675:initiate_domain_create: running
> > > >> > > bootloader
> > > >> > > > libxl: debug: libxl_bootloader.c:321:libxl__bootloader_run: not
> > a PV
> > > >> > > > domain, skipping bootloader
> > > >> > > > libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister:
> > watch
> > > >> > > > w=0x210c728: deregister unregistered
> > > >> > > > libxl: debug: libxl_numa.c:475:libxl__get_numa_candidate: New
> > best
> > > >> NUMA
> > > >> > > > placement candidate found: nr_nodes=1, nr_cpus=4, nr_vcpus=3,
> > > >> > > > free_memkb=2980
> > > >> > > > libxl: detail: libxl_dom.c:195:numa_place_domain: NUMA placement
> > > >> > > candidate
> > > >> > > > with 1 nodes, 4 cpus and 2980 KB free selected
> > > >> > > > xc: detail: elf_parse_binary: phdr: paddr=0x100000 memsz=0xa69a4
> > > >> > > > xc: detail: elf_parse_binary: memory: 0x100000 -> 0x1a69a4
> > > >> > > > xc: info: VIRTUAL MEMORY ARRANGEMENT:
> > > >> > > >   Loader:        0000000000100000->00000000001a69a4
> > > >> > > >   Modules:       0000000000000000->0000000000000000
> > > >> > > >   TOTAL:         0000000000000000->000000003f800000
> > > >> > > >   ENTRY ADDRESS: 0000000000100608
> > > >> > > > xc: info: PHYSICAL MEMORY ALLOCATION:
> > > >> > > >   4KB PAGES: 0x0000000000000200
> > > >> > > >   2MB PAGES: 0x00000000000001fb
> > > >> > > >   1GB PAGES: 0x0000000000000000
> > > >> > > > xc: detail: elf_load_binary: phdr 0 at 0x7f022c779000 ->
> > > >> 0x7f022c81682d
> > > >> > > > libxl: debug: libxl_device.c:257:libxl__device_disk_set_backend:
> > > >> Disk
> > > >> > > > vdev=hda spec.backend=phy
> > > >> > > > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register:
> > watch
> > > >> > > > w=0x2112f48 wpath=/local/domain/0/backend/vbd/2/768/state
> > token=3/0:
> > > >> > > > register slotnum=3
> > > >> > > > libxl: debug: libxl_create.c:1243:do_domain_create: ao
> > 0x210c360:
> > > >> > > > inprogress: poller=0x210c3c0, flags=i
> > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> > w=0x2112f48
> > > >> > > > wpath=/local/domain/0/backend/vbd/2/768/state token=3/0: event
> > > >> > > > epath=/local/domain/0/backend/vbd/2/768/state
> > > >> > > > libxl: debug: libxl_event.c:647:devstate_watch_callback: backend
> > > >> > > > /local/domain/0/backend/vbd/2/768/state wanted state 2 still
> > waiting
> > > >> > > state 1
> > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> > w=0x2112f48
> > > >> > > > wpath=/local/domain/0/backend/vbd/2/768/state token=3/0: event
> > > >> > > > epath=/local/domain/0/backend/vbd/2/768/state
> > > >> > > > libxl: debug: libxl_event.c:643:devstate_watch_callback: backend
> > > >> > > > /local/domain/0/backend/vbd/2/768/state wanted state 2 ok
> > > >> > > > libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister:
> > watch
> > > >> > > > w=0x2112f48 wpath=/local/domain/0/backend/vbd/2/768/state
> > token=3/0:
> > > >> > > > deregister slotnum=3
> > > >> > > > libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister:
> > watch
> > > >> > > > w=0x2112f48: deregister unregistered
> > > >> > > > libxl: debug: libxl_device.c:959:device_hotplug: calling hotplug
> > > >> script:
> > > >> > > > /etc/xen/scripts/block add
> > > >> > > > libxl: debug: libxl_dm.c:1206:libxl__spawn_local_dm: Spawning
> > > >> > > device-model
> > > >> > > > /usr/bin/qemu-system-i386 with arguments:
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > >> > > > /usr/bin/qemu-system-i386
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > -xen-domid
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   2
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -chardev
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > >> > > > socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-2,server,nowait
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -mon
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > >> > > > chardev=libxl-cmd,mode=control
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -name
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > ubuntu-hvm-0
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -vnc
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > 0.0.0.0:0
> > > >> ,to=99
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -global
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > >> isa-fdc.driveA=
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -serial
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   pty
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -vga
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   cirrus
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -global
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > >> vga.vram_size_mb=8
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -boot
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   order=c
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -smp
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > 2,maxcpus=2
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -device
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > >> > > > rtl8139,id=nic0,netdev=net0,mac=00:16:3e:23:44:2c
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -netdev
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > >> > > > type=tap,id=net0,ifname=vif2.0-emu,script=no,downscript=no
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -M
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   xenfv
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -m
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   1016
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -drive
> > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > >> > > >
> > > >> > >
> > > >>
> > file=/dev/ubuntu-vg/ubuntu-hvm-0,if=ide,index=0,media=disk,format=raw,cache=writeback
> > > >> > > > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register:
> > watch
> > > >> > > > w=0x210c960 wpath=/local/domain/0/device-model/2/state
> > token=3/1:
> > > >> > > register
> > > >> > > > slotnum=3
> > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> > w=0x210c960
> > > >> > > > wpath=/local/domain/0/device-model/2/state token=3/1: event
> > > >> > > > epath=/local/domain/0/device-model/2/state
> > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> > w=0x210c960
> > > >> > > > wpath=/local/domain/0/device-model/2/state token=3/1: event
> > > >> > > > epath=/local/domain/0/device-model/2/state
> > > >> > > > libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister:
> > watch
> > > >> > > > w=0x210c960 wpath=/local/domain/0/device-model/2/state
> > token=3/1:
> > > >> > > > deregister slotnum=3
> > > >> > > > libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister:
> > watch
> > > >> > > > w=0x210c960: deregister unregistered
> > > >> > > > libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize: connected
> > to
> > > >> > > > /var/run/xen/qmp-libxl-2
> > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message
> > type: qmp
> > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> > command: '{
> > > >> > > >     "execute": "qmp_capabilities",
> > > >> > > >     "id": 1
> > > >> > > > }
> > > >> > > > '
> > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type:
> > > >> return
> > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> > command: '{
> > > >> > > >     "execute": "query-chardev",
> > > >> > > >     "id": 2
> > > >> > > > }
> > > >> > > > '
> > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type:
> > > >> return
> > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> > command: '{
> > > >> > > >     "execute": "change",
> > > >> > > >     "id": 3,
> > > >> > > >     "arguments": {
> > > >> > > >         "device": "vnc",
> > > >> > > >         "target": "password",
> > > >> > > >         "arg": ""
> > > >> > > >     }
> > > >> > > > }
> > > >> > > > '
> > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type:
> > > >> return
> > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> > command: '{
> > > >> > > >     "execute": "query-vnc",
> > > >> > > >     "id": 4
> > > >> > > > }
> > > >> > > > '
> > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type:
> > > >> return
> > > >> > > > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register:
> > watch
> > > >> > > > w=0x210e8a8 wpath=/local/domain/0/backend/vif/2/0/state
> > token=3/2:
> > > >> > > register
> > > >> > > > slotnum=3
> > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> > w=0x210e8a8
> > > >> > > > wpath=/local/domain/0/backend/vif/2/0/state token=3/2: event
> > > >> > > > epath=/local/domain/0/backend/vif/2/0/state
> > > >> > > > libxl: debug: libxl_event.c:647:devstate_watch_callback: backend
> > > >> > > > /local/domain/0/backend/vif/2/0/state wanted state 2 still
> > waiting
> > > >> state
> > > >> > > 1
> > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> > w=0x210e8a8
> > > >> > > > wpath=/local/domain/0/backend/vif/2/0/state token=3/2: event
> > > >> > > > epath=/local/domain/0/backend/vif/2/0/state
> > > >> > > > libxl: debug: libxl_event.c:643:devstate_watch_callback: backend
> > > >> > > > /local/domain/0/backend/vif/2/0/state wanted state 2 ok
> > > >> > > > libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister:
> > watch
> > > >> > > > w=0x210e8a8 wpath=/local/domain/0/backend/vif/2/0/state
> > token=3/2:
> > > >> > > > deregister slotnum=3
> > > >> > > > libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister:
> > watch
> > > >> > > > w=0x210e8a8: deregister unregistered
> > > >> > > > libxl: debug: libxl_device.c:959:device_hotplug: calling hotplug
> > > >> script:
> > > >> > > > /etc/xen/scripts/vif-bridge online
> > > >> > > > libxl: debug: libxl_device.c:959:device_hotplug: calling hotplug
> > > >> script:
> > > >> > > > /etc/xen/scripts/vif-bridge add
> > > >> > > > libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize: connected
> > to
> > > >> > > > /var/run/xen/qmp-libxl-2
> > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message
> > type: qmp
> > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> > command: '{
> > > >> > > >     "execute": "qmp_capabilities",
> > > >> > > >     "id": 1
> > > >> > > > }
> > > >> > > > '
> > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message type:
> > > >> return
> > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> > command: '{
> > > >> > > >     "execute": "device_add",
> > > >> > > >     "id": 2,
> > > >> > > >     "arguments": {
> > > >> > > >         "driver": "xen-pci-passthrough",
> > > >> > > >         "id": "pci-pt-03_00.0",
> > > >> > > >         "hostaddr": "0000:03:00.0"
> > > >> > > >     }
> > > >> > > > }
> > > >> > > > '
> > > >> > > > libxl: error: libxl_qmp.c:454:qmp_next: Socket read error:
> > > >> Connection
> > > >> > > reset
> > > >> > > > by peer
> > > >> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: Connection
> > > >> error:
> > > >> > > > Connection refused
> > > >> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: Connection
> > > >> error:
> > > >> > > > Connection refused
> > > >> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: Connection
> > > >> error:
> > > >> > > > Connection refused
> > > >> > > > libxl: debug: libxl_pci.c:81:libxl__create_pci_backend:
> > Creating pci
> > > >> > > backend
> > > >> > > > libxl: debug: libxl_event.c:1737:libxl__ao_progress_report: ao
> > > >> 0x210c360:
> > > >> > > > progress report: ignored
> > > >> > > > libxl: debug: libxl_event.c:1569:libxl__ao_complete: ao
> > 0x210c360:
> > > >> > > > complete, rc=0
> > > >> > > > libxl: debug: libxl_event.c:1541:libxl__ao__destroy: ao
> > 0x210c360:
> > > >> > > destroy
> > > >> > > > Daemon running with PID 3214
> > > >> > > > xc: debug: hypercall buffer: total allocations:793 total
> > > >> releases:793
> > > >> > > > xc: debug: hypercall buffer: current allocations:0 maximum
> > > >> allocations:4
> > > >> > > > xc: debug: hypercall buffer: cache current size:4
> > > >> > > > xc: debug: hypercall buffer: cache hits:785 misses:4 toobig:4
> > > >> > > >
> > > >> > > > ###########################################################
> > > >> > > > root@fiat:/var/log/xen# cat qemu-dm-ubuntu-hvm-0.log
> > > >> > > > char device redirected to /dev/pts/5 (label serial0)
> > > >> > > > qemu: hardware error: xen: failed to populate ram at 40030000
> > > >> > > > CPU #0:
> > > >> > > > EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
> > > >> > > > ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
> > > >> > > > EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=1
> > > >> > > > ES =0000 00000000 0000ffff 00009300
> > > >> > > > CS =f000 ffff0000 0000ffff 00009b00
> > > >> > > > SS =0000 00000000 0000ffff 00009300
> > > >> > > > DS =0000 00000000 0000ffff 00009300
> > > >> > > > FS =0000 00000000 0000ffff 00009300
> > > >> > > > GS =0000 00000000 0000ffff 00009300
> > > >> > > > LDT=0000 00000000 0000ffff 00008200
> > > >> > > > TR =0000 00000000 0000ffff 00008b00
> > > >> > > > GDT=     00000000 0000ffff
> > > >> > > > IDT=     00000000 0000ffff
> > > >> > > > CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
> > > >> > > > DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
> > > >> > > > DR6=ffff0ff0 DR7=00000400
> > > >> > > > EFER=0000000000000000
> > > >> > > > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
> > > >> > > > FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
> > > >> > > > FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
> > > >> > > > FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
> > > >> > > > FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
> > > >> > > > XMM00=00000000000000000000000000000000
> > > >> > > > XMM01=00000000000000000000000000000000
> > > >> > > > XMM02=00000000000000000000000000000000
> > > >> > > > XMM03=00000000000000000000000000000000
> > > >> > > > XMM04=00000000000000000000000000000000
> > > >> > > > XMM05=00000000000000000000000000000000
> > > >> > > > XMM06=00000000000000000000000000000000
> > > >> > > > XMM07=00000000000000000000000000000000
> > > >> > > > CPU #1:
> > > >> > > > EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
> > > >> > > > ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
> > > >> > > > EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=1
> > > >> > > > ES =0000 00000000 0000ffff 00009300
> > > >> > > > CS =f000 ffff0000 0000ffff 00009b00
> > > >> > > > SS =0000 00000000 0000ffff 00009300
> > > >> > > > DS =0000 00000000 0000ffff 00009300
> > > >> > > > FS =0000 00000000 0000ffff 00009300
> > > >> > > > GS =0000 00000000 0000ffff 00009300
> > > >> > > > LDT=0000 00000000 0000ffff 00008200
> > > >> > > > TR =0000 00000000 0000ffff 00008b00
> > > >> > > > GDT=     00000000 0000ffff
> > > >> > > > IDT=     00000000 0000ffff
> > > >> > > > CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
> > > >> > > > DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
> > > >> > > > DR6=ffff0ff0 DR7=00000400
> > > >> > > > EFER=0000000000000000
> > > >> > > > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
> > > >> > > > FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
> > > >> > > > FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
> > > >> > > > FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
> > > >> > > > FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
> > > >> > > > XMM00=00000000000000000000000000000000
> > > >> > > > XMM01=00000000000000000000000000000000
> > > >> > > > XMM02=00000000000000000000000000000000
> > > >> > > > XMM03=00000000000000000000000000000000
> > > >> > > > XMM04=00000000000000000000000000000000
> > > >> > > > XMM05=00000000000000000000000000000000
> > > >> > > > XMM06=00000000000000000000000000000000
> > > >> > > > XMM07=00000000000000000000000000000000
> > > >> > > >
> > > >> > > > ###########################################################
> > > >> > > > /etc/default/grub
> > > >> > > > GRUB_DEFAULT="Xen 4.3-amd64"
> > > >> > > > GRUB_HIDDEN_TIMEOUT=0
> > > >> > > > GRUB_HIDDEN_TIMEOUT_QUIET=true
> > > >> > > > GRUB_TIMEOUT=10
> > > >> > > > GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
> > > >> > > > GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
> > > >> > > > GRUB_CMDLINE_LINUX=""
> > > >> > > > # biosdevname=0
> > > >> > > > GRUB_CMDLINE_XEN="dom0_mem=1024M dom0_max_vcpus=1"
> > > >> > >
> > > >> > > > _______________________________________________
> > > >> > > > Xen-devel mailing list
> > > >> > > > Xen-devel@lists.xen.org
> > > >> > > > http://lists.xen.org/xen-devel
> > > >> > >
> > > >> > >
> > > >>
> > > >
> > > >
> >

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Xen 4.3 PCI passthrough possible bug
  2014-02-07 21:01               ` Konrad Rzeszutek Wilk
@ 2014-02-07 21:29                 ` Mike Neiderhauser
  2014-02-07 21:49                   ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 22+ messages in thread
From: Mike Neiderhauser @ 2014-02-07 21:29 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 31192 bytes --]

I did not use the patch.  I was assuming it was already patched given
previous email.  Is the patch for qemu source or xen source?


On Fri, Feb 7, 2014 at 4:01 PM, Konrad Rzeszutek Wilk <
konrad.wilk@oracle.com> wrote:

> On Fri, Feb 07, 2014 at 03:45:19PM -0500, Mike Neiderhauser wrote:
> > Ok. I started ran the initscripts and now xl works.
> >
> > However, I still see the same behavior as before:
> >
>
> Did you use the patch that was mentioned in the URL?
>
> > root@fiat:~# xl create /etc/xen/ubuntu-hvm-0.cfg
> > Parsing config from /etc/xen/ubuntu-hvm-0.cfg
> > libxl: error: libxl_qmp.c:448:qmp_next: Socket read error: Connection
> reset
> > by peer
> > libxl: error: libxl_qmp.c:691:libxl__qmp_initialize: Connection error:
> > Connection refused
> > libxl: error: libxl_qmp.c:691:libxl__qmp_initialize: Connection error:
> > Connection refused
> > libxl: error: libxl_qmp.c:691:libxl__qmp_initialize: Connection error:
> > Connection refused
> > root@fiat:~# xl list
> > Name                                        ID   Mem VCPUs State Time(s)
> > Domain-0                                     0  1024     1     r-----
> >  15.2
> > ubuntu-hvm-0                                 1  1025     1     ------
> > 0.0
> >
> > (XEN)  Dom0 kernel: 64-bit, PAE, lsb, paddr 0x1000000 -> 0x23f3000
> > (XEN) PHYSICAL MEMORY ARRANGEMENT:
> > (XEN)  Dom0 alloc.:   0000000134000000->0000000138000000 (233690 pages to
> > be allocated)
> > (XEN)  Init. ramdisk: 000000013d0da000->000000013ffffe00
> > (XEN) VIRTUAL MEMORY ARRANGEMENT:
> > (XEN)  Loaded kernel: ffffffff81000000->ffffffff823f3000
> > (XEN)  Init. ramdisk: ffffffff823f3000->ffffffff85318e00
> > (XEN)  Phys-Mach map: ffffffff85319000->ffffffff85519000
> > (XEN)  Start info:    ffffffff85519000->ffffffff855194b4
> > (XEN)  Page tables:   ffffffff8551a000->ffffffff85549000
> > (XEN)  Boot stack:    ffffffff85549000->ffffffff8554a000
> > (XEN)  TOTAL:         ffffffff80000000->ffffffff85800000
> > (XEN)  ENTRY ADDRESS: ffffffff81d261e0
> > (XEN) Dom0 has maximum 1 VCPUs
> > (XEN) elf_load_binary: phdr 0 at 0xffffffff81000000 -> 0xffffffff81b2f000
> > (XEN) elf_load_binary: phdr 1 at 0xffffffff81c00000 -> 0xffffffff81d0f0f0
> > (XEN) elf_load_binary: phdr 2 at 0xffffffff81d10000 -> 0xffffffff81d252c0
> > (XEN) elf_load_binary: phdr 3 at 0xffffffff81d26000 -> 0xffffffff81e6d000
> > (XEN) Scrubbing Free RAM: .............................done.
> > (XEN) Initial low memory virq threshold set at 0x4000 pages.
> > (XEN) Std. Loglevel: All
> > (XEN) Guest Loglevel: All
> > (XEN) Xen is relinquishing VGA console.
> > (XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input
> > to Xen)
> > (XEN) Freed 260kB init memory.
> > (XEN) PCI add device 0000:00:00.0
> > (XEN) PCI add device 0000:00:01.0
> > (XEN) PCI add device 0000:00:1a.0
> > (XEN) PCI add device 0000:00:1c.0
> > (XEN) PCI add device 0000:00:1d.0
> > (XEN) PCI add device 0000:00:1e.0
> > (XEN) PCI add device 0000:00:1f.0
> > (XEN) PCI add device 0000:00:1f.2
> > (XEN) PCI add device 0000:00:1f.3
> > (XEN) PCI add device 0000:01:00.0
> > (XEN) PCI add device 0000:02:02.0
> > (XEN) PCI add device 0000:02:04.0
> > (XEN) PCI add device 0000:03:00.0
> > (XEN) PCI add device 0000:03:00.1
> > (XEN) PCI add device 0000:04:00.0
> > (XEN) PCI add device 0000:04:00.1
> > (XEN) PCI add device 0000:05:00.0
> > (XEN) PCI add device 0000:05:00.1
> > (XEN) PCI add device 0000:06:03.0
> > (XEN) page_alloc.c:1460:d0 Over-allocation for domain 1: 262401 > 262400
> > (XEN) memory.c:158:d0 Could not allocate order=0 extent: id=1 memflags=0
> > (200 of 1024)
> > (d1) HVM Loader
> > (d1) Detected Xen v4.4-rc2
> > (d1) Xenbus rings @0xfeffc000, event channel 4
> > (d1) System requested SeaBIOS
> > (d1) CPU speed is 3093 MHz
> > (d1) Relocating guest memory for lowmem MMIO space disabled
> >
> >
> > Excerpt from /var/log/xen/*
> > qemu: hardware error: xen: failed to populate ram at 40050000
> >
> >
> > On Fri, Feb 7, 2014 at 3:39 PM, Konrad Rzeszutek Wilk <
> > konrad.wilk@oracle.com> wrote:
> >
> > > On Fri, Feb 07, 2014 at 03:36:49PM -0500, Mike Neiderhauser wrote:
> > > > I was able to compile and install xen4.4 RC3 on my host, however I am
> > > > getting the error:
> > > >
> > > > root@fiat:~/git/xen# xl list
> > > > xc: error: Could not obtain handle on privileged command interface
> (2 =
> > > No
> > > > such file or directory): Internal error
> > > > libxl: error: libxl.c:92:libxl_ctx_alloc: cannot open libxc handle:
> No
> > > such
> > > > file or directory
> > > > cannot init xl context
> > > >
> > > > I've google searched for this and an article appears, but is not the
> same
> > > > (as far as I can tell).  Running any xl command generates a similar
> > > error.
> > > >
> > > > What can I do to fix this?
> > >
> > >
> > > You need to run the initscripts for Xen. I don't know what your distro
> is,
> > > but
> > > they are usually put in /etc/init.d/rc.d/xen*
> > >
> > >
> > > >
> > > > Regards
> > > >
> > > >
> > > > On Fri, Feb 7, 2014 at 1:40 PM, Mike Neiderhauser <
> > > > mikeneiderhauser@gmail.com> wrote:
> > > >
> > > > > Much. Do I need to install from src or is there a package I can
> > > install.
> > > > >
> > > > > Regards
> > > > >
> > > > >
> > > > > On Fri, Feb 7, 2014 at 1:30 PM, Konrad Rzeszutek Wilk <
> > > > > konrad.wilk@oracle.com> wrote:
> > > > >
> > > > >> On Fri, Feb 07, 2014 at 10:53:22AM -0500, Mike Neiderhauser wrote:
> > > > >> > I did not.  I do not have the toolchain installed.  I may have
> time
> > > > >> later
> > > > >> > today to try the patch.  Are there any specific instructions on
> how
> > > to
> > > > >> > patch the src, compile and install?
> > > > >>
> > > > >> There actually should be a new version of Xen 4.4-rcX which will
> have
> > > the
> > > > >> fix. That might be easier for you?
> > > > >> >
> > > > >> > Regards
> > > > >> >
> > > > >> >
> > > > >> > On Fri, Feb 7, 2014 at 10:25 AM, Konrad Rzeszutek Wilk <
> > > > >> > konrad.wilk@oracle.com> wrote:
> > > > >> >
> > > > >> > > On Thu, Feb 06, 2014 at 09:39:37AM -0500, Mike Neiderhauser
> wrote:
> > > > >> > > > Hi all,
> > > > >> > > >
> > > > >> > > > I am attempting to do a pci passthrough of an Intel ET card
> > > (4x1G
> > > > >> NIC)
> > > > >> > > to a
> > > > >> > > > HVM.  I have been attempting to resolve this issue on the
> > > xen-users
> > > > >> list,
> > > > >> > > > but it was advised to post this issue to this list. (Initial
> > > > >> Message -
> > > > >> > > >
> > > > >> > >
> > > > >>
> > >
> http://lists.xenproject.org/archives/html/xen-users/2014-02/msg00036.html
> > > > >> )
> > > > >> > > >
> > > > >> > > > The machine I am using as host is a Dell Poweredge server
> with a
> > > > >> Xeon
> > > > >> > > > E31220 with 4GB of ram.
> > > > >> > > >
> > > > >> > > > The possible bug is the following:
> > > > >> > > > root@fiat:/var/log/xen# cat qemu-dm-ubuntu-hvm-0.log
> > > > >> > > > char device redirected to /dev/pts/5 (label serial0)
> > > > >> > > > qemu: hardware error: xen: failed to populate ram at
> 40030000
> > > > >> > > > ....
> > > > >> > > >
> > > > >> > > > I believe it may be similar to this thread
> > > > >> > > >
> > > > >> > >
> > > > >>
> > >
> http://markmail.org/message/3zuiojywempoorxj#query:+page:1+mid:gul34vbe4uyog2d4+state:results
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > Additional info that may be helpful is below.
> > > > >> > >
> > > > >> > > Did you try the patch?
> > > > >> > > >
> > > > >> > > > Please let me know if you need any additional information.
> > > > >> > > >
> > > > >> > > > Thanks in advance for any help provided!
> > > > >> > > > Regards
> > > > >> > > >
> > > > >> > > > ###########################################################
> > > > >> > > > root@fiat:~# cat /etc/xen/ubuntu-hvm-0.cfg
> > > > >> > > > ###########################################################
> > > > >> > > > # Configuration file for Xen HVM
> > > > >> > > >
> > > > >> > > > # HVM Name (as appears in 'xl list')
> > > > >> > > > name="ubuntu-hvm-0"
> > > > >> > > > # HVM Build settings (+ hardware)
> > > > >> > > > #kernel = "/usr/lib/xen-4.3/boot/hvmloader"
> > > > >> > > > builder='hvm'
> > > > >> > > > device_model='qemu-dm'
> > > > >> > > > memory=1024
> > > > >> > > > vcpus=2
> > > > >> > > >
> > > > >> > > > # Virtual Interface
> > > > >> > > > # Network bridge to USB NIC
> > > > >> > > > vif=['bridge=xenbr0']
> > > > >> > > >
> > > > >> > > > ################### PCI PASSTHROUGH ###################
> > > > >> > > > # PCI Permissive mode toggle
> > > > >> > > > #pci_permissive=1
> > > > >> > > >
> > > > >> > > > # All PCI Devices
> > > > >> > > > #pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1', '05:00.0',
> > > > >> '05:00.1']
> > > > >> > > >
> > > > >> > > > # First two ports on Intel 4x1G NIC
> > > > >> > > > #pci=['03:00.0','03:00.1']
> > > > >> > > >
> > > > >> > > > # Last two ports on Intel 4x1G NIC
> > > > >> > > > #pci=['04:00.0', '04:00.1']
> > > > >> > > >
> > > > >> > > > # All ports on Intel 4x1G NIC
> > > > >> > > > pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1']
> > > > >> > > >
> > > > >> > > > # Brodcom 2x1G NIC
> > > > >> > > > #pci=['05:00.0', '05:00.1']
> > > > >> > > > ################### PCI PASSTHROUGH ###################
> > > > >> > > >
> > > > >> > > > # HVM Disks
> > > > >> > > > # Hard disk only
> > > > >> > > > # Boot from HDD first ('c')
> > > > >> > > > boot="c"
> > > > >> > > > disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w']
> > > > >> > > >
> > > > >> > > > # Hard disk with ISO
> > > > >> > > > # Boot from ISO first ('d')
> > > > >> > > > #boot="d"
> > > > >> > > > #disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w',
> > > > >> > > > 'file:/root/ubuntu-12.04.3-server-amd64.iso,hdc:cdrom,r']
> > > > >> > > >
> > > > >> > > > # ACPI Enable
> > > > >> > > > acpi=1
> > > > >> > > > # HVM Event Modes
> > > > >> > > > on_poweroff='destroy'
> > > > >> > > > on_reboot='restart'
> > > > >> > > > on_crash='restart'
> > > > >> > > >
> > > > >> > > > # Serial Console Configuration (Xen Console)
> > > > >> > > > sdl=0
> > > > >> > > > serial='pty'
> > > > >> > > >
> > > > >> > > > # VNC Configuration
> > > > >> > > > # Only reacable from localhost
> > > > >> > > > vnc=1
> > > > >> > > > vnclisten="0.0.0.0"
> > > > >> > > > vncpasswd=""
> > > > >> > > >
> > > > >> > > > ###########################################################
> > > > >> > > > Copied for xen-users list
> > > > >> > > > ###########################################################
> > > > >> > > >
> > > > >> > > > It appears that it cannot obtain the RAM mapping for this
> PCI
> > > > >> device.
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > I rebooted the Host.  I ran assigned pci devices to
> pciback. The
> > > > >> output
> > > > >> > > > looks like:
> > > > >> > > > root@fiat:~# ./dev_mgmt.sh
> > > > >> > > > Loading Kernel Module 'xen-pciback'
> > > > >> > > > Calling function pciback_dev for:
> > > > >> > > > PCI DEVICE 0000:03:00.0
> > > > >> > > > Unbinding 0000:03:00.0 from igb
> > > > >> > > > Binding 0000:03:00.0 to pciback
> > > > >> > > >
> > > > >> > > > PCI DEVICE 0000:03:00.1
> > > > >> > > > Unbinding 0000:03:00.1 from igb
> > > > >> > > > Binding 0000:03:00.1 to pciback
> > > > >> > > >
> > > > >> > > > PCI DEVICE 0000:04:00.0
> > > > >> > > > Unbinding 0000:04:00.0 from igb
> > > > >> > > > Binding 0000:04:00.0 to pciback
> > > > >> > > >
> > > > >> > > > PCI DEVICE 0000:04:00.1
> > > > >> > > > Unbinding 0000:04:00.1 from igb
> > > > >> > > > Binding 0000:04:00.1 to pciback
> > > > >> > > >
> > > > >> > > > PCI DEVICE 0000:05:00.0
> > > > >> > > > Unbinding 0000:05:00.0 from bnx2
> > > > >> > > > Binding 0000:05:00.0 to pciback
> > > > >> > > >
> > > > >> > > > PCI DEVICE 0000:05:00.1
> > > > >> > > > Unbinding 0000:05:00.1 from bnx2
> > > > >> > > > Binding 0000:05:00.1 to pciback
> > > > >> > > >
> > > > >> > > > Listing PCI Devices Available to Xen
> > > > >> > > > 0000:03:00.0
> > > > >> > > > 0000:03:00.1
> > > > >> > > > 0000:04:00.0
> > > > >> > > > 0000:04:00.1
> > > > >> > > > 0000:05:00.0
> > > > >> > > > 0000:05:00.1
> > > > >> > > >
> > > > >> > > > ###########################################################
> > > > >> > > > root@fiat:~# xl -vvv create /etc/xen/ubuntu-hvm-0.cfg
> > > > >> > > > Parsing config from /etc/xen/ubuntu-hvm-0.cfg
> > > > >> > > > WARNING: ignoring device_model directive.
> > > > >> > > > WARNING: Use "device_model_override" instead if you really
> want
> > > a
> > > > >> > > > non-default device_model
> > > > >> > > > libxl: debug: libxl_create.c:1230:do_domain_create: ao
> > > 0x210c360:
> > > > >> create:
> > > > >> > > > how=(nil) callback=(nil) poller=0x210c3c0
> > > > >> > > > libxl: debug:
> libxl_device.c:257:libxl__device_disk_set_backend:
> > > > >> Disk
> > > > >> > > > vdev=hda spec.backend=unknown
> > > > >> > > > libxl: debug:
> libxl_device.c:296:libxl__device_disk_set_backend:
> > > > >> Disk
> > > > >> > > > vdev=hda, using backend phy
> > > > >> > > > libxl: debug: libxl_create.c:675:initiate_domain_create:
> running
> > > > >> > > bootloader
> > > > >> > > > libxl: debug: libxl_bootloader.c:321:libxl__bootloader_run:
> not
> > > a PV
> > > > >> > > > domain, skipping bootloader
> > > > >> > > > libxl: debug:
> libxl_event.c:608:libxl__ev_xswatch_deregister:
> > > watch
> > > > >> > > > w=0x210c728: deregister unregistered
> > > > >> > > > libxl: debug: libxl_numa.c:475:libxl__get_numa_candidate:
> New
> > > best
> > > > >> NUMA
> > > > >> > > > placement candidate found: nr_nodes=1, nr_cpus=4,
> nr_vcpus=3,
> > > > >> > > > free_memkb=2980
> > > > >> > > > libxl: detail: libxl_dom.c:195:numa_place_domain: NUMA
> placement
> > > > >> > > candidate
> > > > >> > > > with 1 nodes, 4 cpus and 2980 KB free selected
> > > > >> > > > xc: detail: elf_parse_binary: phdr: paddr=0x100000
> memsz=0xa69a4
> > > > >> > > > xc: detail: elf_parse_binary: memory: 0x100000 -> 0x1a69a4
> > > > >> > > > xc: info: VIRTUAL MEMORY ARRANGEMENT:
> > > > >> > > >   Loader:        0000000000100000->00000000001a69a4
> > > > >> > > >   Modules:       0000000000000000->0000000000000000
> > > > >> > > >   TOTAL:         0000000000000000->000000003f800000
> > > > >> > > >   ENTRY ADDRESS: 0000000000100608
> > > > >> > > > xc: info: PHYSICAL MEMORY ALLOCATION:
> > > > >> > > >   4KB PAGES: 0x0000000000000200
> > > > >> > > >   2MB PAGES: 0x00000000000001fb
> > > > >> > > >   1GB PAGES: 0x0000000000000000
> > > > >> > > > xc: detail: elf_load_binary: phdr 0 at 0x7f022c779000 ->
> > > > >> 0x7f022c81682d
> > > > >> > > > libxl: debug:
> libxl_device.c:257:libxl__device_disk_set_backend:
> > > > >> Disk
> > > > >> > > > vdev=hda spec.backend=phy
> > > > >> > > > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register:
> > > watch
> > > > >> > > > w=0x2112f48 wpath=/local/domain/0/backend/vbd/2/768/state
> > > token=3/0:
> > > > >> > > > register slotnum=3
> > > > >> > > > libxl: debug: libxl_create.c:1243:do_domain_create: ao
> > > 0x210c360:
> > > > >> > > > inprogress: poller=0x210c3c0, flags=i
> > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> > > w=0x2112f48
> > > > >> > > > wpath=/local/domain/0/backend/vbd/2/768/state token=3/0:
> event
> > > > >> > > > epath=/local/domain/0/backend/vbd/2/768/state
> > > > >> > > > libxl: debug: libxl_event.c:647:devstate_watch_callback:
> backend
> > > > >> > > > /local/domain/0/backend/vbd/2/768/state wanted state 2 still
> > > waiting
> > > > >> > > state 1
> > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> > > w=0x2112f48
> > > > >> > > > wpath=/local/domain/0/backend/vbd/2/768/state token=3/0:
> event
> > > > >> > > > epath=/local/domain/0/backend/vbd/2/768/state
> > > > >> > > > libxl: debug: libxl_event.c:643:devstate_watch_callback:
> backend
> > > > >> > > > /local/domain/0/backend/vbd/2/768/state wanted state 2 ok
> > > > >> > > > libxl: debug:
> libxl_event.c:596:libxl__ev_xswatch_deregister:
> > > watch
> > > > >> > > > w=0x2112f48 wpath=/local/domain/0/backend/vbd/2/768/state
> > > token=3/0:
> > > > >> > > > deregister slotnum=3
> > > > >> > > > libxl: debug:
> libxl_event.c:608:libxl__ev_xswatch_deregister:
> > > watch
> > > > >> > > > w=0x2112f48: deregister unregistered
> > > > >> > > > libxl: debug: libxl_device.c:959:device_hotplug: calling
> hotplug
> > > > >> script:
> > > > >> > > > /etc/xen/scripts/block add
> > > > >> > > > libxl: debug: libxl_dm.c:1206:libxl__spawn_local_dm:
> Spawning
> > > > >> > > device-model
> > > > >> > > > /usr/bin/qemu-system-i386 with arguments:
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > >> > > > /usr/bin/qemu-system-i386
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > -xen-domid
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   2
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> -chardev
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > >> > > >
> socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-2,server,nowait
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -mon
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > >> > > > chardev=libxl-cmd,mode=control
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -name
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > ubuntu-hvm-0
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -vnc
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > 0.0.0.0:0
> > > > >> ,to=99
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> -global
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > >> isa-fdc.driveA=
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> -serial
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   pty
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -vga
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> cirrus
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> -global
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > >> vga.vram_size_mb=8
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -boot
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> order=c
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -smp
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > 2,maxcpus=2
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> -device
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > >> > > > rtl8139,id=nic0,netdev=net0,mac=00:16:3e:23:44:2c
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> -netdev
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > >> > > > type=tap,id=net0,ifname=vif2.0-emu,script=no,downscript=no
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -M
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   xenfv
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -m
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   1016
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> -drive
> > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > >> > > >
> > > > >> > >
> > > > >>
> > >
> file=/dev/ubuntu-vg/ubuntu-hvm-0,if=ide,index=0,media=disk,format=raw,cache=writeback
> > > > >> > > > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register:
> > > watch
> > > > >> > > > w=0x210c960 wpath=/local/domain/0/device-model/2/state
> > > token=3/1:
> > > > >> > > register
> > > > >> > > > slotnum=3
> > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> > > w=0x210c960
> > > > >> > > > wpath=/local/domain/0/device-model/2/state token=3/1: event
> > > > >> > > > epath=/local/domain/0/device-model/2/state
> > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> > > w=0x210c960
> > > > >> > > > wpath=/local/domain/0/device-model/2/state token=3/1: event
> > > > >> > > > epath=/local/domain/0/device-model/2/state
> > > > >> > > > libxl: debug:
> libxl_event.c:596:libxl__ev_xswatch_deregister:
> > > watch
> > > > >> > > > w=0x210c960 wpath=/local/domain/0/device-model/2/state
> > > token=3/1:
> > > > >> > > > deregister slotnum=3
> > > > >> > > > libxl: debug:
> libxl_event.c:608:libxl__ev_xswatch_deregister:
> > > watch
> > > > >> > > > w=0x210c960: deregister unregistered
> > > > >> > > > libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize:
> connected
> > > to
> > > > >> > > > /var/run/xen/qmp-libxl-2
> > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message
> > > type: qmp
> > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> > > command: '{
> > > > >> > > >     "execute": "qmp_capabilities",
> > > > >> > > >     "id": 1
> > > > >> > > > }
> > > > >> > > > '
> > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message
> type:
> > > > >> return
> > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> > > command: '{
> > > > >> > > >     "execute": "query-chardev",
> > > > >> > > >     "id": 2
> > > > >> > > > }
> > > > >> > > > '
> > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message
> type:
> > > > >> return
> > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> > > command: '{
> > > > >> > > >     "execute": "change",
> > > > >> > > >     "id": 3,
> > > > >> > > >     "arguments": {
> > > > >> > > >         "device": "vnc",
> > > > >> > > >         "target": "password",
> > > > >> > > >         "arg": ""
> > > > >> > > >     }
> > > > >> > > > }
> > > > >> > > > '
> > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message
> type:
> > > > >> return
> > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> > > command: '{
> > > > >> > > >     "execute": "query-vnc",
> > > > >> > > >     "id": 4
> > > > >> > > > }
> > > > >> > > > '
> > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message
> type:
> > > > >> return
> > > > >> > > > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register:
> > > watch
> > > > >> > > > w=0x210e8a8 wpath=/local/domain/0/backend/vif/2/0/state
> > > token=3/2:
> > > > >> > > register
> > > > >> > > > slotnum=3
> > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> > > w=0x210e8a8
> > > > >> > > > wpath=/local/domain/0/backend/vif/2/0/state token=3/2: event
> > > > >> > > > epath=/local/domain/0/backend/vif/2/0/state
> > > > >> > > > libxl: debug: libxl_event.c:647:devstate_watch_callback:
> backend
> > > > >> > > > /local/domain/0/backend/vif/2/0/state wanted state 2 still
> > > waiting
> > > > >> state
> > > > >> > > 1
> > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> > > w=0x210e8a8
> > > > >> > > > wpath=/local/domain/0/backend/vif/2/0/state token=3/2: event
> > > > >> > > > epath=/local/domain/0/backend/vif/2/0/state
> > > > >> > > > libxl: debug: libxl_event.c:643:devstate_watch_callback:
> backend
> > > > >> > > > /local/domain/0/backend/vif/2/0/state wanted state 2 ok
> > > > >> > > > libxl: debug:
> libxl_event.c:596:libxl__ev_xswatch_deregister:
> > > watch
> > > > >> > > > w=0x210e8a8 wpath=/local/domain/0/backend/vif/2/0/state
> > > token=3/2:
> > > > >> > > > deregister slotnum=3
> > > > >> > > > libxl: debug:
> libxl_event.c:608:libxl__ev_xswatch_deregister:
> > > watch
> > > > >> > > > w=0x210e8a8: deregister unregistered
> > > > >> > > > libxl: debug: libxl_device.c:959:device_hotplug: calling
> hotplug
> > > > >> script:
> > > > >> > > > /etc/xen/scripts/vif-bridge online
> > > > >> > > > libxl: debug: libxl_device.c:959:device_hotplug: calling
> hotplug
> > > > >> script:
> > > > >> > > > /etc/xen/scripts/vif-bridge add
> > > > >> > > > libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize:
> connected
> > > to
> > > > >> > > > /var/run/xen/qmp-libxl-2
> > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message
> > > type: qmp
> > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> > > command: '{
> > > > >> > > >     "execute": "qmp_capabilities",
> > > > >> > > >     "id": 1
> > > > >> > > > }
> > > > >> > > > '
> > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message
> type:
> > > > >> return
> > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> > > command: '{
> > > > >> > > >     "execute": "device_add",
> > > > >> > > >     "id": 2,
> > > > >> > > >     "arguments": {
> > > > >> > > >         "driver": "xen-pci-passthrough",
> > > > >> > > >         "id": "pci-pt-03_00.0",
> > > > >> > > >         "hostaddr": "0000:03:00.0"
> > > > >> > > >     }
> > > > >> > > > }
> > > > >> > > > '
> > > > >> > > > libxl: error: libxl_qmp.c:454:qmp_next: Socket read error:
> > > > >> Connection
> > > > >> > > reset
> > > > >> > > > by peer
> > > > >> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize:
> Connection
> > > > >> error:
> > > > >> > > > Connection refused
> > > > >> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize:
> Connection
> > > > >> error:
> > > > >> > > > Connection refused
> > > > >> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize:
> Connection
> > > > >> error:
> > > > >> > > > Connection refused
> > > > >> > > > libxl: debug: libxl_pci.c:81:libxl__create_pci_backend:
> > > Creating pci
> > > > >> > > backend
> > > > >> > > > libxl: debug: libxl_event.c:1737:libxl__ao_progress_report:
> ao
> > > > >> 0x210c360:
> > > > >> > > > progress report: ignored
> > > > >> > > > libxl: debug: libxl_event.c:1569:libxl__ao_complete: ao
> > > 0x210c360:
> > > > >> > > > complete, rc=0
> > > > >> > > > libxl: debug: libxl_event.c:1541:libxl__ao__destroy: ao
> > > 0x210c360:
> > > > >> > > destroy
> > > > >> > > > Daemon running with PID 3214
> > > > >> > > > xc: debug: hypercall buffer: total allocations:793 total
> > > > >> releases:793
> > > > >> > > > xc: debug: hypercall buffer: current allocations:0 maximum
> > > > >> allocations:4
> > > > >> > > > xc: debug: hypercall buffer: cache current size:4
> > > > >> > > > xc: debug: hypercall buffer: cache hits:785 misses:4
> toobig:4
> > > > >> > > >
> > > > >> > > > ###########################################################
> > > > >> > > > root@fiat:/var/log/xen# cat qemu-dm-ubuntu-hvm-0.log
> > > > >> > > > char device redirected to /dev/pts/5 (label serial0)
> > > > >> > > > qemu: hardware error: xen: failed to populate ram at
> 40030000
> > > > >> > > > CPU #0:
> > > > >> > > > EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
> > > > >> > > > ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
> > > > >> > > > EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0
> HLT=1
> > > > >> > > > ES =0000 00000000 0000ffff 00009300
> > > > >> > > > CS =f000 ffff0000 0000ffff 00009b00
> > > > >> > > > SS =0000 00000000 0000ffff 00009300
> > > > >> > > > DS =0000 00000000 0000ffff 00009300
> > > > >> > > > FS =0000 00000000 0000ffff 00009300
> > > > >> > > > GS =0000 00000000 0000ffff 00009300
> > > > >> > > > LDT=0000 00000000 0000ffff 00008200
> > > > >> > > > TR =0000 00000000 0000ffff 00008b00
> > > > >> > > > GDT=     00000000 0000ffff
> > > > >> > > > IDT=     00000000 0000ffff
> > > > >> > > > CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
> > > > >> > > > DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
> > > > >> > > > DR6=ffff0ff0 DR7=00000400
> > > > >> > > > EFER=0000000000000000
> > > > >> > > > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
> > > > >> > > > FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
> > > > >> > > > FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
> > > > >> > > > FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
> > > > >> > > > FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
> > > > >> > > > XMM00=00000000000000000000000000000000
> > > > >> > > > XMM01=00000000000000000000000000000000
> > > > >> > > > XMM02=00000000000000000000000000000000
> > > > >> > > > XMM03=00000000000000000000000000000000
> > > > >> > > > XMM04=00000000000000000000000000000000
> > > > >> > > > XMM05=00000000000000000000000000000000
> > > > >> > > > XMM06=00000000000000000000000000000000
> > > > >> > > > XMM07=00000000000000000000000000000000
> > > > >> > > > CPU #1:
> > > > >> > > > EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
> > > > >> > > > ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
> > > > >> > > > EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0
> HLT=1
> > > > >> > > > ES =0000 00000000 0000ffff 00009300
> > > > >> > > > CS =f000 ffff0000 0000ffff 00009b00
> > > > >> > > > SS =0000 00000000 0000ffff 00009300
> > > > >> > > > DS =0000 00000000 0000ffff 00009300
> > > > >> > > > FS =0000 00000000 0000ffff 00009300
> > > > >> > > > GS =0000 00000000 0000ffff 00009300
> > > > >> > > > LDT=0000 00000000 0000ffff 00008200
> > > > >> > > > TR =0000 00000000 0000ffff 00008b00
> > > > >> > > > GDT=     00000000 0000ffff
> > > > >> > > > IDT=     00000000 0000ffff
> > > > >> > > > CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
> > > > >> > > > DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
> > > > >> > > > DR6=ffff0ff0 DR7=00000400
> > > > >> > > > EFER=0000000000000000
> > > > >> > > > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
> > > > >> > > > FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
> > > > >> > > > FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
> > > > >> > > > FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
> > > > >> > > > FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
> > > > >> > > > XMM00=00000000000000000000000000000000
> > > > >> > > > XMM01=00000000000000000000000000000000
> > > > >> > > > XMM02=00000000000000000000000000000000
> > > > >> > > > XMM03=00000000000000000000000000000000
> > > > >> > > > XMM04=00000000000000000000000000000000
> > > > >> > > > XMM05=00000000000000000000000000000000
> > > > >> > > > XMM06=00000000000000000000000000000000
> > > > >> > > > XMM07=00000000000000000000000000000000
> > > > >> > > >
> > > > >> > > > ###########################################################
> > > > >> > > > /etc/default/grub
> > > > >> > > > GRUB_DEFAULT="Xen 4.3-amd64"
> > > > >> > > > GRUB_HIDDEN_TIMEOUT=0
> > > > >> > > > GRUB_HIDDEN_TIMEOUT_QUIET=true
> > > > >> > > > GRUB_TIMEOUT=10
> > > > >> > > > GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo
> Debian`
> > > > >> > > > GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
> > > > >> > > > GRUB_CMDLINE_LINUX=""
> > > > >> > > > # biosdevname=0
> > > > >> > > > GRUB_CMDLINE_XEN="dom0_mem=1024M dom0_max_vcpus=1"
> > > > >> > >
> > > > >> > > > _______________________________________________
> > > > >> > > > Xen-devel mailing list
> > > > >> > > > Xen-devel@lists.xen.org
> > > > >> > > > http://lists.xen.org/xen-devel
> > > > >> > >
> > > > >> > >
> > > > >>
> > > > >
> > > > >
> > >
>

[-- Attachment #1.2: Type: text/html, Size: 47300 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Xen 4.3 PCI passthrough possible bug
  2014-02-07 21:29                 ` Mike Neiderhauser
@ 2014-02-07 21:49                   ` Konrad Rzeszutek Wilk
  2014-02-08  1:16                     ` Mike Neiderhauser
  0 siblings, 1 reply; 22+ messages in thread
From: Konrad Rzeszutek Wilk @ 2014-02-07 21:49 UTC (permalink / raw)
  To: Mike Neiderhauser; +Cc: xen-devel

On Fri, Feb 07, 2014 at 04:29:18PM -0500, Mike Neiderhauser wrote:
> I did not use the patch.  I was assuming it was already patched given
> previous email.  Is the patch for qemu source or xen source?

It is for QEMU, but you are right - it should have been part
of QEMU if you got the latest version of Xen-unstable.

You didn't use some specific tag but just 'staging' ?

> 
> 
> On Fri, Feb 7, 2014 at 4:01 PM, Konrad Rzeszutek Wilk <
> konrad.wilk@oracle.com> wrote:
> 
> > On Fri, Feb 07, 2014 at 03:45:19PM -0500, Mike Neiderhauser wrote:
> > > Ok. I started ran the initscripts and now xl works.
> > >
> > > However, I still see the same behavior as before:
> > >
> >
> > Did you use the patch that was mentioned in the URL?
> >
> > > root@fiat:~# xl create /etc/xen/ubuntu-hvm-0.cfg
> > > Parsing config from /etc/xen/ubuntu-hvm-0.cfg
> > > libxl: error: libxl_qmp.c:448:qmp_next: Socket read error: Connection
> > reset
> > > by peer
> > > libxl: error: libxl_qmp.c:691:libxl__qmp_initialize: Connection error:
> > > Connection refused
> > > libxl: error: libxl_qmp.c:691:libxl__qmp_initialize: Connection error:
> > > Connection refused
> > > libxl: error: libxl_qmp.c:691:libxl__qmp_initialize: Connection error:
> > > Connection refused
> > > root@fiat:~# xl list
> > > Name                                        ID   Mem VCPUs State Time(s)
> > > Domain-0                                     0  1024     1     r-----
> > >  15.2
> > > ubuntu-hvm-0                                 1  1025     1     ------
> > > 0.0
> > >
> > > (XEN)  Dom0 kernel: 64-bit, PAE, lsb, paddr 0x1000000 -> 0x23f3000
> > > (XEN) PHYSICAL MEMORY ARRANGEMENT:
> > > (XEN)  Dom0 alloc.:   0000000134000000->0000000138000000 (233690 pages to
> > > be allocated)
> > > (XEN)  Init. ramdisk: 000000013d0da000->000000013ffffe00
> > > (XEN) VIRTUAL MEMORY ARRANGEMENT:
> > > (XEN)  Loaded kernel: ffffffff81000000->ffffffff823f3000
> > > (XEN)  Init. ramdisk: ffffffff823f3000->ffffffff85318e00
> > > (XEN)  Phys-Mach map: ffffffff85319000->ffffffff85519000
> > > (XEN)  Start info:    ffffffff85519000->ffffffff855194b4
> > > (XEN)  Page tables:   ffffffff8551a000->ffffffff85549000
> > > (XEN)  Boot stack:    ffffffff85549000->ffffffff8554a000
> > > (XEN)  TOTAL:         ffffffff80000000->ffffffff85800000
> > > (XEN)  ENTRY ADDRESS: ffffffff81d261e0
> > > (XEN) Dom0 has maximum 1 VCPUs
> > > (XEN) elf_load_binary: phdr 0 at 0xffffffff81000000 -> 0xffffffff81b2f000
> > > (XEN) elf_load_binary: phdr 1 at 0xffffffff81c00000 -> 0xffffffff81d0f0f0
> > > (XEN) elf_load_binary: phdr 2 at 0xffffffff81d10000 -> 0xffffffff81d252c0
> > > (XEN) elf_load_binary: phdr 3 at 0xffffffff81d26000 -> 0xffffffff81e6d000
> > > (XEN) Scrubbing Free RAM: .............................done.
> > > (XEN) Initial low memory virq threshold set at 0x4000 pages.
> > > (XEN) Std. Loglevel: All
> > > (XEN) Guest Loglevel: All
> > > (XEN) Xen is relinquishing VGA console.
> > > (XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input
> > > to Xen)
> > > (XEN) Freed 260kB init memory.
> > > (XEN) PCI add device 0000:00:00.0
> > > (XEN) PCI add device 0000:00:01.0
> > > (XEN) PCI add device 0000:00:1a.0
> > > (XEN) PCI add device 0000:00:1c.0
> > > (XEN) PCI add device 0000:00:1d.0
> > > (XEN) PCI add device 0000:00:1e.0
> > > (XEN) PCI add device 0000:00:1f.0
> > > (XEN) PCI add device 0000:00:1f.2
> > > (XEN) PCI add device 0000:00:1f.3
> > > (XEN) PCI add device 0000:01:00.0
> > > (XEN) PCI add device 0000:02:02.0
> > > (XEN) PCI add device 0000:02:04.0
> > > (XEN) PCI add device 0000:03:00.0
> > > (XEN) PCI add device 0000:03:00.1
> > > (XEN) PCI add device 0000:04:00.0
> > > (XEN) PCI add device 0000:04:00.1
> > > (XEN) PCI add device 0000:05:00.0
> > > (XEN) PCI add device 0000:05:00.1
> > > (XEN) PCI add device 0000:06:03.0
> > > (XEN) page_alloc.c:1460:d0 Over-allocation for domain 1: 262401 > 262400
> > > (XEN) memory.c:158:d0 Could not allocate order=0 extent: id=1 memflags=0
> > > (200 of 1024)
> > > (d1) HVM Loader
> > > (d1) Detected Xen v4.4-rc2
> > > (d1) Xenbus rings @0xfeffc000, event channel 4
> > > (d1) System requested SeaBIOS
> > > (d1) CPU speed is 3093 MHz
> > > (d1) Relocating guest memory for lowmem MMIO space disabled
> > >
> > >
> > > Excerpt from /var/log/xen/*
> > > qemu: hardware error: xen: failed to populate ram at 40050000
> > >
> > >
> > > On Fri, Feb 7, 2014 at 3:39 PM, Konrad Rzeszutek Wilk <
> > > konrad.wilk@oracle.com> wrote:
> > >
> > > > On Fri, Feb 07, 2014 at 03:36:49PM -0500, Mike Neiderhauser wrote:
> > > > > I was able to compile and install xen4.4 RC3 on my host, however I am
> > > > > getting the error:
> > > > >
> > > > > root@fiat:~/git/xen# xl list
> > > > > xc: error: Could not obtain handle on privileged command interface
> > (2 =
> > > > No
> > > > > such file or directory): Internal error
> > > > > libxl: error: libxl.c:92:libxl_ctx_alloc: cannot open libxc handle:
> > No
> > > > such
> > > > > file or directory
> > > > > cannot init xl context
> > > > >
> > > > > I've google searched for this and an article appears, but is not the
> > same
> > > > > (as far as I can tell).  Running any xl command generates a similar
> > > > error.
> > > > >
> > > > > What can I do to fix this?
> > > >
> > > >
> > > > You need to run the initscripts for Xen. I don't know what your distro
> > is,
> > > > but
> > > > they are usually put in /etc/init.d/rc.d/xen*
> > > >
> > > >
> > > > >
> > > > > Regards
> > > > >
> > > > >
> > > > > On Fri, Feb 7, 2014 at 1:40 PM, Mike Neiderhauser <
> > > > > mikeneiderhauser@gmail.com> wrote:
> > > > >
> > > > > > Much. Do I need to install from src or is there a package I can
> > > > install.
> > > > > >
> > > > > > Regards
> > > > > >
> > > > > >
> > > > > > On Fri, Feb 7, 2014 at 1:30 PM, Konrad Rzeszutek Wilk <
> > > > > > konrad.wilk@oracle.com> wrote:
> > > > > >
> > > > > >> On Fri, Feb 07, 2014 at 10:53:22AM -0500, Mike Neiderhauser wrote:
> > > > > >> > I did not.  I do not have the toolchain installed.  I may have
> > time
> > > > > >> later
> > > > > >> > today to try the patch.  Are there any specific instructions on
> > how
> > > > to
> > > > > >> > patch the src, compile and install?
> > > > > >>
> > > > > >> There actually should be a new version of Xen 4.4-rcX which will
> > have
> > > > the
> > > > > >> fix. That might be easier for you?
> > > > > >> >
> > > > > >> > Regards
> > > > > >> >
> > > > > >> >
> > > > > >> > On Fri, Feb 7, 2014 at 10:25 AM, Konrad Rzeszutek Wilk <
> > > > > >> > konrad.wilk@oracle.com> wrote:
> > > > > >> >
> > > > > >> > > On Thu, Feb 06, 2014 at 09:39:37AM -0500, Mike Neiderhauser
> > wrote:
> > > > > >> > > > Hi all,
> > > > > >> > > >
> > > > > >> > > > I am attempting to do a pci passthrough of an Intel ET card
> > > > (4x1G
> > > > > >> NIC)
> > > > > >> > > to a
> > > > > >> > > > HVM.  I have been attempting to resolve this issue on the
> > > > xen-users
> > > > > >> list,
> > > > > >> > > > but it was advised to post this issue to this list. (Initial
> > > > > >> Message -
> > > > > >> > > >
> > > > > >> > >
> > > > > >>
> > > >
> > http://lists.xenproject.org/archives/html/xen-users/2014-02/msg00036.html
> > > > > >> )
> > > > > >> > > >
> > > > > >> > > > The machine I am using as host is a Dell Poweredge server
> > with a
> > > > > >> Xeon
> > > > > >> > > > E31220 with 4GB of ram.
> > > > > >> > > >
> > > > > >> > > > The possible bug is the following:
> > > > > >> > > > root@fiat:/var/log/xen# cat qemu-dm-ubuntu-hvm-0.log
> > > > > >> > > > char device redirected to /dev/pts/5 (label serial0)
> > > > > >> > > > qemu: hardware error: xen: failed to populate ram at
> > 40030000
> > > > > >> > > > ....
> > > > > >> > > >
> > > > > >> > > > I believe it may be similar to this thread
> > > > > >> > > >
> > > > > >> > >
> > > > > >>
> > > >
> > http://markmail.org/message/3zuiojywempoorxj#query:+page:1+mid:gul34vbe4uyog2d4+state:results
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > Additional info that may be helpful is below.
> > > > > >> > >
> > > > > >> > > Did you try the patch?
> > > > > >> > > >
> > > > > >> > > > Please let me know if you need any additional information.
> > > > > >> > > >
> > > > > >> > > > Thanks in advance for any help provided!
> > > > > >> > > > Regards
> > > > > >> > > >
> > > > > >> > > > ###########################################################
> > > > > >> > > > root@fiat:~# cat /etc/xen/ubuntu-hvm-0.cfg
> > > > > >> > > > ###########################################################
> > > > > >> > > > # Configuration file for Xen HVM
> > > > > >> > > >
> > > > > >> > > > # HVM Name (as appears in 'xl list')
> > > > > >> > > > name="ubuntu-hvm-0"
> > > > > >> > > > # HVM Build settings (+ hardware)
> > > > > >> > > > #kernel = "/usr/lib/xen-4.3/boot/hvmloader"
> > > > > >> > > > builder='hvm'
> > > > > >> > > > device_model='qemu-dm'
> > > > > >> > > > memory=1024
> > > > > >> > > > vcpus=2
> > > > > >> > > >
> > > > > >> > > > # Virtual Interface
> > > > > >> > > > # Network bridge to USB NIC
> > > > > >> > > > vif=['bridge=xenbr0']
> > > > > >> > > >
> > > > > >> > > > ################### PCI PASSTHROUGH ###################
> > > > > >> > > > # PCI Permissive mode toggle
> > > > > >> > > > #pci_permissive=1
> > > > > >> > > >
> > > > > >> > > > # All PCI Devices
> > > > > >> > > > #pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1', '05:00.0',
> > > > > >> '05:00.1']
> > > > > >> > > >
> > > > > >> > > > # First two ports on Intel 4x1G NIC
> > > > > >> > > > #pci=['03:00.0','03:00.1']
> > > > > >> > > >
> > > > > >> > > > # Last two ports on Intel 4x1G NIC
> > > > > >> > > > #pci=['04:00.0', '04:00.1']
> > > > > >> > > >
> > > > > >> > > > # All ports on Intel 4x1G NIC
> > > > > >> > > > pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1']
> > > > > >> > > >
> > > > > >> > > > # Brodcom 2x1G NIC
> > > > > >> > > > #pci=['05:00.0', '05:00.1']
> > > > > >> > > > ################### PCI PASSTHROUGH ###################
> > > > > >> > > >
> > > > > >> > > > # HVM Disks
> > > > > >> > > > # Hard disk only
> > > > > >> > > > # Boot from HDD first ('c')
> > > > > >> > > > boot="c"
> > > > > >> > > > disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w']
> > > > > >> > > >
> > > > > >> > > > # Hard disk with ISO
> > > > > >> > > > # Boot from ISO first ('d')
> > > > > >> > > > #boot="d"
> > > > > >> > > > #disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w',
> > > > > >> > > > 'file:/root/ubuntu-12.04.3-server-amd64.iso,hdc:cdrom,r']
> > > > > >> > > >
> > > > > >> > > > # ACPI Enable
> > > > > >> > > > acpi=1
> > > > > >> > > > # HVM Event Modes
> > > > > >> > > > on_poweroff='destroy'
> > > > > >> > > > on_reboot='restart'
> > > > > >> > > > on_crash='restart'
> > > > > >> > > >
> > > > > >> > > > # Serial Console Configuration (Xen Console)
> > > > > >> > > > sdl=0
> > > > > >> > > > serial='pty'
> > > > > >> > > >
> > > > > >> > > > # VNC Configuration
> > > > > >> > > > # Only reacable from localhost
> > > > > >> > > > vnc=1
> > > > > >> > > > vnclisten="0.0.0.0"
> > > > > >> > > > vncpasswd=""
> > > > > >> > > >
> > > > > >> > > > ###########################################################
> > > > > >> > > > Copied for xen-users list
> > > > > >> > > > ###########################################################
> > > > > >> > > >
> > > > > >> > > > It appears that it cannot obtain the RAM mapping for this
> > PCI
> > > > > >> device.
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > I rebooted the Host.  I ran assigned pci devices to
> > pciback. The
> > > > > >> output
> > > > > >> > > > looks like:
> > > > > >> > > > root@fiat:~# ./dev_mgmt.sh
> > > > > >> > > > Loading Kernel Module 'xen-pciback'
> > > > > >> > > > Calling function pciback_dev for:
> > > > > >> > > > PCI DEVICE 0000:03:00.0
> > > > > >> > > > Unbinding 0000:03:00.0 from igb
> > > > > >> > > > Binding 0000:03:00.0 to pciback
> > > > > >> > > >
> > > > > >> > > > PCI DEVICE 0000:03:00.1
> > > > > >> > > > Unbinding 0000:03:00.1 from igb
> > > > > >> > > > Binding 0000:03:00.1 to pciback
> > > > > >> > > >
> > > > > >> > > > PCI DEVICE 0000:04:00.0
> > > > > >> > > > Unbinding 0000:04:00.0 from igb
> > > > > >> > > > Binding 0000:04:00.0 to pciback
> > > > > >> > > >
> > > > > >> > > > PCI DEVICE 0000:04:00.1
> > > > > >> > > > Unbinding 0000:04:00.1 from igb
> > > > > >> > > > Binding 0000:04:00.1 to pciback
> > > > > >> > > >
> > > > > >> > > > PCI DEVICE 0000:05:00.0
> > > > > >> > > > Unbinding 0000:05:00.0 from bnx2
> > > > > >> > > > Binding 0000:05:00.0 to pciback
> > > > > >> > > >
> > > > > >> > > > PCI DEVICE 0000:05:00.1
> > > > > >> > > > Unbinding 0000:05:00.1 from bnx2
> > > > > >> > > > Binding 0000:05:00.1 to pciback
> > > > > >> > > >
> > > > > >> > > > Listing PCI Devices Available to Xen
> > > > > >> > > > 0000:03:00.0
> > > > > >> > > > 0000:03:00.1
> > > > > >> > > > 0000:04:00.0
> > > > > >> > > > 0000:04:00.1
> > > > > >> > > > 0000:05:00.0
> > > > > >> > > > 0000:05:00.1
> > > > > >> > > >
> > > > > >> > > > ###########################################################
> > > > > >> > > > root@fiat:~# xl -vvv create /etc/xen/ubuntu-hvm-0.cfg
> > > > > >> > > > Parsing config from /etc/xen/ubuntu-hvm-0.cfg
> > > > > >> > > > WARNING: ignoring device_model directive.
> > > > > >> > > > WARNING: Use "device_model_override" instead if you really
> > want
> > > > a
> > > > > >> > > > non-default device_model
> > > > > >> > > > libxl: debug: libxl_create.c:1230:do_domain_create: ao
> > > > 0x210c360:
> > > > > >> create:
> > > > > >> > > > how=(nil) callback=(nil) poller=0x210c3c0
> > > > > >> > > > libxl: debug:
> > libxl_device.c:257:libxl__device_disk_set_backend:
> > > > > >> Disk
> > > > > >> > > > vdev=hda spec.backend=unknown
> > > > > >> > > > libxl: debug:
> > libxl_device.c:296:libxl__device_disk_set_backend:
> > > > > >> Disk
> > > > > >> > > > vdev=hda, using backend phy
> > > > > >> > > > libxl: debug: libxl_create.c:675:initiate_domain_create:
> > running
> > > > > >> > > bootloader
> > > > > >> > > > libxl: debug: libxl_bootloader.c:321:libxl__bootloader_run:
> > not
> > > > a PV
> > > > > >> > > > domain, skipping bootloader
> > > > > >> > > > libxl: debug:
> > libxl_event.c:608:libxl__ev_xswatch_deregister:
> > > > watch
> > > > > >> > > > w=0x210c728: deregister unregistered
> > > > > >> > > > libxl: debug: libxl_numa.c:475:libxl__get_numa_candidate:
> > New
> > > > best
> > > > > >> NUMA
> > > > > >> > > > placement candidate found: nr_nodes=1, nr_cpus=4,
> > nr_vcpus=3,
> > > > > >> > > > free_memkb=2980
> > > > > >> > > > libxl: detail: libxl_dom.c:195:numa_place_domain: NUMA
> > placement
> > > > > >> > > candidate
> > > > > >> > > > with 1 nodes, 4 cpus and 2980 KB free selected
> > > > > >> > > > xc: detail: elf_parse_binary: phdr: paddr=0x100000
> > memsz=0xa69a4
> > > > > >> > > > xc: detail: elf_parse_binary: memory: 0x100000 -> 0x1a69a4
> > > > > >> > > > xc: info: VIRTUAL MEMORY ARRANGEMENT:
> > > > > >> > > >   Loader:        0000000000100000->00000000001a69a4
> > > > > >> > > >   Modules:       0000000000000000->0000000000000000
> > > > > >> > > >   TOTAL:         0000000000000000->000000003f800000
> > > > > >> > > >   ENTRY ADDRESS: 0000000000100608
> > > > > >> > > > xc: info: PHYSICAL MEMORY ALLOCATION:
> > > > > >> > > >   4KB PAGES: 0x0000000000000200
> > > > > >> > > >   2MB PAGES: 0x00000000000001fb
> > > > > >> > > >   1GB PAGES: 0x0000000000000000
> > > > > >> > > > xc: detail: elf_load_binary: phdr 0 at 0x7f022c779000 ->
> > > > > >> 0x7f022c81682d
> > > > > >> > > > libxl: debug:
> > libxl_device.c:257:libxl__device_disk_set_backend:
> > > > > >> Disk
> > > > > >> > > > vdev=hda spec.backend=phy
> > > > > >> > > > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register:
> > > > watch
> > > > > >> > > > w=0x2112f48 wpath=/local/domain/0/backend/vbd/2/768/state
> > > > token=3/0:
> > > > > >> > > > register slotnum=3
> > > > > >> > > > libxl: debug: libxl_create.c:1243:do_domain_create: ao
> > > > 0x210c360:
> > > > > >> > > > inprogress: poller=0x210c3c0, flags=i
> > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> > > > w=0x2112f48
> > > > > >> > > > wpath=/local/domain/0/backend/vbd/2/768/state token=3/0:
> > event
> > > > > >> > > > epath=/local/domain/0/backend/vbd/2/768/state
> > > > > >> > > > libxl: debug: libxl_event.c:647:devstate_watch_callback:
> > backend
> > > > > >> > > > /local/domain/0/backend/vbd/2/768/state wanted state 2 still
> > > > waiting
> > > > > >> > > state 1
> > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> > > > w=0x2112f48
> > > > > >> > > > wpath=/local/domain/0/backend/vbd/2/768/state token=3/0:
> > event
> > > > > >> > > > epath=/local/domain/0/backend/vbd/2/768/state
> > > > > >> > > > libxl: debug: libxl_event.c:643:devstate_watch_callback:
> > backend
> > > > > >> > > > /local/domain/0/backend/vbd/2/768/state wanted state 2 ok
> > > > > >> > > > libxl: debug:
> > libxl_event.c:596:libxl__ev_xswatch_deregister:
> > > > watch
> > > > > >> > > > w=0x2112f48 wpath=/local/domain/0/backend/vbd/2/768/state
> > > > token=3/0:
> > > > > >> > > > deregister slotnum=3
> > > > > >> > > > libxl: debug:
> > libxl_event.c:608:libxl__ev_xswatch_deregister:
> > > > watch
> > > > > >> > > > w=0x2112f48: deregister unregistered
> > > > > >> > > > libxl: debug: libxl_device.c:959:device_hotplug: calling
> > hotplug
> > > > > >> script:
> > > > > >> > > > /etc/xen/scripts/block add
> > > > > >> > > > libxl: debug: libxl_dm.c:1206:libxl__spawn_local_dm:
> > Spawning
> > > > > >> > > device-model
> > > > > >> > > > /usr/bin/qemu-system-i386 with arguments:
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > > >> > > > /usr/bin/qemu-system-i386
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > -xen-domid
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   2
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > -chardev
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > > >> > > >
> > socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-2,server,nowait
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -mon
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > > >> > > > chardev=libxl-cmd,mode=control
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -name
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > ubuntu-hvm-0
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -vnc
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > 0.0.0.0:0
> > > > > >> ,to=99
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > -global
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > > >> isa-fdc.driveA=
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > -serial
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   pty
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -vga
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > cirrus
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > -global
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > > >> vga.vram_size_mb=8
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -boot
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > order=c
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -smp
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > 2,maxcpus=2
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > -device
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > > >> > > > rtl8139,id=nic0,netdev=net0,mac=00:16:3e:23:44:2c
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > -netdev
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > > >> > > > type=tap,id=net0,ifname=vif2.0-emu,script=no,downscript=no
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -M
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   xenfv
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -m
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   1016
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > -drive
> > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > > >> > > >
> > > > > >> > >
> > > > > >>
> > > >
> > file=/dev/ubuntu-vg/ubuntu-hvm-0,if=ide,index=0,media=disk,format=raw,cache=writeback
> > > > > >> > > > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register:
> > > > watch
> > > > > >> > > > w=0x210c960 wpath=/local/domain/0/device-model/2/state
> > > > token=3/1:
> > > > > >> > > register
> > > > > >> > > > slotnum=3
> > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> > > > w=0x210c960
> > > > > >> > > > wpath=/local/domain/0/device-model/2/state token=3/1: event
> > > > > >> > > > epath=/local/domain/0/device-model/2/state
> > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> > > > w=0x210c960
> > > > > >> > > > wpath=/local/domain/0/device-model/2/state token=3/1: event
> > > > > >> > > > epath=/local/domain/0/device-model/2/state
> > > > > >> > > > libxl: debug:
> > libxl_event.c:596:libxl__ev_xswatch_deregister:
> > > > watch
> > > > > >> > > > w=0x210c960 wpath=/local/domain/0/device-model/2/state
> > > > token=3/1:
> > > > > >> > > > deregister slotnum=3
> > > > > >> > > > libxl: debug:
> > libxl_event.c:608:libxl__ev_xswatch_deregister:
> > > > watch
> > > > > >> > > > w=0x210c960: deregister unregistered
> > > > > >> > > > libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize:
> > connected
> > > > to
> > > > > >> > > > /var/run/xen/qmp-libxl-2
> > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message
> > > > type: qmp
> > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> > > > command: '{
> > > > > >> > > >     "execute": "qmp_capabilities",
> > > > > >> > > >     "id": 1
> > > > > >> > > > }
> > > > > >> > > > '
> > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message
> > type:
> > > > > >> return
> > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> > > > command: '{
> > > > > >> > > >     "execute": "query-chardev",
> > > > > >> > > >     "id": 2
> > > > > >> > > > }
> > > > > >> > > > '
> > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message
> > type:
> > > > > >> return
> > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> > > > command: '{
> > > > > >> > > >     "execute": "change",
> > > > > >> > > >     "id": 3,
> > > > > >> > > >     "arguments": {
> > > > > >> > > >         "device": "vnc",
> > > > > >> > > >         "target": "password",
> > > > > >> > > >         "arg": ""
> > > > > >> > > >     }
> > > > > >> > > > }
> > > > > >> > > > '
> > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message
> > type:
> > > > > >> return
> > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> > > > command: '{
> > > > > >> > > >     "execute": "query-vnc",
> > > > > >> > > >     "id": 4
> > > > > >> > > > }
> > > > > >> > > > '
> > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message
> > type:
> > > > > >> return
> > > > > >> > > > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register:
> > > > watch
> > > > > >> > > > w=0x210e8a8 wpath=/local/domain/0/backend/vif/2/0/state
> > > > token=3/2:
> > > > > >> > > register
> > > > > >> > > > slotnum=3
> > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> > > > w=0x210e8a8
> > > > > >> > > > wpath=/local/domain/0/backend/vif/2/0/state token=3/2: event
> > > > > >> > > > epath=/local/domain/0/backend/vif/2/0/state
> > > > > >> > > > libxl: debug: libxl_event.c:647:devstate_watch_callback:
> > backend
> > > > > >> > > > /local/domain/0/backend/vif/2/0/state wanted state 2 still
> > > > waiting
> > > > > >> state
> > > > > >> > > 1
> > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> > > > w=0x210e8a8
> > > > > >> > > > wpath=/local/domain/0/backend/vif/2/0/state token=3/2: event
> > > > > >> > > > epath=/local/domain/0/backend/vif/2/0/state
> > > > > >> > > > libxl: debug: libxl_event.c:643:devstate_watch_callback:
> > backend
> > > > > >> > > > /local/domain/0/backend/vif/2/0/state wanted state 2 ok
> > > > > >> > > > libxl: debug:
> > libxl_event.c:596:libxl__ev_xswatch_deregister:
> > > > watch
> > > > > >> > > > w=0x210e8a8 wpath=/local/domain/0/backend/vif/2/0/state
> > > > token=3/2:
> > > > > >> > > > deregister slotnum=3
> > > > > >> > > > libxl: debug:
> > libxl_event.c:608:libxl__ev_xswatch_deregister:
> > > > watch
> > > > > >> > > > w=0x210e8a8: deregister unregistered
> > > > > >> > > > libxl: debug: libxl_device.c:959:device_hotplug: calling
> > hotplug
> > > > > >> script:
> > > > > >> > > > /etc/xen/scripts/vif-bridge online
> > > > > >> > > > libxl: debug: libxl_device.c:959:device_hotplug: calling
> > hotplug
> > > > > >> script:
> > > > > >> > > > /etc/xen/scripts/vif-bridge add
> > > > > >> > > > libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize:
> > connected
> > > > to
> > > > > >> > > > /var/run/xen/qmp-libxl-2
> > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message
> > > > type: qmp
> > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> > > > command: '{
> > > > > >> > > >     "execute": "qmp_capabilities",
> > > > > >> > > >     "id": 1
> > > > > >> > > > }
> > > > > >> > > > '
> > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message
> > type:
> > > > > >> return
> > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> > > > command: '{
> > > > > >> > > >     "execute": "device_add",
> > > > > >> > > >     "id": 2,
> > > > > >> > > >     "arguments": {
> > > > > >> > > >         "driver": "xen-pci-passthrough",
> > > > > >> > > >         "id": "pci-pt-03_00.0",
> > > > > >> > > >         "hostaddr": "0000:03:00.0"
> > > > > >> > > >     }
> > > > > >> > > > }
> > > > > >> > > > '
> > > > > >> > > > libxl: error: libxl_qmp.c:454:qmp_next: Socket read error:
> > > > > >> Connection
> > > > > >> > > reset
> > > > > >> > > > by peer
> > > > > >> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize:
> > Connection
> > > > > >> error:
> > > > > >> > > > Connection refused
> > > > > >> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize:
> > Connection
> > > > > >> error:
> > > > > >> > > > Connection refused
> > > > > >> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize:
> > Connection
> > > > > >> error:
> > > > > >> > > > Connection refused
> > > > > >> > > > libxl: debug: libxl_pci.c:81:libxl__create_pci_backend:
> > > > Creating pci
> > > > > >> > > backend
> > > > > >> > > > libxl: debug: libxl_event.c:1737:libxl__ao_progress_report:
> > ao
> > > > > >> 0x210c360:
> > > > > >> > > > progress report: ignored
> > > > > >> > > > libxl: debug: libxl_event.c:1569:libxl__ao_complete: ao
> > > > 0x210c360:
> > > > > >> > > > complete, rc=0
> > > > > >> > > > libxl: debug: libxl_event.c:1541:libxl__ao__destroy: ao
> > > > 0x210c360:
> > > > > >> > > destroy
> > > > > >> > > > Daemon running with PID 3214
> > > > > >> > > > xc: debug: hypercall buffer: total allocations:793 total
> > > > > >> releases:793
> > > > > >> > > > xc: debug: hypercall buffer: current allocations:0 maximum
> > > > > >> allocations:4
> > > > > >> > > > xc: debug: hypercall buffer: cache current size:4
> > > > > >> > > > xc: debug: hypercall buffer: cache hits:785 misses:4
> > toobig:4
> > > > > >> > > >
> > > > > >> > > > ###########################################################
> > > > > >> > > > root@fiat:/var/log/xen# cat qemu-dm-ubuntu-hvm-0.log
> > > > > >> > > > char device redirected to /dev/pts/5 (label serial0)
> > > > > >> > > > qemu: hardware error: xen: failed to populate ram at
> > 40030000
> > > > > >> > > > CPU #0:
> > > > > >> > > > EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
> > > > > >> > > > ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
> > > > > >> > > > EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0
> > HLT=1
> > > > > >> > > > ES =0000 00000000 0000ffff 00009300
> > > > > >> > > > CS =f000 ffff0000 0000ffff 00009b00
> > > > > >> > > > SS =0000 00000000 0000ffff 00009300
> > > > > >> > > > DS =0000 00000000 0000ffff 00009300
> > > > > >> > > > FS =0000 00000000 0000ffff 00009300
> > > > > >> > > > GS =0000 00000000 0000ffff 00009300
> > > > > >> > > > LDT=0000 00000000 0000ffff 00008200
> > > > > >> > > > TR =0000 00000000 0000ffff 00008b00
> > > > > >> > > > GDT=     00000000 0000ffff
> > > > > >> > > > IDT=     00000000 0000ffff
> > > > > >> > > > CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
> > > > > >> > > > DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
> > > > > >> > > > DR6=ffff0ff0 DR7=00000400
> > > > > >> > > > EFER=0000000000000000
> > > > > >> > > > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
> > > > > >> > > > FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
> > > > > >> > > > FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
> > > > > >> > > > FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
> > > > > >> > > > FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
> > > > > >> > > > XMM00=00000000000000000000000000000000
> > > > > >> > > > XMM01=00000000000000000000000000000000
> > > > > >> > > > XMM02=00000000000000000000000000000000
> > > > > >> > > > XMM03=00000000000000000000000000000000
> > > > > >> > > > XMM04=00000000000000000000000000000000
> > > > > >> > > > XMM05=00000000000000000000000000000000
> > > > > >> > > > XMM06=00000000000000000000000000000000
> > > > > >> > > > XMM07=00000000000000000000000000000000
> > > > > >> > > > CPU #1:
> > > > > >> > > > EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
> > > > > >> > > > ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
> > > > > >> > > > EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0
> > HLT=1
> > > > > >> > > > ES =0000 00000000 0000ffff 00009300
> > > > > >> > > > CS =f000 ffff0000 0000ffff 00009b00
> > > > > >> > > > SS =0000 00000000 0000ffff 00009300
> > > > > >> > > > DS =0000 00000000 0000ffff 00009300
> > > > > >> > > > FS =0000 00000000 0000ffff 00009300
> > > > > >> > > > GS =0000 00000000 0000ffff 00009300
> > > > > >> > > > LDT=0000 00000000 0000ffff 00008200
> > > > > >> > > > TR =0000 00000000 0000ffff 00008b00
> > > > > >> > > > GDT=     00000000 0000ffff
> > > > > >> > > > IDT=     00000000 0000ffff
> > > > > >> > > > CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
> > > > > >> > > > DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
> > > > > >> > > > DR6=ffff0ff0 DR7=00000400
> > > > > >> > > > EFER=0000000000000000
> > > > > >> > > > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
> > > > > >> > > > FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
> > > > > >> > > > FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
> > > > > >> > > > FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
> > > > > >> > > > FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
> > > > > >> > > > XMM00=00000000000000000000000000000000
> > > > > >> > > > XMM01=00000000000000000000000000000000
> > > > > >> > > > XMM02=00000000000000000000000000000000
> > > > > >> > > > XMM03=00000000000000000000000000000000
> > > > > >> > > > XMM04=00000000000000000000000000000000
> > > > > >> > > > XMM05=00000000000000000000000000000000
> > > > > >> > > > XMM06=00000000000000000000000000000000
> > > > > >> > > > XMM07=00000000000000000000000000000000
> > > > > >> > > >
> > > > > >> > > > ###########################################################
> > > > > >> > > > /etc/default/grub
> > > > > >> > > > GRUB_DEFAULT="Xen 4.3-amd64"
> > > > > >> > > > GRUB_HIDDEN_TIMEOUT=0
> > > > > >> > > > GRUB_HIDDEN_TIMEOUT_QUIET=true
> > > > > >> > > > GRUB_TIMEOUT=10
> > > > > >> > > > GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo
> > Debian`
> > > > > >> > > > GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
> > > > > >> > > > GRUB_CMDLINE_LINUX=""
> > > > > >> > > > # biosdevname=0
> > > > > >> > > > GRUB_CMDLINE_XEN="dom0_mem=1024M dom0_max_vcpus=1"
> > > > > >> > >
> > > > > >> > > > _______________________________________________
> > > > > >> > > > Xen-devel mailing list
> > > > > >> > > > Xen-devel@lists.xen.org
> > > > > >> > > > http://lists.xen.org/xen-devel
> > > > > >> > >
> > > > > >> > >
> > > > > >>
> > > > > >
> > > > > >
> > > >
> >

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Xen 4.3 PCI passthrough possible bug
  2014-02-07 21:49                   ` Konrad Rzeszutek Wilk
@ 2014-02-08  1:16                     ` Mike Neiderhauser
  0 siblings, 0 replies; 22+ messages in thread
From: Mike Neiderhauser @ 2014-02-08  1:16 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 35679 bytes --]

I followed this site (
http://wiki.xenproject.org/wiki/Xen_4.4_RC3_test_instructions).
and then followed (http://wiki.xen.org/wiki/Compiling_Xen_From_Source)

git clone -b 4.4.0-rc3 git://xenbits.xen.org/xen.git

Had to take some additional steps here to get all of the libs
# apt-get install build-essential # apt-get install bcc bin86 gawk
bridge-utils iproute libcurl3 libcurl4-openssl-dev bzip2
module-init-tools transfig tgif # apt-get install texinfo
texlive-latex-base texlive-latex-recommended texlive-fonts-extra
texlive-fonts-recommended pciutils-dev mercurial# apt-get install make
gcc libc6-dev zlib1g-dev python python-dev python-twisted
libncurses5-dev patch libvncserver-dev libsdl-dev libjpeg62-dev#
apt-get install iasl libbz2-dev e2fslibs-dev git-core uuid-dev ocaml
ocaml-findlib libx11-dev bison flex xz-utils libyajl-dev# apt-get
install gettext
apt-get install libaio-dev
apt-get install libpixman-1-dev

./configure
make dist
make install



On Fri, Feb 7, 2014 at 4:49 PM, Konrad Rzeszutek Wilk <
konrad.wilk@oracle.com> wrote:

> On Fri, Feb 07, 2014 at 04:29:18PM -0500, Mike Neiderhauser wrote:
> > I did not use the patch.  I was assuming it was already patched given
> > previous email.  Is the patch for qemu source or xen source?
>
> It is for QEMU, but you are right - it should have been part
> of QEMU if you got the latest version of Xen-unstable.
>
> You didn't use some specific tag but just 'staging' ?
>
> >
> >
> > On Fri, Feb 7, 2014 at 4:01 PM, Konrad Rzeszutek Wilk <
> > konrad.wilk@oracle.com> wrote:
> >
> > > On Fri, Feb 07, 2014 at 03:45:19PM -0500, Mike Neiderhauser wrote:
> > > > Ok. I started ran the initscripts and now xl works.
> > > >
> > > > However, I still see the same behavior as before:
> > > >
> > >
> > > Did you use the patch that was mentioned in the URL?
> > >
> > > > root@fiat:~# xl create /etc/xen/ubuntu-hvm-0.cfg
> > > > Parsing config from /etc/xen/ubuntu-hvm-0.cfg
> > > > libxl: error: libxl_qmp.c:448:qmp_next: Socket read error: Connection
> > > reset
> > > > by peer
> > > > libxl: error: libxl_qmp.c:691:libxl__qmp_initialize: Connection
> error:
> > > > Connection refused
> > > > libxl: error: libxl_qmp.c:691:libxl__qmp_initialize: Connection
> error:
> > > > Connection refused
> > > > libxl: error: libxl_qmp.c:691:libxl__qmp_initialize: Connection
> error:
> > > > Connection refused
> > > > root@fiat:~# xl list
> > > > Name                                        ID   Mem VCPUs State
> Time(s)
> > > > Domain-0                                     0  1024     1     r-----
> > > >  15.2
> > > > ubuntu-hvm-0                                 1  1025     1     ------
> > > > 0.0
> > > >
> > > > (XEN)  Dom0 kernel: 64-bit, PAE, lsb, paddr 0x1000000 -> 0x23f3000
> > > > (XEN) PHYSICAL MEMORY ARRANGEMENT:
> > > > (XEN)  Dom0 alloc.:   0000000134000000->0000000138000000 (233690
> pages to
> > > > be allocated)
> > > > (XEN)  Init. ramdisk: 000000013d0da000->000000013ffffe00
> > > > (XEN) VIRTUAL MEMORY ARRANGEMENT:
> > > > (XEN)  Loaded kernel: ffffffff81000000->ffffffff823f3000
> > > > (XEN)  Init. ramdisk: ffffffff823f3000->ffffffff85318e00
> > > > (XEN)  Phys-Mach map: ffffffff85319000->ffffffff85519000
> > > > (XEN)  Start info:    ffffffff85519000->ffffffff855194b4
> > > > (XEN)  Page tables:   ffffffff8551a000->ffffffff85549000
> > > > (XEN)  Boot stack:    ffffffff85549000->ffffffff8554a000
> > > > (XEN)  TOTAL:         ffffffff80000000->ffffffff85800000
> > > > (XEN)  ENTRY ADDRESS: ffffffff81d261e0
> > > > (XEN) Dom0 has maximum 1 VCPUs
> > > > (XEN) elf_load_binary: phdr 0 at 0xffffffff81000000 ->
> 0xffffffff81b2f000
> > > > (XEN) elf_load_binary: phdr 1 at 0xffffffff81c00000 ->
> 0xffffffff81d0f0f0
> > > > (XEN) elf_load_binary: phdr 2 at 0xffffffff81d10000 ->
> 0xffffffff81d252c0
> > > > (XEN) elf_load_binary: phdr 3 at 0xffffffff81d26000 ->
> 0xffffffff81e6d000
> > > > (XEN) Scrubbing Free RAM: .............................done.
> > > > (XEN) Initial low memory virq threshold set at 0x4000 pages.
> > > > (XEN) Std. Loglevel: All
> > > > (XEN) Guest Loglevel: All
> > > > (XEN) Xen is relinquishing VGA console.
> > > > (XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch
> input
> > > > to Xen)
> > > > (XEN) Freed 260kB init memory.
> > > > (XEN) PCI add device 0000:00:00.0
> > > > (XEN) PCI add device 0000:00:01.0
> > > > (XEN) PCI add device 0000:00:1a.0
> > > > (XEN) PCI add device 0000:00:1c.0
> > > > (XEN) PCI add device 0000:00:1d.0
> > > > (XEN) PCI add device 0000:00:1e.0
> > > > (XEN) PCI add device 0000:00:1f.0
> > > > (XEN) PCI add device 0000:00:1f.2
> > > > (XEN) PCI add device 0000:00:1f.3
> > > > (XEN) PCI add device 0000:01:00.0
> > > > (XEN) PCI add device 0000:02:02.0
> > > > (XEN) PCI add device 0000:02:04.0
> > > > (XEN) PCI add device 0000:03:00.0
> > > > (XEN) PCI add device 0000:03:00.1
> > > > (XEN) PCI add device 0000:04:00.0
> > > > (XEN) PCI add device 0000:04:00.1
> > > > (XEN) PCI add device 0000:05:00.0
> > > > (XEN) PCI add device 0000:05:00.1
> > > > (XEN) PCI add device 0000:06:03.0
> > > > (XEN) page_alloc.c:1460:d0 Over-allocation for domain 1: 262401 >
> 262400
> > > > (XEN) memory.c:158:d0 Could not allocate order=0 extent: id=1
> memflags=0
> > > > (200 of 1024)
> > > > (d1) HVM Loader
> > > > (d1) Detected Xen v4.4-rc2
> > > > (d1) Xenbus rings @0xfeffc000, event channel 4
> > > > (d1) System requested SeaBIOS
> > > > (d1) CPU speed is 3093 MHz
> > > > (d1) Relocating guest memory for lowmem MMIO space disabled
> > > >
> > > >
> > > > Excerpt from /var/log/xen/*
> > > > qemu: hardware error: xen: failed to populate ram at 40050000
> > > >
> > > >
> > > > On Fri, Feb 7, 2014 at 3:39 PM, Konrad Rzeszutek Wilk <
> > > > konrad.wilk@oracle.com> wrote:
> > > >
> > > > > On Fri, Feb 07, 2014 at 03:36:49PM -0500, Mike Neiderhauser wrote:
> > > > > > I was able to compile and install xen4.4 RC3 on my host, however
> I am
> > > > > > getting the error:
> > > > > >
> > > > > > root@fiat:~/git/xen# xl list
> > > > > > xc: error: Could not obtain handle on privileged command
> interface
> > > (2 =
> > > > > No
> > > > > > such file or directory): Internal error
> > > > > > libxl: error: libxl.c:92:libxl_ctx_alloc: cannot open libxc
> handle:
> > > No
> > > > > such
> > > > > > file or directory
> > > > > > cannot init xl context
> > > > > >
> > > > > > I've google searched for this and an article appears, but is not
> the
> > > same
> > > > > > (as far as I can tell).  Running any xl command generates a
> similar
> > > > > error.
> > > > > >
> > > > > > What can I do to fix this?
> > > > >
> > > > >
> > > > > You need to run the initscripts for Xen. I don't know what your
> distro
> > > is,
> > > > > but
> > > > > they are usually put in /etc/init.d/rc.d/xen*
> > > > >
> > > > >
> > > > > >
> > > > > > Regards
> > > > > >
> > > > > >
> > > > > > On Fri, Feb 7, 2014 at 1:40 PM, Mike Neiderhauser <
> > > > > > mikeneiderhauser@gmail.com> wrote:
> > > > > >
> > > > > > > Much. Do I need to install from src or is there a package I can
> > > > > install.
> > > > > > >
> > > > > > > Regards
> > > > > > >
> > > > > > >
> > > > > > > On Fri, Feb 7, 2014 at 1:30 PM, Konrad Rzeszutek Wilk <
> > > > > > > konrad.wilk@oracle.com> wrote:
> > > > > > >
> > > > > > >> On Fri, Feb 07, 2014 at 10:53:22AM -0500, Mike Neiderhauser
> wrote:
> > > > > > >> > I did not.  I do not have the toolchain installed.  I may
> have
> > > time
> > > > > > >> later
> > > > > > >> > today to try the patch.  Are there any specific
> instructions on
> > > how
> > > > > to
> > > > > > >> > patch the src, compile and install?
> > > > > > >>
> > > > > > >> There actually should be a new version of Xen 4.4-rcX which
> will
> > > have
> > > > > the
> > > > > > >> fix. That might be easier for you?
> > > > > > >> >
> > > > > > >> > Regards
> > > > > > >> >
> > > > > > >> >
> > > > > > >> > On Fri, Feb 7, 2014 at 10:25 AM, Konrad Rzeszutek Wilk <
> > > > > > >> > konrad.wilk@oracle.com> wrote:
> > > > > > >> >
> > > > > > >> > > On Thu, Feb 06, 2014 at 09:39:37AM -0500, Mike
> Neiderhauser
> > > wrote:
> > > > > > >> > > > Hi all,
> > > > > > >> > > >
> > > > > > >> > > > I am attempting to do a pci passthrough of an Intel ET
> card
> > > > > (4x1G
> > > > > > >> NIC)
> > > > > > >> > > to a
> > > > > > >> > > > HVM.  I have been attempting to resolve this issue on
> the
> > > > > xen-users
> > > > > > >> list,
> > > > > > >> > > > but it was advised to post this issue to this list.
> (Initial
> > > > > > >> Message -
> > > > > > >> > > >
> > > > > > >> > >
> > > > > > >>
> > > > >
> > >
> http://lists.xenproject.org/archives/html/xen-users/2014-02/msg00036.html
> > > > > > >> )
> > > > > > >> > > >
> > > > > > >> > > > The machine I am using as host is a Dell Poweredge
> server
> > > with a
> > > > > > >> Xeon
> > > > > > >> > > > E31220 with 4GB of ram.
> > > > > > >> > > >
> > > > > > >> > > > The possible bug is the following:
> > > > > > >> > > > root@fiat:/var/log/xen# cat qemu-dm-ubuntu-hvm-0.log
> > > > > > >> > > > char device redirected to /dev/pts/5 (label serial0)
> > > > > > >> > > > qemu: hardware error: xen: failed to populate ram at
> > > 40030000
> > > > > > >> > > > ....
> > > > > > >> > > >
> > > > > > >> > > > I believe it may be similar to this thread
> > > > > > >> > > >
> > > > > > >> > >
> > > > > > >>
> > > > >
> > >
> http://markmail.org/message/3zuiojywempoorxj#query:+page:1+mid:gul34vbe4uyog2d4+state:results
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > > Additional info that may be helpful is below.
> > > > > > >> > >
> > > > > > >> > > Did you try the patch?
> > > > > > >> > > >
> > > > > > >> > > > Please let me know if you need any additional
> information.
> > > > > > >> > > >
> > > > > > >> > > > Thanks in advance for any help provided!
> > > > > > >> > > > Regards
> > > > > > >> > > >
> > > > > > >> > > >
> ###########################################################
> > > > > > >> > > > root@fiat:~# cat /etc/xen/ubuntu-hvm-0.cfg
> > > > > > >> > > >
> ###########################################################
> > > > > > >> > > > # Configuration file for Xen HVM
> > > > > > >> > > >
> > > > > > >> > > > # HVM Name (as appears in 'xl list')
> > > > > > >> > > > name="ubuntu-hvm-0"
> > > > > > >> > > > # HVM Build settings (+ hardware)
> > > > > > >> > > > #kernel = "/usr/lib/xen-4.3/boot/hvmloader"
> > > > > > >> > > > builder='hvm'
> > > > > > >> > > > device_model='qemu-dm'
> > > > > > >> > > > memory=1024
> > > > > > >> > > > vcpus=2
> > > > > > >> > > >
> > > > > > >> > > > # Virtual Interface
> > > > > > >> > > > # Network bridge to USB NIC
> > > > > > >> > > > vif=['bridge=xenbr0']
> > > > > > >> > > >
> > > > > > >> > > > ################### PCI PASSTHROUGH ###################
> > > > > > >> > > > # PCI Permissive mode toggle
> > > > > > >> > > > #pci_permissive=1
> > > > > > >> > > >
> > > > > > >> > > > # All PCI Devices
> > > > > > >> > > > #pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1',
> '05:00.0',
> > > > > > >> '05:00.1']
> > > > > > >> > > >
> > > > > > >> > > > # First two ports on Intel 4x1G NIC
> > > > > > >> > > > #pci=['03:00.0','03:00.1']
> > > > > > >> > > >
> > > > > > >> > > > # Last two ports on Intel 4x1G NIC
> > > > > > >> > > > #pci=['04:00.0', '04:00.1']
> > > > > > >> > > >
> > > > > > >> > > > # All ports on Intel 4x1G NIC
> > > > > > >> > > > pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1']
> > > > > > >> > > >
> > > > > > >> > > > # Brodcom 2x1G NIC
> > > > > > >> > > > #pci=['05:00.0', '05:00.1']
> > > > > > >> > > > ################### PCI PASSTHROUGH ###################
> > > > > > >> > > >
> > > > > > >> > > > # HVM Disks
> > > > > > >> > > > # Hard disk only
> > > > > > >> > > > # Boot from HDD first ('c')
> > > > > > >> > > > boot="c"
> > > > > > >> > > > disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w']
> > > > > > >> > > >
> > > > > > >> > > > # Hard disk with ISO
> > > > > > >> > > > # Boot from ISO first ('d')
> > > > > > >> > > > #boot="d"
> > > > > > >> > > > #disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w',
> > > > > > >> > > >
> 'file:/root/ubuntu-12.04.3-server-amd64.iso,hdc:cdrom,r']
> > > > > > >> > > >
> > > > > > >> > > > # ACPI Enable
> > > > > > >> > > > acpi=1
> > > > > > >> > > > # HVM Event Modes
> > > > > > >> > > > on_poweroff='destroy'
> > > > > > >> > > > on_reboot='restart'
> > > > > > >> > > > on_crash='restart'
> > > > > > >> > > >
> > > > > > >> > > > # Serial Console Configuration (Xen Console)
> > > > > > >> > > > sdl=0
> > > > > > >> > > > serial='pty'
> > > > > > >> > > >
> > > > > > >> > > > # VNC Configuration
> > > > > > >> > > > # Only reacable from localhost
> > > > > > >> > > > vnc=1
> > > > > > >> > > > vnclisten="0.0.0.0"
> > > > > > >> > > > vncpasswd=""
> > > > > > >> > > >
> > > > > > >> > > >
> ###########################################################
> > > > > > >> > > > Copied for xen-users list
> > > > > > >> > > >
> ###########################################################
> > > > > > >> > > >
> > > > > > >> > > > It appears that it cannot obtain the RAM mapping for
> this
> > > PCI
> > > > > > >> device.
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > > I rebooted the Host.  I ran assigned pci devices to
> > > pciback. The
> > > > > > >> output
> > > > > > >> > > > looks like:
> > > > > > >> > > > root@fiat:~# ./dev_mgmt.sh
> > > > > > >> > > > Loading Kernel Module 'xen-pciback'
> > > > > > >> > > > Calling function pciback_dev for:
> > > > > > >> > > > PCI DEVICE 0000:03:00.0
> > > > > > >> > > > Unbinding 0000:03:00.0 from igb
> > > > > > >> > > > Binding 0000:03:00.0 to pciback
> > > > > > >> > > >
> > > > > > >> > > > PCI DEVICE 0000:03:00.1
> > > > > > >> > > > Unbinding 0000:03:00.1 from igb
> > > > > > >> > > > Binding 0000:03:00.1 to pciback
> > > > > > >> > > >
> > > > > > >> > > > PCI DEVICE 0000:04:00.0
> > > > > > >> > > > Unbinding 0000:04:00.0 from igb
> > > > > > >> > > > Binding 0000:04:00.0 to pciback
> > > > > > >> > > >
> > > > > > >> > > > PCI DEVICE 0000:04:00.1
> > > > > > >> > > > Unbinding 0000:04:00.1 from igb
> > > > > > >> > > > Binding 0000:04:00.1 to pciback
> > > > > > >> > > >
> > > > > > >> > > > PCI DEVICE 0000:05:00.0
> > > > > > >> > > > Unbinding 0000:05:00.0 from bnx2
> > > > > > >> > > > Binding 0000:05:00.0 to pciback
> > > > > > >> > > >
> > > > > > >> > > > PCI DEVICE 0000:05:00.1
> > > > > > >> > > > Unbinding 0000:05:00.1 from bnx2
> > > > > > >> > > > Binding 0000:05:00.1 to pciback
> > > > > > >> > > >
> > > > > > >> > > > Listing PCI Devices Available to Xen
> > > > > > >> > > > 0000:03:00.0
> > > > > > >> > > > 0000:03:00.1
> > > > > > >> > > > 0000:04:00.0
> > > > > > >> > > > 0000:04:00.1
> > > > > > >> > > > 0000:05:00.0
> > > > > > >> > > > 0000:05:00.1
> > > > > > >> > > >
> > > > > > >> > > >
> ###########################################################
> > > > > > >> > > > root@fiat:~# xl -vvv create /etc/xen/ubuntu-hvm-0.cfg
> > > > > > >> > > > Parsing config from /etc/xen/ubuntu-hvm-0.cfg
> > > > > > >> > > > WARNING: ignoring device_model directive.
> > > > > > >> > > > WARNING: Use "device_model_override" instead if you
> really
> > > want
> > > > > a
> > > > > > >> > > > non-default device_model
> > > > > > >> > > > libxl: debug: libxl_create.c:1230:do_domain_create: ao
> > > > > 0x210c360:
> > > > > > >> create:
> > > > > > >> > > > how=(nil) callback=(nil) poller=0x210c3c0
> > > > > > >> > > > libxl: debug:
> > > libxl_device.c:257:libxl__device_disk_set_backend:
> > > > > > >> Disk
> > > > > > >> > > > vdev=hda spec.backend=unknown
> > > > > > >> > > > libxl: debug:
> > > libxl_device.c:296:libxl__device_disk_set_backend:
> > > > > > >> Disk
> > > > > > >> > > > vdev=hda, using backend phy
> > > > > > >> > > > libxl: debug: libxl_create.c:675:initiate_domain_create:
> > > running
> > > > > > >> > > bootloader
> > > > > > >> > > > libxl: debug:
> libxl_bootloader.c:321:libxl__bootloader_run:
> > > not
> > > > > a PV
> > > > > > >> > > > domain, skipping bootloader
> > > > > > >> > > > libxl: debug:
> > > libxl_event.c:608:libxl__ev_xswatch_deregister:
> > > > > watch
> > > > > > >> > > > w=0x210c728: deregister unregistered
> > > > > > >> > > > libxl: debug:
> libxl_numa.c:475:libxl__get_numa_candidate:
> > > New
> > > > > best
> > > > > > >> NUMA
> > > > > > >> > > > placement candidate found: nr_nodes=1, nr_cpus=4,
> > > nr_vcpus=3,
> > > > > > >> > > > free_memkb=2980
> > > > > > >> > > > libxl: detail: libxl_dom.c:195:numa_place_domain: NUMA
> > > placement
> > > > > > >> > > candidate
> > > > > > >> > > > with 1 nodes, 4 cpus and 2980 KB free selected
> > > > > > >> > > > xc: detail: elf_parse_binary: phdr: paddr=0x100000
> > > memsz=0xa69a4
> > > > > > >> > > > xc: detail: elf_parse_binary: memory: 0x100000 ->
> 0x1a69a4
> > > > > > >> > > > xc: info: VIRTUAL MEMORY ARRANGEMENT:
> > > > > > >> > > >   Loader:        0000000000100000->00000000001a69a4
> > > > > > >> > > >   Modules:       0000000000000000->0000000000000000
> > > > > > >> > > >   TOTAL:         0000000000000000->000000003f800000
> > > > > > >> > > >   ENTRY ADDRESS: 0000000000100608
> > > > > > >> > > > xc: info: PHYSICAL MEMORY ALLOCATION:
> > > > > > >> > > >   4KB PAGES: 0x0000000000000200
> > > > > > >> > > >   2MB PAGES: 0x00000000000001fb
> > > > > > >> > > >   1GB PAGES: 0x0000000000000000
> > > > > > >> > > > xc: detail: elf_load_binary: phdr 0 at 0x7f022c779000 ->
> > > > > > >> 0x7f022c81682d
> > > > > > >> > > > libxl: debug:
> > > libxl_device.c:257:libxl__device_disk_set_backend:
> > > > > > >> Disk
> > > > > > >> > > > vdev=hda spec.backend=phy
> > > > > > >> > > > libxl: debug:
> libxl_event.c:559:libxl__ev_xswatch_register:
> > > > > watch
> > > > > > >> > > > w=0x2112f48
> wpath=/local/domain/0/backend/vbd/2/768/state
> > > > > token=3/0:
> > > > > > >> > > > register slotnum=3
> > > > > > >> > > > libxl: debug: libxl_create.c:1243:do_domain_create: ao
> > > > > 0x210c360:
> > > > > > >> > > > inprogress: poller=0x210c3c0, flags=i
> > > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> > > > > w=0x2112f48
> > > > > > >> > > > wpath=/local/domain/0/backend/vbd/2/768/state token=3/0:
> > > event
> > > > > > >> > > > epath=/local/domain/0/backend/vbd/2/768/state
> > > > > > >> > > > libxl: debug: libxl_event.c:647:devstate_watch_callback:
> > > backend
> > > > > > >> > > > /local/domain/0/backend/vbd/2/768/state wanted state 2
> still
> > > > > waiting
> > > > > > >> > > state 1
> > > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> > > > > w=0x2112f48
> > > > > > >> > > > wpath=/local/domain/0/backend/vbd/2/768/state token=3/0:
> > > event
> > > > > > >> > > > epath=/local/domain/0/backend/vbd/2/768/state
> > > > > > >> > > > libxl: debug: libxl_event.c:643:devstate_watch_callback:
> > > backend
> > > > > > >> > > > /local/domain/0/backend/vbd/2/768/state wanted state 2
> ok
> > > > > > >> > > > libxl: debug:
> > > libxl_event.c:596:libxl__ev_xswatch_deregister:
> > > > > watch
> > > > > > >> > > > w=0x2112f48
> wpath=/local/domain/0/backend/vbd/2/768/state
> > > > > token=3/0:
> > > > > > >> > > > deregister slotnum=3
> > > > > > >> > > > libxl: debug:
> > > libxl_event.c:608:libxl__ev_xswatch_deregister:
> > > > > watch
> > > > > > >> > > > w=0x2112f48: deregister unregistered
> > > > > > >> > > > libxl: debug: libxl_device.c:959:device_hotplug: calling
> > > hotplug
> > > > > > >> script:
> > > > > > >> > > > /etc/xen/scripts/block add
> > > > > > >> > > > libxl: debug: libxl_dm.c:1206:libxl__spawn_local_dm:
> > > Spawning
> > > > > > >> > > device-model
> > > > > > >> > > > /usr/bin/qemu-system-i386 with arguments:
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > > > >> > > > /usr/bin/qemu-system-i386
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > > -xen-domid
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   2
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > -chardev
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > > > >> > > >
> > > socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-2,server,nowait
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> -mon
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > > > >> > > > chardev=libxl-cmd,mode=control
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> -name
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > > ubuntu-hvm-0
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> -vnc
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > > 0.0.0.0:0
> > > > > > >> ,to=99
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > -global
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > > > >> isa-fdc.driveA=
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > -serial
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> pty
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> -vga
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > cirrus
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > -global
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > > > >> vga.vram_size_mb=8
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> -boot
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > order=c
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> -smp
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > > 2,maxcpus=2
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > -device
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > > > >> > > > rtl8139,id=nic0,netdev=net0,mac=00:16:3e:23:44:2c
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > -netdev
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > > > >> > > >
> type=tap,id=net0,ifname=vif2.0-emu,script=no,downscript=no
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> -M
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> xenfv
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> -m
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> 1016
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > -drive
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
> > > > > > >> > > >
> > > > > > >> > >
> > > > > > >>
> > > > >
> > >
> file=/dev/ubuntu-vg/ubuntu-hvm-0,if=ide,index=0,media=disk,format=raw,cache=writeback
> > > > > > >> > > > libxl: debug:
> libxl_event.c:559:libxl__ev_xswatch_register:
> > > > > watch
> > > > > > >> > > > w=0x210c960 wpath=/local/domain/0/device-model/2/state
> > > > > token=3/1:
> > > > > > >> > > register
> > > > > > >> > > > slotnum=3
> > > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> > > > > w=0x210c960
> > > > > > >> > > > wpath=/local/domain/0/device-model/2/state token=3/1:
> event
> > > > > > >> > > > epath=/local/domain/0/device-model/2/state
> > > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> > > > > w=0x210c960
> > > > > > >> > > > wpath=/local/domain/0/device-model/2/state token=3/1:
> event
> > > > > > >> > > > epath=/local/domain/0/device-model/2/state
> > > > > > >> > > > libxl: debug:
> > > libxl_event.c:596:libxl__ev_xswatch_deregister:
> > > > > watch
> > > > > > >> > > > w=0x210c960 wpath=/local/domain/0/device-model/2/state
> > > > > token=3/1:
> > > > > > >> > > > deregister slotnum=3
> > > > > > >> > > > libxl: debug:
> > > libxl_event.c:608:libxl__ev_xswatch_deregister:
> > > > > watch
> > > > > > >> > > > w=0x210c960: deregister unregistered
> > > > > > >> > > > libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize:
> > > connected
> > > > > to
> > > > > > >> > > > /var/run/xen/qmp-libxl-2
> > > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response:
> message
> > > > > type: qmp
> > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> > > > > command: '{
> > > > > > >> > > >     "execute": "qmp_capabilities",
> > > > > > >> > > >     "id": 1
> > > > > > >> > > > }
> > > > > > >> > > > '
> > > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response:
> message
> > > type:
> > > > > > >> return
> > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> > > > > command: '{
> > > > > > >> > > >     "execute": "query-chardev",
> > > > > > >> > > >     "id": 2
> > > > > > >> > > > }
> > > > > > >> > > > '
> > > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response:
> message
> > > type:
> > > > > > >> return
> > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> > > > > command: '{
> > > > > > >> > > >     "execute": "change",
> > > > > > >> > > >     "id": 3,
> > > > > > >> > > >     "arguments": {
> > > > > > >> > > >         "device": "vnc",
> > > > > > >> > > >         "target": "password",
> > > > > > >> > > >         "arg": ""
> > > > > > >> > > >     }
> > > > > > >> > > > }
> > > > > > >> > > > '
> > > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response:
> message
> > > type:
> > > > > > >> return
> > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> > > > > command: '{
> > > > > > >> > > >     "execute": "query-vnc",
> > > > > > >> > > >     "id": 4
> > > > > > >> > > > }
> > > > > > >> > > > '
> > > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response:
> message
> > > type:
> > > > > > >> return
> > > > > > >> > > > libxl: debug:
> libxl_event.c:559:libxl__ev_xswatch_register:
> > > > > watch
> > > > > > >> > > > w=0x210e8a8 wpath=/local/domain/0/backend/vif/2/0/state
> > > > > token=3/2:
> > > > > > >> > > register
> > > > > > >> > > > slotnum=3
> > > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> > > > > w=0x210e8a8
> > > > > > >> > > > wpath=/local/domain/0/backend/vif/2/0/state token=3/2:
> event
> > > > > > >> > > > epath=/local/domain/0/backend/vif/2/0/state
> > > > > > >> > > > libxl: debug: libxl_event.c:647:devstate_watch_callback:
> > > backend
> > > > > > >> > > > /local/domain/0/backend/vif/2/0/state wanted state 2
> still
> > > > > waiting
> > > > > > >> state
> > > > > > >> > > 1
> > > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch
> > > > > w=0x210e8a8
> > > > > > >> > > > wpath=/local/domain/0/backend/vif/2/0/state token=3/2:
> event
> > > > > > >> > > > epath=/local/domain/0/backend/vif/2/0/state
> > > > > > >> > > > libxl: debug: libxl_event.c:643:devstate_watch_callback:
> > > backend
> > > > > > >> > > > /local/domain/0/backend/vif/2/0/state wanted state 2 ok
> > > > > > >> > > > libxl: debug:
> > > libxl_event.c:596:libxl__ev_xswatch_deregister:
> > > > > watch
> > > > > > >> > > > w=0x210e8a8 wpath=/local/domain/0/backend/vif/2/0/state
> > > > > token=3/2:
> > > > > > >> > > > deregister slotnum=3
> > > > > > >> > > > libxl: debug:
> > > libxl_event.c:608:libxl__ev_xswatch_deregister:
> > > > > watch
> > > > > > >> > > > w=0x210e8a8: deregister unregistered
> > > > > > >> > > > libxl: debug: libxl_device.c:959:device_hotplug: calling
> > > hotplug
> > > > > > >> script:
> > > > > > >> > > > /etc/xen/scripts/vif-bridge online
> > > > > > >> > > > libxl: debug: libxl_device.c:959:device_hotplug: calling
> > > hotplug
> > > > > > >> script:
> > > > > > >> > > > /etc/xen/scripts/vif-bridge add
> > > > > > >> > > > libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize:
> > > connected
> > > > > to
> > > > > > >> > > > /var/run/xen/qmp-libxl-2
> > > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response:
> message
> > > > > type: qmp
> > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> > > > > command: '{
> > > > > > >> > > >     "execute": "qmp_capabilities",
> > > > > > >> > > >     "id": 1
> > > > > > >> > > > }
> > > > > > >> > > > '
> > > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response:
> message
> > > type:
> > > > > > >> return
> > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp
> > > > > command: '{
> > > > > > >> > > >     "execute": "device_add",
> > > > > > >> > > >     "id": 2,
> > > > > > >> > > >     "arguments": {
> > > > > > >> > > >         "driver": "xen-pci-passthrough",
> > > > > > >> > > >         "id": "pci-pt-03_00.0",
> > > > > > >> > > >         "hostaddr": "0000:03:00.0"
> > > > > > >> > > >     }
> > > > > > >> > > > }
> > > > > > >> > > > '
> > > > > > >> > > > libxl: error: libxl_qmp.c:454:qmp_next: Socket read
> error:
> > > > > > >> Connection
> > > > > > >> > > reset
> > > > > > >> > > > by peer
> > > > > > >> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize:
> > > Connection
> > > > > > >> error:
> > > > > > >> > > > Connection refused
> > > > > > >> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize:
> > > Connection
> > > > > > >> error:
> > > > > > >> > > > Connection refused
> > > > > > >> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize:
> > > Connection
> > > > > > >> error:
> > > > > > >> > > > Connection refused
> > > > > > >> > > > libxl: debug: libxl_pci.c:81:libxl__create_pci_backend:
> > > > > Creating pci
> > > > > > >> > > backend
> > > > > > >> > > > libxl: debug:
> libxl_event.c:1737:libxl__ao_progress_report:
> > > ao
> > > > > > >> 0x210c360:
> > > > > > >> > > > progress report: ignored
> > > > > > >> > > > libxl: debug: libxl_event.c:1569:libxl__ao_complete: ao
> > > > > 0x210c360:
> > > > > > >> > > > complete, rc=0
> > > > > > >> > > > libxl: debug: libxl_event.c:1541:libxl__ao__destroy: ao
> > > > > 0x210c360:
> > > > > > >> > > destroy
> > > > > > >> > > > Daemon running with PID 3214
> > > > > > >> > > > xc: debug: hypercall buffer: total allocations:793 total
> > > > > > >> releases:793
> > > > > > >> > > > xc: debug: hypercall buffer: current allocations:0
> maximum
> > > > > > >> allocations:4
> > > > > > >> > > > xc: debug: hypercall buffer: cache current size:4
> > > > > > >> > > > xc: debug: hypercall buffer: cache hits:785 misses:4
> > > toobig:4
> > > > > > >> > > >
> > > > > > >> > > >
> ###########################################################
> > > > > > >> > > > root@fiat:/var/log/xen# cat qemu-dm-ubuntu-hvm-0.log
> > > > > > >> > > > char device redirected to /dev/pts/5 (label serial0)
> > > > > > >> > > > qemu: hardware error: xen: failed to populate ram at
> > > 40030000
> > > > > > >> > > > CPU #0:
> > > > > > >> > > > EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
> > > > > > >> > > > ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
> > > > > > >> > > > EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1
> SMM=0
> > > HLT=1
> > > > > > >> > > > ES =0000 00000000 0000ffff 00009300
> > > > > > >> > > > CS =f000 ffff0000 0000ffff 00009b00
> > > > > > >> > > > SS =0000 00000000 0000ffff 00009300
> > > > > > >> > > > DS =0000 00000000 0000ffff 00009300
> > > > > > >> > > > FS =0000 00000000 0000ffff 00009300
> > > > > > >> > > > GS =0000 00000000 0000ffff 00009300
> > > > > > >> > > > LDT=0000 00000000 0000ffff 00008200
> > > > > > >> > > > TR =0000 00000000 0000ffff 00008b00
> > > > > > >> > > > GDT=     00000000 0000ffff
> > > > > > >> > > > IDT=     00000000 0000ffff
> > > > > > >> > > > CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
> > > > > > >> > > > DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
> > > > > > >> > > > DR6=ffff0ff0 DR7=00000400
> > > > > > >> > > > EFER=0000000000000000
> > > > > > >> > > > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
> > > > > > >> > > > FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
> > > > > > >> > > > FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
> > > > > > >> > > > FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
> > > > > > >> > > > FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
> > > > > > >> > > > XMM00=00000000000000000000000000000000
> > > > > > >> > > > XMM01=00000000000000000000000000000000
> > > > > > >> > > > XMM02=00000000000000000000000000000000
> > > > > > >> > > > XMM03=00000000000000000000000000000000
> > > > > > >> > > > XMM04=00000000000000000000000000000000
> > > > > > >> > > > XMM05=00000000000000000000000000000000
> > > > > > >> > > > XMM06=00000000000000000000000000000000
> > > > > > >> > > > XMM07=00000000000000000000000000000000
> > > > > > >> > > > CPU #1:
> > > > > > >> > > > EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
> > > > > > >> > > > ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
> > > > > > >> > > > EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1
> SMM=0
> > > HLT=1
> > > > > > >> > > > ES =0000 00000000 0000ffff 00009300
> > > > > > >> > > > CS =f000 ffff0000 0000ffff 00009b00
> > > > > > >> > > > SS =0000 00000000 0000ffff 00009300
> > > > > > >> > > > DS =0000 00000000 0000ffff 00009300
> > > > > > >> > > > FS =0000 00000000 0000ffff 00009300
> > > > > > >> > > > GS =0000 00000000 0000ffff 00009300
> > > > > > >> > > > LDT=0000 00000000 0000ffff 00008200
> > > > > > >> > > > TR =0000 00000000 0000ffff 00008b00
> > > > > > >> > > > GDT=     00000000 0000ffff
> > > > > > >> > > > IDT=     00000000 0000ffff
> > > > > > >> > > > CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
> > > > > > >> > > > DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
> > > > > > >> > > > DR6=ffff0ff0 DR7=00000400
> > > > > > >> > > > EFER=0000000000000000
> > > > > > >> > > > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
> > > > > > >> > > > FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
> > > > > > >> > > > FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
> > > > > > >> > > > FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
> > > > > > >> > > > FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
> > > > > > >> > > > XMM00=00000000000000000000000000000000
> > > > > > >> > > > XMM01=00000000000000000000000000000000
> > > > > > >> > > > XMM02=00000000000000000000000000000000
> > > > > > >> > > > XMM03=00000000000000000000000000000000
> > > > > > >> > > > XMM04=00000000000000000000000000000000
> > > > > > >> > > > XMM05=00000000000000000000000000000000
> > > > > > >> > > > XMM06=00000000000000000000000000000000
> > > > > > >> > > > XMM07=00000000000000000000000000000000
> > > > > > >> > > >
> > > > > > >> > > >
> ###########################################################
> > > > > > >> > > > /etc/default/grub
> > > > > > >> > > > GRUB_DEFAULT="Xen 4.3-amd64"
> > > > > > >> > > > GRUB_HIDDEN_TIMEOUT=0
> > > > > > >> > > > GRUB_HIDDEN_TIMEOUT_QUIET=true
> > > > > > >> > > > GRUB_TIMEOUT=10
> > > > > > >> > > > GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo
> > > Debian`
> > > > > > >> > > > GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
> > > > > > >> > > > GRUB_CMDLINE_LINUX=""
> > > > > > >> > > > # biosdevname=0
> > > > > > >> > > > GRUB_CMDLINE_XEN="dom0_mem=1024M dom0_max_vcpus=1"
> > > > > > >> > >
> > > > > > >> > > > _______________________________________________
> > > > > > >> > > > Xen-devel mailing list
> > > > > > >> > > > Xen-devel@lists.xen.org
> > > > > > >> > > > http://lists.xen.org/xen-devel
> > > > > > >> > >
> > > > > > >> > >
> > > > > > >>
> > > > > > >
> > > > > > >
> > > > >
> > >
>

[-- Attachment #1.2: Type: text/html, Size: 58046 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Xen 4.3 PCI passthrough possible bug
  2014-02-12 18:25             ` Konrad Rzeszutek Wilk
@ 2014-02-12 18:34               ` Mike Neiderhauser
  0 siblings, 0 replies; 22+ messages in thread
From: Mike Neiderhauser @ 2014-02-12 18:34 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk; +Cc: George Dunlap, xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 12848 bytes --]

It looks very similar.


On Wed, Feb 12, 2014 at 1:25 PM, Konrad Rzeszutek Wilk <
konrad.wilk@oracle.com> wrote:

> On Tue, Feb 11, 2014 at 08:04:04AM -0500, Mike Neiderhauser wrote:
> > So I went ahead to tested the setup I am trying to achieve using xen.
>  This
> > setup basically requires two isolated machines that can be used for
> network
> > testing.  On the hvm mentioned above, this testing fails due to
> something I
> > cannot wrap my head around.  I believe it is still related to the PCI
> > passthrough of a device and I believe it is related to the libxl error
> > mentioned above. Can anyone shed some light on what is going on?  Is it a
> > driver issue? (Broadcom Corporation NetXtreme II BCM5716 Gigabit
> Ethernet)
>
> That looks like this issue:
>
> igb and bnx2: "NETDEV WATCHDOG: transmit queue timed out" when skb has
> huge linear buffer
>
> (http://lkml.org/lkml/2014/1/30/358) ?
> >
> > [79464.816085] ------------[ cut here ]------------
> > [79464.816093] WARNING: at
> > /build/buildd/linux-lts-raring-3.8.0/net/sched/sch_generic.c:254
> > dev_watchdog+0x262/0x270()
> > [79464.816094] Hardware name: HVM domU
> > [79464.816096] NETDEV WATCHDOG: eth1 (bnx2): transmit queue 1 timed out
> > [79464.816096] Modules linked in: esp6(F) ah6(F) xfrm6_mode_tunnel(F)
> > xfrm_user(F) xfrm4_tunnel(F) tunnel4(F) ipcomp(F) xfrm_ipcomp(F)
> authenc(F)
> > esp4(F) ah4(F) xfrm4_mode_tunnel(F) deflate(F) zlib_deflate(F) ctr(F)
> > twofish_generic(F) twofish_avx_x86_64(F) twofish_x86_64_3way(F)
> > twofish_x86_64(F) twofish_common(F) camellia_generic(F)
> > camellia_aesni_avx_x86_64(F) camellia_x86_64(F) serpent_avx_x86_64(F)
> > serpent_sse2_x86_64(F) glue_helper(F) serpent_generic(F)
> > blowfish_generic(F) blowfish_x86_64(F) blowfish_common(F)
> > cast5_avx_x86_64(F) cast5_generic(F) cast_common(F) des_generic(F)
> xcbc(F)
> > rmd160(F) crypto_null(F) af_key(F) xfrm_algo(F) 8021q(F) garp(F) stp(F)
> > llc(F) ipmi_msghandler(F) autofs4(F) ghash_clmulni_intel(F)
> aesni_intel(F)
> > ablk_helper(F) cryptd(F) lrw(F) aes_x86_64(F) xts(F) gf128mul(F)
> cirrus(F)
> > ttm(F) drm_kms_helper(F) nfsd(F) nfs_acl(F) drm(F) auth_rpcgss(F)
> > sysimgblt(F) nfs(F) psmouse(F) sysfillrect(F) syscopyarea(F) fscache(F)
> > lockd(F) microcode(F) joydev(F) xen_kbdfront(F) i2c_piix4(F) serio_raw(F)
> > lp(F) mac_hid(F) sunrpc(F) parport(F) floppy(F) bnx2(F) [last unloaded:
> > ipmi_msghandler]
> > [79464.816139] Pid: 0, comm: swapper/1 Tainted: GF
> >  3.8.0-29-generic #42~precise1-Ubuntu
> > [79464.816140] Call Trace:
> > [79464.816142]  <IRQ>  [<ffffffff81059b0f>]
> warn_slowpath_common+0x7f/0xc0
> > [79464.816149]  [<ffffffff8135b9d4>] ? timerqueue_add+0x64/0xb0
> > [79464.816151]  [<ffffffff81059c06>] warn_slowpath_fmt+0x46/0x50
> > [79464.816154]  [<ffffffff81076794>] ? wake_up_worker+0x24/0x30
> > [79464.816157]  [<ffffffff81602062>] dev_watchdog+0x262/0x270
> > [79464.816160]  [<ffffffff810771f0>] ? __queue_work+0x2d0/0x2d0
> > [79464.816161]  [<ffffffff81601e00>] ? pfifo_fast_dequeue+0xe0/0xe0
> > [79464.816164]  [<ffffffff8106995b>] call_timer_fn+0x3b/0x150
> > [79464.816167]  [<ffffffff8144f5a1>] ?
> add_interrupt_randomness+0x41/0x190
> > [79464.816170]  [<ffffffff8106b427>] run_timer_softirq+0x267/0x2c0
> > [79464.816173]  [<ffffffff810ee3c9>] ? handle_irq_event_percpu+0xa9/0x210
> > [79464.816175]  [<ffffffff81601e00>] ? pfifo_fast_dequeue+0xe0/0xe0
> > [79464.816177]  [<ffffffff81062620>] __do_softirq+0xc0/0x240
> > [79464.816180]  [<ffffffff810b67cd>] ? tick_do_update_jiffies64+0x9d/0xd0
> > [79464.816184]  [<ffffffff816fdd5c>] call_softirq+0x1c/0x30
> > [79464.816188]  [<ffffffff81016775>] do_softirq+0x65/0xa0
> > [79464.816189]  [<ffffffff810628fe>] irq_exit+0x8e/0xb0
> > [79464.816193]  [<ffffffff8140a125>] xen_evtchn_do_upcall+0x35/0x50
> > [79464.816195]  [<ffffffff816fdeed>] xen_hvm_callback_vector+0x6d/0x80
> > [79464.816196]  <EOI>  [<ffffffff81084008>] ? hrtimer_start+0x18/0x20
> > [79464.816201]  [<ffffffff81045136>] ? native_safe_halt+0x6/0x10
> > [79464.816204]  [<ffffffff8101cc33>] default_idle+0x53/0x1f0
> > [79464.816206]  [<ffffffff8101dad9>] cpu_idle+0xd9/0x120
> > [79464.816209]  [<ffffffff816d10fe>] start_secondary+0xc3/0xc5
> > [79464.816210] ---[ end trace 48cf6b13be16e0ae ]---
> > [79464.816214] bnx2 0000:00:05.0 eth1: <--- start FTQ dump --->
> > [79464.816220] bnx2 0000:00:05.0 eth1: RV2P_PFTQ_CTL 00010000
> > [79464.816225] bnx2 0000:00:05.0 eth1: RV2P_TFTQ_CTL 00020000
> > [79464.816258] bnx2 0000:00:05.0 eth1: RV2P_MFTQ_CTL 00004000
> > [79464.816263] bnx2 0000:00:05.0 eth1: TBDR_FTQ_CTL 00004000
> > [79464.816268] bnx2 0000:00:05.0 eth1: TDMA_FTQ_CTL 00010000
> > [79464.816272] bnx2 0000:00:05.0 eth1: TXP_FTQ_CTL 00010000
> > [79464.816276] bnx2 0000:00:05.0 eth1: TXP_FTQ_CTL 00010000
> > [79464.816280] bnx2 0000:00:05.0 eth1: TPAT_FTQ_CTL 00010000
> > [79464.816285] bnx2 0000:00:05.0 eth1: RXP_CFTQ_CTL 00008000
> > [79464.816289] bnx2 0000:00:05.0 eth1: RXP_FTQ_CTL 00100000
> > [79464.816293] bnx2 0000:00:05.0 eth1: COM_COMXQ_FTQ_CTL 00010000
> > [79464.816297] bnx2 0000:00:05.0 eth1: COM_COMTQ_FTQ_CTL 00020000
> > [79464.816302] bnx2 0000:00:05.0 eth1: COM_COMQ_FTQ_CTL 00010000
> > [79464.816306] bnx2 0000:00:05.0 eth1: CP_CPQ_FTQ_CTL 00004000
> > [79464.816308] bnx2 0000:00:05.0 eth1: CPU states:
> > [79464.816321] bnx2 0000:00:05.0 eth1: 045000 mode b84c state 80001000
> > evt_mask 500 pc 8001288 pc 8001288 instr 38640001
> > [79464.816335] bnx2 0000:00:05.0 eth1: 085000 mode b84c state 80005000
> > evt_mask 500 pc 8000a5c pc 8000a5c instr 10400016
> > [79464.816349] bnx2 0000:00:05.0 eth1: 0c5000 mode b84c state 80000000
> > evt_mask 500 pc 8004c14 pc 8004c14 instr 32050003
> > [79464.816362] bnx2 0000:00:05.0 eth1: 105000 mode b8cc state 80000000
> > evt_mask 500 pc 8000a9c pc 8000a94 instr 8c420020
> > [79464.816375] bnx2 0000:00:05.0 eth1: 145000 mode b880 state 80000000
> > evt_mask 500 pc 8009c00 pc 800d948 instr 30420040
> > [79464.816389] bnx2 0000:00:05.0 eth1: 185000 mode b8cc state 80008000
> > evt_mask 500 pc 8000c58 pc 8000c58 instr 1092823
> > [79464.816392] bnx2 0000:00:05.0 eth1: <--- end FTQ dump --->
> > [79464.816394] bnx2 0000:00:05.0 eth1: <--- start TBDC dump --->
> > [79464.816399] bnx2 0000:00:05.0 eth1: TBDC free cnt: 32
> > [79464.816401] bnx2 0000:00:05.0 eth1: LINE     CID  BIDX   CMD  VALIDS
> > [79464.816410] bnx2 0000:00:05.0 eth1: 00    001000  00e8   00    [0]
> > [79464.816420] bnx2 0000:00:05.0 eth1: 01    001000  00e8   00    [0]
> > [79464.816429] bnx2 0000:00:05.0 eth1: 02    000800  afc8   00    [0]
> > [79464.816438] bnx2 0000:00:05.0 eth1: 03    000800  afb8   00    [0]
> > [79464.816447] bnx2 0000:00:05.0 eth1: 04    000800  afd8   00    [0]
> > [79464.816456] bnx2 0000:00:05.0 eth1: 05    000800  afe0   00    [0]
> > [79464.816465] bnx2 0000:00:05.0 eth1: 06    000800  afe8   00    [0]
> > [79464.816474] bnx2 0000:00:05.0 eth1: 07    000800  afd0   00    [0]
> > [79464.816485] bnx2 0000:00:05.0 eth1: 08    001000  3510   00    [0]
> > [79464.816494] bnx2 0000:00:05.0 eth1: 09    000800  aec0   00    [0]
> > [79464.816504] bnx2 0000:00:05.0 eth1: 0a    001000  3530   00    [0]
> > [79464.816514] bnx2 0000:00:05.0 eth1: 0b    000800  aec8   00    [0]
> > [79464.816523] bnx2 0000:00:05.0 eth1: 0c    000800  aed0   00    [0]
> > [79464.816559] bnx2 0000:00:05.0 eth1: 0d    001000  34f8   00    [0]
> > [79464.816570] bnx2 0000:00:05.0 eth1: 0e    001000  3500   00    [0]
> > [79464.816580] bnx2 0000:00:05.0 eth1: 0f    001000  3518   00    [0]
> > [79464.816590] bnx2 0000:00:05.0 eth1: 10    1fbc00  2fe8   7d    [0]
> > [79464.816599] bnx2 0000:00:05.0 eth1: 11    1ab780  fff8   7d    [0]
> > [79464.816608] bnx2 0000:00:05.0 eth1: 12    17ff00  b908   f7    [0]
> > [79464.816618] bnx2 0000:00:05.0 eth1: 13    0cb700  ff40   d7    [0]
> > [79464.816627] bnx2 0000:00:05.0 eth1: 14    177a80  efe0   03    [0]
> > [79464.816637] bnx2 0000:00:05.0 eth1: 15    037d80  9f88   72    [0]
> > [79464.816646] bnx2 0000:00:05.0 eth1: 16    1bae00  eef8   ce    [0]
> > [79464.816657] bnx2 0000:00:05.0 eth1: 17    1bbc80  a7f8   df    [0]
> > [79464.816666] bnx2 0000:00:05.0 eth1: 18    17e180  6aa8   e4    [0]
> > [79464.816675] bnx2 0000:00:05.0 eth1: 19    07ff80  6e50   dd    [0]
> > [79464.816683] bnx2 0000:00:05.0 eth1: 1a    1fda80  f790   6e    [0]
> > [79464.816694] bnx2 0000:00:05.0 eth1: 1b    151580  d7b0   fc    [0]
> > [79464.816703] bnx2 0000:00:05.0 eth1: 1c    1b9f80  cef8   6b    [0]
> > [79464.816712] bnx2 0000:00:05.0 eth1: 1d    1ebf00  ffa8   df    [0]
> > [79464.816723] bnx2 0000:00:05.0 eth1: 1e    1e7e00  ff78   ef    [0]
> > [79464.816731] bnx2 0000:00:05.0 eth1: 1f    166e80  fbd8   aa    [0]
> > [79464.816733] bnx2 0000:00:05.0 eth1: <--- end TBDC dump --->
> > [79464.817101] bnx2 0000:00:05.0 eth1: DEBUG: intr_sem[0]
> PCI_CMD[00100406]
> > [79464.817239] bnx2 0000:00:05.0 eth1: DEBUG: PCI_PM[19002008]
> > PCI_MISC_CFG[92000088]
> > [79464.817248] bnx2 0000:00:05.0 eth1: DEBUG: EMAC_TX_STATUS[00000008]
> > EMAC_RX_STATUS[00000000]
> > [79464.817252] bnx2 0000:00:05.0 eth1: DEBUG: RPM_MGMT_PKT_CTRL[40000088]
> > [79464.817257] bnx2 0000:00:05.0 eth1: DEBUG:
> > HC_STATS_INTERRUPT_STATUS[01fc0003]
> > [79464.817261] bnx2 0000:00:05.0 eth1: DEBUG: PBA[00000003]
> > [79464.817264] bnx2 0000:00:05.0 eth1: <--- start MCP states dump --->
> > [79464.817270] bnx2 0000:00:05.0 eth1: DEBUG: MCP_STATE_P0[0003611e]
> > MCP_STATE_P1[0003611e]
> > [79464.817278] bnx2 0000:00:05.0 eth1: DEBUG: MCP mode[0000b880]
> > state[80000000] evt_mask[00000500]
> > [79464.817286] bnx2 0000:00:05.0 eth1: DEBUG: pc[08003ebc] pc[0800d994]
> > instr[32020020]
> > [79464.817288] bnx2 0000:00:05.0 eth1: DEBUG: shmem states:
> > [79464.817296] bnx2 0000:00:05.0 eth1: DEBUG: drv_mb[01030027]
> > fw_mb[00000027] link_status[0008506b]
> > [79464.817301]  drv_pulse_mb[0000338a]
> > [79464.817306] bnx2 0000:00:05.0 eth1: DEBUG:
> dev_info_signature[44564907]
> > reset_type[01005254]
> > [79464.817310]  condition[0003611e]
> > [79464.817318] bnx2 0000:00:05.0 eth1: DEBUG: 000001c0: 01005254 42530083
> > 0003611e 00000000
> > [79464.817328] bnx2 0000:00:05.0 eth1: DEBUG: 000003cc: 00000000 00000000
> > 00000000 00000000
> > [79464.817357] bnx2 0000:00:05.0 eth1: DEBUG: 000003dc: 00000000 00000000
> > 00000000 00000000
> > [79464.817367] bnx2 0000:00:05.0 eth1: DEBUG: 000003ec: 00000000 00000000
> > 00000000 00000000
> > [79464.817372] bnx2 0000:00:05.0 eth1: DEBUG: 0x3fc[00000000]
> > [79464.817374] bnx2 0000:00:05.0 eth1: <--- end MCP states dump --->
> > [79464.872988] bnx2 0000:00:05.0 eth1: NIC Copper Link is Down
> >
> >
> >
> > On Mon, Feb 10, 2014 at 1:47 PM, Konrad Rzeszutek Wilk <
> > konrad.wilk@oracle.com> wrote:
> >
> > > On Mon, Feb 10, 2014 at 01:29:22PM -0500, Mike Neiderhauser wrote:
> > > > Thanks for the answers on the timeline.
> > > >
> > > > When I start the HVM with th broadcom adapter, I get this message
> back.
> > > > Parsing config from /etc/xen/ubuntu-hvm-1.cfg
> > > > libxl: error: libxl_pci.c:990:libxl__device_pci_reset: The kernel
> doesn't
> > > > support reset from sysfs for PCI device 0000:05:00.0
> > > > libxl: error: libxl_pci.c:990:libxl__device_pci_reset: The kernel
> doesn't
> > > > support reset from sysfs for PCI device 0000:05:00.1
> > > >
> > > > However, the devices appear in the HVM.  Is this something that I
> should
> > > be
> > > > concerned about?
> > >
> > > No. Xen pciback does the reset automatically.
> > >
> > > Actually we might want to ditch that reporting in libxl, or maybe just
> > > implement a stub function in xen-pciback so that libxl will be happy.
> > >
> > > >
> > > >
> > > >
> > > > On Mon, Feb 10, 2014 at 12:11 PM, George Dunlap <dunlapg@umich.edu>
> > > wrote:
> > > >
> > > > > On Sat, Feb 8, 2014 at 5:42 PM, Mike Neiderhauser
> > > > > <mikeneiderhauser@gmail.com> wrote:
> > > > > > Works like a charm.  I do not have physical access to the
> computer
> > > this
> > > > > > weekend to verify that the cards are isolated, but the HVM
> starts and
> > > > > > appears to be working well.
> > > > > >
> > > > > > When do you think Xen 4.4 will be released.  The article I read
> > > > > mentioned it
> > > > > > will be released in 2014 (hinting towards the end of February).
>  I
> > > also
> > > > > read
> > > > > > 'When it is ready.'
> > > > > >
> > > > > > Any timeline would be great.
> > > > >
> > > > > I'm afraid that's about all we can give. :-)  We've locked down
> > > > > development for 2 months now and are working on finding and fixing
> > > > > bugs.  If there are no more blocker bugs or other unforeseen
> delays,
> > > > > it should be out by the end of February.  But there are necessarily
> > > > > significant unknowns, so we can't make any promises.
> > > > >
> > > > >  -George
> > > > >
> > >
>

[-- Attachment #1.2: Type: text/html, Size: 15288 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Xen 4.3 PCI passthrough possible bug
  2014-02-11 13:04           ` Mike Neiderhauser
@ 2014-02-12 18:25             ` Konrad Rzeszutek Wilk
  2014-02-12 18:34               ` Mike Neiderhauser
  0 siblings, 1 reply; 22+ messages in thread
From: Konrad Rzeszutek Wilk @ 2014-02-12 18:25 UTC (permalink / raw)
  To: Mike Neiderhauser; +Cc: George Dunlap, xen-devel

On Tue, Feb 11, 2014 at 08:04:04AM -0500, Mike Neiderhauser wrote:
> So I went ahead to tested the setup I am trying to achieve using xen.  This
> setup basically requires two isolated machines that can be used for network
> testing.  On the hvm mentioned above, this testing fails due to something I
> cannot wrap my head around.  I believe it is still related to the PCI
> passthrough of a device and I believe it is related to the libxl error
> mentioned above. Can anyone shed some light on what is going on?  Is it a
> driver issue? (Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet)

That looks like this issue:

igb and bnx2: "NETDEV WATCHDOG: transmit queue timed out" when skb has huge linear buffer

(http://lkml.org/lkml/2014/1/30/358) ?
> 
> [79464.816085] ------------[ cut here ]------------
> [79464.816093] WARNING: at
> /build/buildd/linux-lts-raring-3.8.0/net/sched/sch_generic.c:254
> dev_watchdog+0x262/0x270()
> [79464.816094] Hardware name: HVM domU
> [79464.816096] NETDEV WATCHDOG: eth1 (bnx2): transmit queue 1 timed out
> [79464.816096] Modules linked in: esp6(F) ah6(F) xfrm6_mode_tunnel(F)
> xfrm_user(F) xfrm4_tunnel(F) tunnel4(F) ipcomp(F) xfrm_ipcomp(F) authenc(F)
> esp4(F) ah4(F) xfrm4_mode_tunnel(F) deflate(F) zlib_deflate(F) ctr(F)
> twofish_generic(F) twofish_avx_x86_64(F) twofish_x86_64_3way(F)
> twofish_x86_64(F) twofish_common(F) camellia_generic(F)
> camellia_aesni_avx_x86_64(F) camellia_x86_64(F) serpent_avx_x86_64(F)
> serpent_sse2_x86_64(F) glue_helper(F) serpent_generic(F)
> blowfish_generic(F) blowfish_x86_64(F) blowfish_common(F)
> cast5_avx_x86_64(F) cast5_generic(F) cast_common(F) des_generic(F) xcbc(F)
> rmd160(F) crypto_null(F) af_key(F) xfrm_algo(F) 8021q(F) garp(F) stp(F)
> llc(F) ipmi_msghandler(F) autofs4(F) ghash_clmulni_intel(F) aesni_intel(F)
> ablk_helper(F) cryptd(F) lrw(F) aes_x86_64(F) xts(F) gf128mul(F) cirrus(F)
> ttm(F) drm_kms_helper(F) nfsd(F) nfs_acl(F) drm(F) auth_rpcgss(F)
> sysimgblt(F) nfs(F) psmouse(F) sysfillrect(F) syscopyarea(F) fscache(F)
> lockd(F) microcode(F) joydev(F) xen_kbdfront(F) i2c_piix4(F) serio_raw(F)
> lp(F) mac_hid(F) sunrpc(F) parport(F) floppy(F) bnx2(F) [last unloaded:
> ipmi_msghandler]
> [79464.816139] Pid: 0, comm: swapper/1 Tainted: GF
>  3.8.0-29-generic #42~precise1-Ubuntu
> [79464.816140] Call Trace:
> [79464.816142]  <IRQ>  [<ffffffff81059b0f>] warn_slowpath_common+0x7f/0xc0
> [79464.816149]  [<ffffffff8135b9d4>] ? timerqueue_add+0x64/0xb0
> [79464.816151]  [<ffffffff81059c06>] warn_slowpath_fmt+0x46/0x50
> [79464.816154]  [<ffffffff81076794>] ? wake_up_worker+0x24/0x30
> [79464.816157]  [<ffffffff81602062>] dev_watchdog+0x262/0x270
> [79464.816160]  [<ffffffff810771f0>] ? __queue_work+0x2d0/0x2d0
> [79464.816161]  [<ffffffff81601e00>] ? pfifo_fast_dequeue+0xe0/0xe0
> [79464.816164]  [<ffffffff8106995b>] call_timer_fn+0x3b/0x150
> [79464.816167]  [<ffffffff8144f5a1>] ? add_interrupt_randomness+0x41/0x190
> [79464.816170]  [<ffffffff8106b427>] run_timer_softirq+0x267/0x2c0
> [79464.816173]  [<ffffffff810ee3c9>] ? handle_irq_event_percpu+0xa9/0x210
> [79464.816175]  [<ffffffff81601e00>] ? pfifo_fast_dequeue+0xe0/0xe0
> [79464.816177]  [<ffffffff81062620>] __do_softirq+0xc0/0x240
> [79464.816180]  [<ffffffff810b67cd>] ? tick_do_update_jiffies64+0x9d/0xd0
> [79464.816184]  [<ffffffff816fdd5c>] call_softirq+0x1c/0x30
> [79464.816188]  [<ffffffff81016775>] do_softirq+0x65/0xa0
> [79464.816189]  [<ffffffff810628fe>] irq_exit+0x8e/0xb0
> [79464.816193]  [<ffffffff8140a125>] xen_evtchn_do_upcall+0x35/0x50
> [79464.816195]  [<ffffffff816fdeed>] xen_hvm_callback_vector+0x6d/0x80
> [79464.816196]  <EOI>  [<ffffffff81084008>] ? hrtimer_start+0x18/0x20
> [79464.816201]  [<ffffffff81045136>] ? native_safe_halt+0x6/0x10
> [79464.816204]  [<ffffffff8101cc33>] default_idle+0x53/0x1f0
> [79464.816206]  [<ffffffff8101dad9>] cpu_idle+0xd9/0x120
> [79464.816209]  [<ffffffff816d10fe>] start_secondary+0xc3/0xc5
> [79464.816210] ---[ end trace 48cf6b13be16e0ae ]---
> [79464.816214] bnx2 0000:00:05.0 eth1: <--- start FTQ dump --->
> [79464.816220] bnx2 0000:00:05.0 eth1: RV2P_PFTQ_CTL 00010000
> [79464.816225] bnx2 0000:00:05.0 eth1: RV2P_TFTQ_CTL 00020000
> [79464.816258] bnx2 0000:00:05.0 eth1: RV2P_MFTQ_CTL 00004000
> [79464.816263] bnx2 0000:00:05.0 eth1: TBDR_FTQ_CTL 00004000
> [79464.816268] bnx2 0000:00:05.0 eth1: TDMA_FTQ_CTL 00010000
> [79464.816272] bnx2 0000:00:05.0 eth1: TXP_FTQ_CTL 00010000
> [79464.816276] bnx2 0000:00:05.0 eth1: TXP_FTQ_CTL 00010000
> [79464.816280] bnx2 0000:00:05.0 eth1: TPAT_FTQ_CTL 00010000
> [79464.816285] bnx2 0000:00:05.0 eth1: RXP_CFTQ_CTL 00008000
> [79464.816289] bnx2 0000:00:05.0 eth1: RXP_FTQ_CTL 00100000
> [79464.816293] bnx2 0000:00:05.0 eth1: COM_COMXQ_FTQ_CTL 00010000
> [79464.816297] bnx2 0000:00:05.0 eth1: COM_COMTQ_FTQ_CTL 00020000
> [79464.816302] bnx2 0000:00:05.0 eth1: COM_COMQ_FTQ_CTL 00010000
> [79464.816306] bnx2 0000:00:05.0 eth1: CP_CPQ_FTQ_CTL 00004000
> [79464.816308] bnx2 0000:00:05.0 eth1: CPU states:
> [79464.816321] bnx2 0000:00:05.0 eth1: 045000 mode b84c state 80001000
> evt_mask 500 pc 8001288 pc 8001288 instr 38640001
> [79464.816335] bnx2 0000:00:05.0 eth1: 085000 mode b84c state 80005000
> evt_mask 500 pc 8000a5c pc 8000a5c instr 10400016
> [79464.816349] bnx2 0000:00:05.0 eth1: 0c5000 mode b84c state 80000000
> evt_mask 500 pc 8004c14 pc 8004c14 instr 32050003
> [79464.816362] bnx2 0000:00:05.0 eth1: 105000 mode b8cc state 80000000
> evt_mask 500 pc 8000a9c pc 8000a94 instr 8c420020
> [79464.816375] bnx2 0000:00:05.0 eth1: 145000 mode b880 state 80000000
> evt_mask 500 pc 8009c00 pc 800d948 instr 30420040
> [79464.816389] bnx2 0000:00:05.0 eth1: 185000 mode b8cc state 80008000
> evt_mask 500 pc 8000c58 pc 8000c58 instr 1092823
> [79464.816392] bnx2 0000:00:05.0 eth1: <--- end FTQ dump --->
> [79464.816394] bnx2 0000:00:05.0 eth1: <--- start TBDC dump --->
> [79464.816399] bnx2 0000:00:05.0 eth1: TBDC free cnt: 32
> [79464.816401] bnx2 0000:00:05.0 eth1: LINE     CID  BIDX   CMD  VALIDS
> [79464.816410] bnx2 0000:00:05.0 eth1: 00    001000  00e8   00    [0]
> [79464.816420] bnx2 0000:00:05.0 eth1: 01    001000  00e8   00    [0]
> [79464.816429] bnx2 0000:00:05.0 eth1: 02    000800  afc8   00    [0]
> [79464.816438] bnx2 0000:00:05.0 eth1: 03    000800  afb8   00    [0]
> [79464.816447] bnx2 0000:00:05.0 eth1: 04    000800  afd8   00    [0]
> [79464.816456] bnx2 0000:00:05.0 eth1: 05    000800  afe0   00    [0]
> [79464.816465] bnx2 0000:00:05.0 eth1: 06    000800  afe8   00    [0]
> [79464.816474] bnx2 0000:00:05.0 eth1: 07    000800  afd0   00    [0]
> [79464.816485] bnx2 0000:00:05.0 eth1: 08    001000  3510   00    [0]
> [79464.816494] bnx2 0000:00:05.0 eth1: 09    000800  aec0   00    [0]
> [79464.816504] bnx2 0000:00:05.0 eth1: 0a    001000  3530   00    [0]
> [79464.816514] bnx2 0000:00:05.0 eth1: 0b    000800  aec8   00    [0]
> [79464.816523] bnx2 0000:00:05.0 eth1: 0c    000800  aed0   00    [0]
> [79464.816559] bnx2 0000:00:05.0 eth1: 0d    001000  34f8   00    [0]
> [79464.816570] bnx2 0000:00:05.0 eth1: 0e    001000  3500   00    [0]
> [79464.816580] bnx2 0000:00:05.0 eth1: 0f    001000  3518   00    [0]
> [79464.816590] bnx2 0000:00:05.0 eth1: 10    1fbc00  2fe8   7d    [0]
> [79464.816599] bnx2 0000:00:05.0 eth1: 11    1ab780  fff8   7d    [0]
> [79464.816608] bnx2 0000:00:05.0 eth1: 12    17ff00  b908   f7    [0]
> [79464.816618] bnx2 0000:00:05.0 eth1: 13    0cb700  ff40   d7    [0]
> [79464.816627] bnx2 0000:00:05.0 eth1: 14    177a80  efe0   03    [0]
> [79464.816637] bnx2 0000:00:05.0 eth1: 15    037d80  9f88   72    [0]
> [79464.816646] bnx2 0000:00:05.0 eth1: 16    1bae00  eef8   ce    [0]
> [79464.816657] bnx2 0000:00:05.0 eth1: 17    1bbc80  a7f8   df    [0]
> [79464.816666] bnx2 0000:00:05.0 eth1: 18    17e180  6aa8   e4    [0]
> [79464.816675] bnx2 0000:00:05.0 eth1: 19    07ff80  6e50   dd    [0]
> [79464.816683] bnx2 0000:00:05.0 eth1: 1a    1fda80  f790   6e    [0]
> [79464.816694] bnx2 0000:00:05.0 eth1: 1b    151580  d7b0   fc    [0]
> [79464.816703] bnx2 0000:00:05.0 eth1: 1c    1b9f80  cef8   6b    [0]
> [79464.816712] bnx2 0000:00:05.0 eth1: 1d    1ebf00  ffa8   df    [0]
> [79464.816723] bnx2 0000:00:05.0 eth1: 1e    1e7e00  ff78   ef    [0]
> [79464.816731] bnx2 0000:00:05.0 eth1: 1f    166e80  fbd8   aa    [0]
> [79464.816733] bnx2 0000:00:05.0 eth1: <--- end TBDC dump --->
> [79464.817101] bnx2 0000:00:05.0 eth1: DEBUG: intr_sem[0] PCI_CMD[00100406]
> [79464.817239] bnx2 0000:00:05.0 eth1: DEBUG: PCI_PM[19002008]
> PCI_MISC_CFG[92000088]
> [79464.817248] bnx2 0000:00:05.0 eth1: DEBUG: EMAC_TX_STATUS[00000008]
> EMAC_RX_STATUS[00000000]
> [79464.817252] bnx2 0000:00:05.0 eth1: DEBUG: RPM_MGMT_PKT_CTRL[40000088]
> [79464.817257] bnx2 0000:00:05.0 eth1: DEBUG:
> HC_STATS_INTERRUPT_STATUS[01fc0003]
> [79464.817261] bnx2 0000:00:05.0 eth1: DEBUG: PBA[00000003]
> [79464.817264] bnx2 0000:00:05.0 eth1: <--- start MCP states dump --->
> [79464.817270] bnx2 0000:00:05.0 eth1: DEBUG: MCP_STATE_P0[0003611e]
> MCP_STATE_P1[0003611e]
> [79464.817278] bnx2 0000:00:05.0 eth1: DEBUG: MCP mode[0000b880]
> state[80000000] evt_mask[00000500]
> [79464.817286] bnx2 0000:00:05.0 eth1: DEBUG: pc[08003ebc] pc[0800d994]
> instr[32020020]
> [79464.817288] bnx2 0000:00:05.0 eth1: DEBUG: shmem states:
> [79464.817296] bnx2 0000:00:05.0 eth1: DEBUG: drv_mb[01030027]
> fw_mb[00000027] link_status[0008506b]
> [79464.817301]  drv_pulse_mb[0000338a]
> [79464.817306] bnx2 0000:00:05.0 eth1: DEBUG: dev_info_signature[44564907]
> reset_type[01005254]
> [79464.817310]  condition[0003611e]
> [79464.817318] bnx2 0000:00:05.0 eth1: DEBUG: 000001c0: 01005254 42530083
> 0003611e 00000000
> [79464.817328] bnx2 0000:00:05.0 eth1: DEBUG: 000003cc: 00000000 00000000
> 00000000 00000000
> [79464.817357] bnx2 0000:00:05.0 eth1: DEBUG: 000003dc: 00000000 00000000
> 00000000 00000000
> [79464.817367] bnx2 0000:00:05.0 eth1: DEBUG: 000003ec: 00000000 00000000
> 00000000 00000000
> [79464.817372] bnx2 0000:00:05.0 eth1: DEBUG: 0x3fc[00000000]
> [79464.817374] bnx2 0000:00:05.0 eth1: <--- end MCP states dump --->
> [79464.872988] bnx2 0000:00:05.0 eth1: NIC Copper Link is Down
> 
> 
> 
> On Mon, Feb 10, 2014 at 1:47 PM, Konrad Rzeszutek Wilk <
> konrad.wilk@oracle.com> wrote:
> 
> > On Mon, Feb 10, 2014 at 01:29:22PM -0500, Mike Neiderhauser wrote:
> > > Thanks for the answers on the timeline.
> > >
> > > When I start the HVM with th broadcom adapter, I get this message back.
> > > Parsing config from /etc/xen/ubuntu-hvm-1.cfg
> > > libxl: error: libxl_pci.c:990:libxl__device_pci_reset: The kernel doesn't
> > > support reset from sysfs for PCI device 0000:05:00.0
> > > libxl: error: libxl_pci.c:990:libxl__device_pci_reset: The kernel doesn't
> > > support reset from sysfs for PCI device 0000:05:00.1
> > >
> > > However, the devices appear in the HVM.  Is this something that I should
> > be
> > > concerned about?
> >
> > No. Xen pciback does the reset automatically.
> >
> > Actually we might want to ditch that reporting in libxl, or maybe just
> > implement a stub function in xen-pciback so that libxl will be happy.
> >
> > >
> > >
> > >
> > > On Mon, Feb 10, 2014 at 12:11 PM, George Dunlap <dunlapg@umich.edu>
> > wrote:
> > >
> > > > On Sat, Feb 8, 2014 at 5:42 PM, Mike Neiderhauser
> > > > <mikeneiderhauser@gmail.com> wrote:
> > > > > Works like a charm.  I do not have physical access to the computer
> > this
> > > > > weekend to verify that the cards are isolated, but the HVM starts and
> > > > > appears to be working well.
> > > > >
> > > > > When do you think Xen 4.4 will be released.  The article I read
> > > > mentioned it
> > > > > will be released in 2014 (hinting towards the end of February).  I
> > also
> > > > read
> > > > > 'When it is ready.'
> > > > >
> > > > > Any timeline would be great.
> > > >
> > > > I'm afraid that's about all we can give. :-)  We've locked down
> > > > development for 2 months now and are working on finding and fixing
> > > > bugs.  If there are no more blocker bugs or other unforeseen delays,
> > > > it should be out by the end of February.  But there are necessarily
> > > > significant unknowns, so we can't make any promises.
> > > >
> > > >  -George
> > > >
> >

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Xen 4.3 PCI passthrough possible bug
  2014-02-10 18:47         ` Konrad Rzeszutek Wilk
@ 2014-02-11 13:04           ` Mike Neiderhauser
  2014-02-12 18:25             ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 22+ messages in thread
From: Mike Neiderhauser @ 2014-02-11 13:04 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk; +Cc: George Dunlap, xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 11601 bytes --]

So I went ahead to tested the setup I am trying to achieve using xen.  This
setup basically requires two isolated machines that can be used for network
testing.  On the hvm mentioned above, this testing fails due to something I
cannot wrap my head around.  I believe it is still related to the PCI
passthrough of a device and I believe it is related to the libxl error
mentioned above. Can anyone shed some light on what is going on?  Is it a
driver issue? (Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet)

[79464.816085] ------------[ cut here ]------------
[79464.816093] WARNING: at
/build/buildd/linux-lts-raring-3.8.0/net/sched/sch_generic.c:254
dev_watchdog+0x262/0x270()
[79464.816094] Hardware name: HVM domU
[79464.816096] NETDEV WATCHDOG: eth1 (bnx2): transmit queue 1 timed out
[79464.816096] Modules linked in: esp6(F) ah6(F) xfrm6_mode_tunnel(F)
xfrm_user(F) xfrm4_tunnel(F) tunnel4(F) ipcomp(F) xfrm_ipcomp(F) authenc(F)
esp4(F) ah4(F) xfrm4_mode_tunnel(F) deflate(F) zlib_deflate(F) ctr(F)
twofish_generic(F) twofish_avx_x86_64(F) twofish_x86_64_3way(F)
twofish_x86_64(F) twofish_common(F) camellia_generic(F)
camellia_aesni_avx_x86_64(F) camellia_x86_64(F) serpent_avx_x86_64(F)
serpent_sse2_x86_64(F) glue_helper(F) serpent_generic(F)
blowfish_generic(F) blowfish_x86_64(F) blowfish_common(F)
cast5_avx_x86_64(F) cast5_generic(F) cast_common(F) des_generic(F) xcbc(F)
rmd160(F) crypto_null(F) af_key(F) xfrm_algo(F) 8021q(F) garp(F) stp(F)
llc(F) ipmi_msghandler(F) autofs4(F) ghash_clmulni_intel(F) aesni_intel(F)
ablk_helper(F) cryptd(F) lrw(F) aes_x86_64(F) xts(F) gf128mul(F) cirrus(F)
ttm(F) drm_kms_helper(F) nfsd(F) nfs_acl(F) drm(F) auth_rpcgss(F)
sysimgblt(F) nfs(F) psmouse(F) sysfillrect(F) syscopyarea(F) fscache(F)
lockd(F) microcode(F) joydev(F) xen_kbdfront(F) i2c_piix4(F) serio_raw(F)
lp(F) mac_hid(F) sunrpc(F) parport(F) floppy(F) bnx2(F) [last unloaded:
ipmi_msghandler]
[79464.816139] Pid: 0, comm: swapper/1 Tainted: GF
 3.8.0-29-generic #42~precise1-Ubuntu
[79464.816140] Call Trace:
[79464.816142]  <IRQ>  [<ffffffff81059b0f>] warn_slowpath_common+0x7f/0xc0
[79464.816149]  [<ffffffff8135b9d4>] ? timerqueue_add+0x64/0xb0
[79464.816151]  [<ffffffff81059c06>] warn_slowpath_fmt+0x46/0x50
[79464.816154]  [<ffffffff81076794>] ? wake_up_worker+0x24/0x30
[79464.816157]  [<ffffffff81602062>] dev_watchdog+0x262/0x270
[79464.816160]  [<ffffffff810771f0>] ? __queue_work+0x2d0/0x2d0
[79464.816161]  [<ffffffff81601e00>] ? pfifo_fast_dequeue+0xe0/0xe0
[79464.816164]  [<ffffffff8106995b>] call_timer_fn+0x3b/0x150
[79464.816167]  [<ffffffff8144f5a1>] ? add_interrupt_randomness+0x41/0x190
[79464.816170]  [<ffffffff8106b427>] run_timer_softirq+0x267/0x2c0
[79464.816173]  [<ffffffff810ee3c9>] ? handle_irq_event_percpu+0xa9/0x210
[79464.816175]  [<ffffffff81601e00>] ? pfifo_fast_dequeue+0xe0/0xe0
[79464.816177]  [<ffffffff81062620>] __do_softirq+0xc0/0x240
[79464.816180]  [<ffffffff810b67cd>] ? tick_do_update_jiffies64+0x9d/0xd0
[79464.816184]  [<ffffffff816fdd5c>] call_softirq+0x1c/0x30
[79464.816188]  [<ffffffff81016775>] do_softirq+0x65/0xa0
[79464.816189]  [<ffffffff810628fe>] irq_exit+0x8e/0xb0
[79464.816193]  [<ffffffff8140a125>] xen_evtchn_do_upcall+0x35/0x50
[79464.816195]  [<ffffffff816fdeed>] xen_hvm_callback_vector+0x6d/0x80
[79464.816196]  <EOI>  [<ffffffff81084008>] ? hrtimer_start+0x18/0x20
[79464.816201]  [<ffffffff81045136>] ? native_safe_halt+0x6/0x10
[79464.816204]  [<ffffffff8101cc33>] default_idle+0x53/0x1f0
[79464.816206]  [<ffffffff8101dad9>] cpu_idle+0xd9/0x120
[79464.816209]  [<ffffffff816d10fe>] start_secondary+0xc3/0xc5
[79464.816210] ---[ end trace 48cf6b13be16e0ae ]---
[79464.816214] bnx2 0000:00:05.0 eth1: <--- start FTQ dump --->
[79464.816220] bnx2 0000:00:05.0 eth1: RV2P_PFTQ_CTL 00010000
[79464.816225] bnx2 0000:00:05.0 eth1: RV2P_TFTQ_CTL 00020000
[79464.816258] bnx2 0000:00:05.0 eth1: RV2P_MFTQ_CTL 00004000
[79464.816263] bnx2 0000:00:05.0 eth1: TBDR_FTQ_CTL 00004000
[79464.816268] bnx2 0000:00:05.0 eth1: TDMA_FTQ_CTL 00010000
[79464.816272] bnx2 0000:00:05.0 eth1: TXP_FTQ_CTL 00010000
[79464.816276] bnx2 0000:00:05.0 eth1: TXP_FTQ_CTL 00010000
[79464.816280] bnx2 0000:00:05.0 eth1: TPAT_FTQ_CTL 00010000
[79464.816285] bnx2 0000:00:05.0 eth1: RXP_CFTQ_CTL 00008000
[79464.816289] bnx2 0000:00:05.0 eth1: RXP_FTQ_CTL 00100000
[79464.816293] bnx2 0000:00:05.0 eth1: COM_COMXQ_FTQ_CTL 00010000
[79464.816297] bnx2 0000:00:05.0 eth1: COM_COMTQ_FTQ_CTL 00020000
[79464.816302] bnx2 0000:00:05.0 eth1: COM_COMQ_FTQ_CTL 00010000
[79464.816306] bnx2 0000:00:05.0 eth1: CP_CPQ_FTQ_CTL 00004000
[79464.816308] bnx2 0000:00:05.0 eth1: CPU states:
[79464.816321] bnx2 0000:00:05.0 eth1: 045000 mode b84c state 80001000
evt_mask 500 pc 8001288 pc 8001288 instr 38640001
[79464.816335] bnx2 0000:00:05.0 eth1: 085000 mode b84c state 80005000
evt_mask 500 pc 8000a5c pc 8000a5c instr 10400016
[79464.816349] bnx2 0000:00:05.0 eth1: 0c5000 mode b84c state 80000000
evt_mask 500 pc 8004c14 pc 8004c14 instr 32050003
[79464.816362] bnx2 0000:00:05.0 eth1: 105000 mode b8cc state 80000000
evt_mask 500 pc 8000a9c pc 8000a94 instr 8c420020
[79464.816375] bnx2 0000:00:05.0 eth1: 145000 mode b880 state 80000000
evt_mask 500 pc 8009c00 pc 800d948 instr 30420040
[79464.816389] bnx2 0000:00:05.0 eth1: 185000 mode b8cc state 80008000
evt_mask 500 pc 8000c58 pc 8000c58 instr 1092823
[79464.816392] bnx2 0000:00:05.0 eth1: <--- end FTQ dump --->
[79464.816394] bnx2 0000:00:05.0 eth1: <--- start TBDC dump --->
[79464.816399] bnx2 0000:00:05.0 eth1: TBDC free cnt: 32
[79464.816401] bnx2 0000:00:05.0 eth1: LINE     CID  BIDX   CMD  VALIDS
[79464.816410] bnx2 0000:00:05.0 eth1: 00    001000  00e8   00    [0]
[79464.816420] bnx2 0000:00:05.0 eth1: 01    001000  00e8   00    [0]
[79464.816429] bnx2 0000:00:05.0 eth1: 02    000800  afc8   00    [0]
[79464.816438] bnx2 0000:00:05.0 eth1: 03    000800  afb8   00    [0]
[79464.816447] bnx2 0000:00:05.0 eth1: 04    000800  afd8   00    [0]
[79464.816456] bnx2 0000:00:05.0 eth1: 05    000800  afe0   00    [0]
[79464.816465] bnx2 0000:00:05.0 eth1: 06    000800  afe8   00    [0]
[79464.816474] bnx2 0000:00:05.0 eth1: 07    000800  afd0   00    [0]
[79464.816485] bnx2 0000:00:05.0 eth1: 08    001000  3510   00    [0]
[79464.816494] bnx2 0000:00:05.0 eth1: 09    000800  aec0   00    [0]
[79464.816504] bnx2 0000:00:05.0 eth1: 0a    001000  3530   00    [0]
[79464.816514] bnx2 0000:00:05.0 eth1: 0b    000800  aec8   00    [0]
[79464.816523] bnx2 0000:00:05.0 eth1: 0c    000800  aed0   00    [0]
[79464.816559] bnx2 0000:00:05.0 eth1: 0d    001000  34f8   00    [0]
[79464.816570] bnx2 0000:00:05.0 eth1: 0e    001000  3500   00    [0]
[79464.816580] bnx2 0000:00:05.0 eth1: 0f    001000  3518   00    [0]
[79464.816590] bnx2 0000:00:05.0 eth1: 10    1fbc00  2fe8   7d    [0]
[79464.816599] bnx2 0000:00:05.0 eth1: 11    1ab780  fff8   7d    [0]
[79464.816608] bnx2 0000:00:05.0 eth1: 12    17ff00  b908   f7    [0]
[79464.816618] bnx2 0000:00:05.0 eth1: 13    0cb700  ff40   d7    [0]
[79464.816627] bnx2 0000:00:05.0 eth1: 14    177a80  efe0   03    [0]
[79464.816637] bnx2 0000:00:05.0 eth1: 15    037d80  9f88   72    [0]
[79464.816646] bnx2 0000:00:05.0 eth1: 16    1bae00  eef8   ce    [0]
[79464.816657] bnx2 0000:00:05.0 eth1: 17    1bbc80  a7f8   df    [0]
[79464.816666] bnx2 0000:00:05.0 eth1: 18    17e180  6aa8   e4    [0]
[79464.816675] bnx2 0000:00:05.0 eth1: 19    07ff80  6e50   dd    [0]
[79464.816683] bnx2 0000:00:05.0 eth1: 1a    1fda80  f790   6e    [0]
[79464.816694] bnx2 0000:00:05.0 eth1: 1b    151580  d7b0   fc    [0]
[79464.816703] bnx2 0000:00:05.0 eth1: 1c    1b9f80  cef8   6b    [0]
[79464.816712] bnx2 0000:00:05.0 eth1: 1d    1ebf00  ffa8   df    [0]
[79464.816723] bnx2 0000:00:05.0 eth1: 1e    1e7e00  ff78   ef    [0]
[79464.816731] bnx2 0000:00:05.0 eth1: 1f    166e80  fbd8   aa    [0]
[79464.816733] bnx2 0000:00:05.0 eth1: <--- end TBDC dump --->
[79464.817101] bnx2 0000:00:05.0 eth1: DEBUG: intr_sem[0] PCI_CMD[00100406]
[79464.817239] bnx2 0000:00:05.0 eth1: DEBUG: PCI_PM[19002008]
PCI_MISC_CFG[92000088]
[79464.817248] bnx2 0000:00:05.0 eth1: DEBUG: EMAC_TX_STATUS[00000008]
EMAC_RX_STATUS[00000000]
[79464.817252] bnx2 0000:00:05.0 eth1: DEBUG: RPM_MGMT_PKT_CTRL[40000088]
[79464.817257] bnx2 0000:00:05.0 eth1: DEBUG:
HC_STATS_INTERRUPT_STATUS[01fc0003]
[79464.817261] bnx2 0000:00:05.0 eth1: DEBUG: PBA[00000003]
[79464.817264] bnx2 0000:00:05.0 eth1: <--- start MCP states dump --->
[79464.817270] bnx2 0000:00:05.0 eth1: DEBUG: MCP_STATE_P0[0003611e]
MCP_STATE_P1[0003611e]
[79464.817278] bnx2 0000:00:05.0 eth1: DEBUG: MCP mode[0000b880]
state[80000000] evt_mask[00000500]
[79464.817286] bnx2 0000:00:05.0 eth1: DEBUG: pc[08003ebc] pc[0800d994]
instr[32020020]
[79464.817288] bnx2 0000:00:05.0 eth1: DEBUG: shmem states:
[79464.817296] bnx2 0000:00:05.0 eth1: DEBUG: drv_mb[01030027]
fw_mb[00000027] link_status[0008506b]
[79464.817301]  drv_pulse_mb[0000338a]
[79464.817306] bnx2 0000:00:05.0 eth1: DEBUG: dev_info_signature[44564907]
reset_type[01005254]
[79464.817310]  condition[0003611e]
[79464.817318] bnx2 0000:00:05.0 eth1: DEBUG: 000001c0: 01005254 42530083
0003611e 00000000
[79464.817328] bnx2 0000:00:05.0 eth1: DEBUG: 000003cc: 00000000 00000000
00000000 00000000
[79464.817357] bnx2 0000:00:05.0 eth1: DEBUG: 000003dc: 00000000 00000000
00000000 00000000
[79464.817367] bnx2 0000:00:05.0 eth1: DEBUG: 000003ec: 00000000 00000000
00000000 00000000
[79464.817372] bnx2 0000:00:05.0 eth1: DEBUG: 0x3fc[00000000]
[79464.817374] bnx2 0000:00:05.0 eth1: <--- end MCP states dump --->
[79464.872988] bnx2 0000:00:05.0 eth1: NIC Copper Link is Down



On Mon, Feb 10, 2014 at 1:47 PM, Konrad Rzeszutek Wilk <
konrad.wilk@oracle.com> wrote:

> On Mon, Feb 10, 2014 at 01:29:22PM -0500, Mike Neiderhauser wrote:
> > Thanks for the answers on the timeline.
> >
> > When I start the HVM with th broadcom adapter, I get this message back.
> > Parsing config from /etc/xen/ubuntu-hvm-1.cfg
> > libxl: error: libxl_pci.c:990:libxl__device_pci_reset: The kernel doesn't
> > support reset from sysfs for PCI device 0000:05:00.0
> > libxl: error: libxl_pci.c:990:libxl__device_pci_reset: The kernel doesn't
> > support reset from sysfs for PCI device 0000:05:00.1
> >
> > However, the devices appear in the HVM.  Is this something that I should
> be
> > concerned about?
>
> No. Xen pciback does the reset automatically.
>
> Actually we might want to ditch that reporting in libxl, or maybe just
> implement a stub function in xen-pciback so that libxl will be happy.
>
> >
> >
> >
> > On Mon, Feb 10, 2014 at 12:11 PM, George Dunlap <dunlapg@umich.edu>
> wrote:
> >
> > > On Sat, Feb 8, 2014 at 5:42 PM, Mike Neiderhauser
> > > <mikeneiderhauser@gmail.com> wrote:
> > > > Works like a charm.  I do not have physical access to the computer
> this
> > > > weekend to verify that the cards are isolated, but the HVM starts and
> > > > appears to be working well.
> > > >
> > > > When do you think Xen 4.4 will be released.  The article I read
> > > mentioned it
> > > > will be released in 2014 (hinting towards the end of February).  I
> also
> > > read
> > > > 'When it is ready.'
> > > >
> > > > Any timeline would be great.
> > >
> > > I'm afraid that's about all we can give. :-)  We've locked down
> > > development for 2 months now and are working on finding and fixing
> > > bugs.  If there are no more blocker bugs or other unforeseen delays,
> > > it should be out by the end of February.  But there are necessarily
> > > significant unknowns, so we can't make any promises.
> > >
> > >  -George
> > >
>

[-- Attachment #1.2: Type: text/html, Size: 13965 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Xen 4.3 PCI passthrough possible bug
  2014-02-10 18:29       ` Mike Neiderhauser
@ 2014-02-10 18:47         ` Konrad Rzeszutek Wilk
  2014-02-11 13:04           ` Mike Neiderhauser
  0 siblings, 1 reply; 22+ messages in thread
From: Konrad Rzeszutek Wilk @ 2014-02-10 18:47 UTC (permalink / raw)
  To: Mike Neiderhauser; +Cc: George Dunlap, xen-devel

On Mon, Feb 10, 2014 at 01:29:22PM -0500, Mike Neiderhauser wrote:
> Thanks for the answers on the timeline.
> 
> When I start the HVM with th broadcom adapter, I get this message back.
> Parsing config from /etc/xen/ubuntu-hvm-1.cfg
> libxl: error: libxl_pci.c:990:libxl__device_pci_reset: The kernel doesn't
> support reset from sysfs for PCI device 0000:05:00.0
> libxl: error: libxl_pci.c:990:libxl__device_pci_reset: The kernel doesn't
> support reset from sysfs for PCI device 0000:05:00.1
> 
> However, the devices appear in the HVM.  Is this something that I should be
> concerned about?

No. Xen pciback does the reset automatically.

Actually we might want to ditch that reporting in libxl, or maybe just
implement a stub function in xen-pciback so that libxl will be happy.

> 
> 
> 
> On Mon, Feb 10, 2014 at 12:11 PM, George Dunlap <dunlapg@umich.edu> wrote:
> 
> > On Sat, Feb 8, 2014 at 5:42 PM, Mike Neiderhauser
> > <mikeneiderhauser@gmail.com> wrote:
> > > Works like a charm.  I do not have physical access to the computer this
> > > weekend to verify that the cards are isolated, but the HVM starts and
> > > appears to be working well.
> > >
> > > When do you think Xen 4.4 will be released.  The article I read
> > mentioned it
> > > will be released in 2014 (hinting towards the end of February).  I also
> > read
> > > 'When it is ready.'
> > >
> > > Any timeline would be great.
> >
> > I'm afraid that's about all we can give. :-)  We've locked down
> > development for 2 months now and are working on finding and fixing
> > bugs.  If there are no more blocker bugs or other unforeseen delays,
> > it should be out by the end of February.  But there are necessarily
> > significant unknowns, so we can't make any promises.
> >
> >  -George
> >

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Xen 4.3 PCI passthrough possible bug
  2014-02-10 17:11     ` George Dunlap
@ 2014-02-10 18:29       ` Mike Neiderhauser
  2014-02-10 18:47         ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 22+ messages in thread
From: Mike Neiderhauser @ 2014-02-10 18:29 UTC (permalink / raw)
  To: George Dunlap; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1437 bytes --]

Thanks for the answers on the timeline.

When I start the HVM with th broadcom adapter, I get this message back.
Parsing config from /etc/xen/ubuntu-hvm-1.cfg
libxl: error: libxl_pci.c:990:libxl__device_pci_reset: The kernel doesn't
support reset from sysfs for PCI device 0000:05:00.0
libxl: error: libxl_pci.c:990:libxl__device_pci_reset: The kernel doesn't
support reset from sysfs for PCI device 0000:05:00.1

However, the devices appear in the HVM.  Is this something that I should be
concerned about?



On Mon, Feb 10, 2014 at 12:11 PM, George Dunlap <dunlapg@umich.edu> wrote:

> On Sat, Feb 8, 2014 at 5:42 PM, Mike Neiderhauser
> <mikeneiderhauser@gmail.com> wrote:
> > Works like a charm.  I do not have physical access to the computer this
> > weekend to verify that the cards are isolated, but the HVM starts and
> > appears to be working well.
> >
> > When do you think Xen 4.4 will be released.  The article I read
> mentioned it
> > will be released in 2014 (hinting towards the end of February).  I also
> read
> > 'When it is ready.'
> >
> > Any timeline would be great.
>
> I'm afraid that's about all we can give. :-)  We've locked down
> development for 2 months now and are working on finding and fixing
> bugs.  If there are no more blocker bugs or other unforeseen delays,
> it should be out by the end of February.  But there are necessarily
> significant unknowns, so we can't make any promises.
>
>  -George
>

[-- Attachment #1.2: Type: text/html, Size: 2090 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Xen 4.3 PCI passthrough possible bug
  2014-02-08 17:42   ` Mike Neiderhauser
  2014-02-08 20:02     ` Pasi Kärkkäinen
@ 2014-02-10 17:11     ` George Dunlap
  2014-02-10 18:29       ` Mike Neiderhauser
  1 sibling, 1 reply; 22+ messages in thread
From: George Dunlap @ 2014-02-10 17:11 UTC (permalink / raw)
  To: Mike Neiderhauser; +Cc: xen-devel

On Sat, Feb 8, 2014 at 5:42 PM, Mike Neiderhauser
<mikeneiderhauser@gmail.com> wrote:
> Works like a charm.  I do not have physical access to the computer this
> weekend to verify that the cards are isolated, but the HVM starts and
> appears to be working well.
>
> When do you think Xen 4.4 will be released.  The article I read mentioned it
> will be released in 2014 (hinting towards the end of February).  I also read
> 'When it is ready.'
>
> Any timeline would be great.

I'm afraid that's about all we can give. :-)  We've locked down
development for 2 months now and are working on finding and fixing
bugs.  If there are no more blocker bugs or other unforeseen delays,
it should be out by the end of February.  But there are necessarily
significant unknowns, so we can't make any promises.

 -George

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Xen 4.3 PCI passthrough possible bug
  2014-02-08 17:42   ` Mike Neiderhauser
@ 2014-02-08 20:02     ` Pasi Kärkkäinen
  2014-02-10 17:11     ` George Dunlap
  1 sibling, 0 replies; 22+ messages in thread
From: Pasi Kärkkäinen @ 2014-02-08 20:02 UTC (permalink / raw)
  To: Mike Neiderhauser; +Cc: xen-devel

On Sat, Feb 08, 2014 at 12:42:31PM -0500, Mike Neiderhauser wrote:
>    Works like a charm.  I do not have physical access to the computer this
>    weekend to verify that the cards are isolated, but the HVM starts and
>    appears to be working well.
>    When do you think Xen 4.4 will be released.  The article I read mentioned
>    it will be released in 2014 (hinting towards the end of February).  I also
>    read 'When it is ready.'
>    Any timeline would be great.
>    Thanks again for your help!
> 

I *assume* there is going to be at least one more rc..

-- Pasi

>    On Sat, Feb 8, 2014 at 10:37 AM, Mike Neiderhauser
>    <[1]mikeneiderhauser@gmail.com> wrote:
> 
>      I will give it a shot.  Thanks!
> 
>      On Sat, Feb 8, 2014 at 10:36 AM, Konrad Wilk <[2]konrad.wilk@oracle.com>
>      wrote:
> 
>        ----- [3]mikeneiderhauser@gmail.com wrote:
>        >
>        > I followed this site
>        ([4]http://wiki.xenproject.org/wiki/Xen_4.4_RC3_test_instructions).
>        and then followed
>        ([5]http://wiki.xen.org/wiki/Compiling_Xen_From_Source)
>        >
>        Ah, so you are looking for the     xen_pt: Fix passthrough of device
>        with ROM.
>        which is not in the Xen 4.4-rc3 but in the master.
>        One thing you can do is:
>        cd xen/tools/qemu-xen-dir
>        git fetch upstream
>        git checkout origin/master
>        [you should see: "HEAD is now at 027c412... configure: Disable libtool
>        if -fPIE does not work with it (bug #1257099)"]
>        Go back to main xen directory:
>        cd ../../../
>        ./configure
>        make
>        make install
>        and you should be using now an newer version of QEMU with the fix.
>        >
> 
> 
>  git clone -b 4.4.0-rc3 git://[6]xenbits.xen.org/xen.git
>  >
> 
> 
>  Had to take some additional steps here to get all of the libs
>  # apt-get install build-essential
>  # apt-get install bcc bin86 gawk bridge-utils iproute libcurl3 libcurl4-openssl-dev bzip2 module-init-tools transfig tgif
>  # apt-get install texinfo texlive-latex-base texlive-latex-recommended texlive-fonts-extra texlive-fonts-recommended pciutils-dev mercurial
>  # apt-get install make gcc libc6-dev zlib1g-dev python python-dev python-twisted libncurses5-dev patch libvncserver-dev libsdl-dev libjpeg62-dev
>  # apt-get install iasl libbz2-dev e2fslibs-dev git-core uuid-dev ocaml ocaml-findlib libx11-dev bison flex xz-utils libyajl-dev
>  # apt-get install gettext
>  apt-get install libaio-dev
>  apt-get install libpixman-1-dev
> 
>  ./configure
>  make dist
>  make install
> 
>        >
>        >
>        >
>        > On Fri, Feb 7, 2014 at 4:49 PM, Konrad Rzeszutek Wilk
>        <[7]konrad.wilk@oracle.com> wrote:
>        >
> 
>          > On Fri, Feb 07, 2014 at 04:29:18PM -0500, Mike Neiderhauser wrote:
>          > > I did not use the patch.  I was assuming it was already patched
>          given
>          > > previous email.  Is the patch for qemu source or xen source?
>          >
>          >
>          It is for QEMU, but you are right - it should have been part
>          > of QEMU if you got the latest version of Xen-unstable.
>          >
>          > You didn't use some specific tag but just 'staging' ?
>          >
>          >
>          >
>          > >
>          > >
>          > > On Fri, Feb 7, 2014 at 4:01 PM, Konrad Rzeszutek Wilk <
>          > > [8]konrad.wilk@oracle.com> wrote:
>          > >
>          > > > On Fri, Feb 07, 2014 at 03:45:19PM -0500, Mike Neiderhauser
>          wrote:
>          > > > > Ok. I started ran the initscripts and now xl works.
>          > > > >
>          > > > > However, I still see the same behavior as before:
>          > > > >
>          > > >
>          > > > Did you use the patch that was mentioned in the URL?
>          > > >
>          > > > > root@fiat:~# xl create /etc/xen/ubuntu-hvm-0.cfg
>          > > > > Parsing config from /etc/xen/ubuntu-hvm-0.cfg
>          > > > > libxl: error: libxl_qmp.c:448:qmp_next: Socket read error:
>          Connection
>          > > > reset
>          > > > > by peer
>          > > > > libxl: error: libxl_qmp.c:691:libxl__qmp_initialize:
>          Connection error:
>          > > > > Connection refused
>          > > > > libxl: error: libxl_qmp.c:691:libxl__qmp_initialize:
>          Connection error:
>          > > > > Connection refused
>          > > > > libxl: error: libxl_qmp.c:691:libxl__qmp_initialize:
>          Connection error:
>          > > > > Connection refused
>          > > > > root@fiat:~# xl list
>          > > > > Name                                        ID   Mem VCPUs
>          State Time(s)
>          > > > > Domain-0                                     0  1024     1
>            r-----
>          > > > >  15.2
>          > > > > ubuntu-hvm-0                                 1  1025     1
>            ------
>          > > > > 0.0
>          > > > >
>          > > > > (XEN)  Dom0 kernel: 64-bit, PAE, lsb, paddr 0x1000000 ->
>          0x23f3000
>          > > > > (XEN) PHYSICAL MEMORY ARRANGEMENT:
>          > > > > (XEN)  Dom0 alloc.:   0000000134000000->0000000138000000
>          (233690 pages to
>          > > > > be allocated)
>          > > > > (XEN)  Init. ramdisk: 000000013d0da000->000000013ffffe00
>          > > > > (XEN) VIRTUAL MEMORY ARRANGEMENT:
>          > > > > (XEN)  Loaded kernel: ffffffff81000000->ffffffff823f3000
>          > > > > (XEN)  Init. ramdisk: ffffffff823f3000->ffffffff85318e00
>          > > > > (XEN)  Phys-Mach map: ffffffff85319000->ffffffff85519000
>          > > > > (XEN)  Start info:    ffffffff85519000->ffffffff855194b4
>          > > > > (XEN)  Page tables:   ffffffff8551a000->ffffffff85549000
>          > > > > (XEN)  Boot stack:    ffffffff85549000->ffffffff8554a000
>          > > > > (XEN)  TOTAL:         ffffffff80000000->ffffffff85800000
>          > > > > (XEN)  ENTRY ADDRESS: ffffffff81d261e0
>          > > > > (XEN) Dom0 has maximum 1 VCPUs
>          > > > > (XEN) elf_load_binary: phdr 0 at 0xffffffff81000000 ->
>          0xffffffff81b2f000
>          > > > > (XEN) elf_load_binary: phdr 1 at 0xffffffff81c00000 ->
>          0xffffffff81d0f0f0
>          > > > > (XEN) elf_load_binary: phdr 2 at 0xffffffff81d10000 ->
>          0xffffffff81d252c0
>          > > > > (XEN) elf_load_binary: phdr 3 at 0xffffffff81d26000 ->
>          0xffffffff81e6d000
>          > > > > (XEN) Scrubbing Free RAM: .............................done.
>          > > > > (XEN) Initial low memory virq threshold set at 0x4000 pages.
>          > > > > (XEN) Std. Loglevel: All
>          > > > > (XEN) Guest Loglevel: All
>          > > > > (XEN) Xen is relinquishing VGA console.
>          > > > > (XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to
>          switch input
>          > > > > to Xen)
>          > > > > (XEN) Freed 260kB init memory.
>          > > > > (XEN) PCI add device 0000:00:00.0
>          > > > > (XEN) PCI add device 0000:00:01.0
>          > > > > (XEN) PCI add device 0000:00:1a.0
>          > > > > (XEN) PCI add device 0000:00:1c.0
>          > > > > (XEN) PCI add device 0000:00:1d.0
>          > > > > (XEN) PCI add device 0000:00:1e.0
>          > > > > (XEN) PCI add device 0000:00:1f.0
>          > > > > (XEN) PCI add device 0000:00:1f.2
>          > > > > (XEN) PCI add device 0000:00:1f.3
>          > > > > (XEN) PCI add device 0000:01:00.0
>          > > > > (XEN) PCI add device 0000:02:02.0
>          > > > > (XEN) PCI add device 0000:02:04.0
>          > > > > (XEN) PCI add device 0000:03:00.0
>          > > > > (XEN) PCI add device 0000:03:00.1
>          > > > > (XEN) PCI add device 0000:04:00.0
>          > > > > (XEN) PCI add device 0000:04:00.1
>          > > > > (XEN) PCI add device 0000:05:00.0
>          > > > > (XEN) PCI add device 0000:05:00.1
>          > > > > (XEN) PCI add device 0000:06:03.0
>          > > > > (XEN) page_alloc.c:1460:d0 Over-allocation for domain 1:
>          262401 > 262400
>          > > > > (XEN) memory.c:158:d0 Could not allocate order=0 extent:
>          id=1 memflags=0
>          > > > > (200 of 1024)
>          > > > > (d1) HVM Loader
>          > > > > (d1) Detected Xen v4.4-rc2
>          > > > > (d1) Xenbus rings @0xfeffc000, event channel 4
>          > > > > (d1) System requested SeaBIOS
>          > > > > (d1) CPU speed is 3093 MHz
>          > > > > (d1) Relocating guest memory for lowmem MMIO space disabled
>          > > > >
>          > > > >
>          > > > > Excerpt from /var/log/xen/*
>          > > > > qemu: hardware error: xen: failed to populate ram at
>          40050000
>          > > > >
>          > > > >
>          > > > > On Fri, Feb 7, 2014 at 3:39 PM, Konrad Rzeszutek Wilk <
>          > > > > [9]konrad.wilk@oracle.com> wrote:
>          > > > >
>          > > > > > On Fri, Feb 07, 2014 at 03:36:49PM -0500, Mike
>          Neiderhauser wrote:
>          > > > > > > I was able to compile and install xen4.4 RC3 on my host,
>          however I am
>          > > > > > > getting the error:
>          > > > > > >
>          > > > > > > root@fiat:~/git/xen# xl list
>          > > > > > > xc: error: Could not obtain handle on privileged command
>          interface
>          > > > (2 =
>          > > > > > No
>          > > > > > > such file or directory): Internal error
>          > > > > > > libxl: error: libxl.c:92:libxl_ctx_alloc: cannot open
>          libxc handle:
>          > > > No
>          > > > > > such
>          > > > > > > file or directory
>          > > > > > > cannot init xl context
>          > > > > > >
>          > > > > > > I've google searched for this and an article appears,
>          but is not the
>          > > > same
>          > > > > > > (as far as I can tell).  Running any xl command
>          generates a similar
>          > > > > > error.
>          > > > > > >
>          > > > > > > What can I do to fix this?
>          > > > > >
>          > > > > >
>          > > > > > You need to run the initscripts for Xen. I don't know what
>          your distro
>          > > > is,
>          > > > > > but
>          > > > > > they are usually put in /etc/init.d/rc.d/xen*
>          > > > > >
>          > > > > >
>          > > > > > >
>          > > > > > > Regards
>          > > > > > >
>          > > > > > >
>          > > > > > > On Fri, Feb 7, 2014 at 1:40 PM, Mike Neiderhauser <
>          > > > > > > [10]mikeneiderhauser@gmail.com> wrote:
>          > > > > > >
>          > > > > > > > Much. Do I need to install from src or is there a
>          package I can
>          > > > > > install.
>          > > > > > > >
>          > > > > > > > Regards
>          > > > > > > >
>          > > > > > > >
>          > > > > > > > On Fri, Feb 7, 2014 at 1:30 PM, Konrad Rzeszutek Wilk
>          <
>          > > > > > > > [11]konrad.wilk@oracle.com> wrote:
>          > > > > > > >
>          > > > > > > >> On Fri, Feb 07, 2014 at 10:53:22AM -0500, Mike
>          Neiderhauser wrote:
>          > > > > > > >> > I did not.  I do not have the toolchain installed.
>           I may have
>          > > > time
>          > > > > > > >> later
>          > > > > > > >> > today to try the patch.  Are there any specific
>          instructions on
>          > > > how
>          > > > > > to
>          > > > > > > >> > patch the src, compile and install?
>          > > > > > > >>
>          > > > > > > >> There actually should be a new version of Xen 4.4-rcX
>          which will
>          > > > have
>          > > > > > the
>          > > > > > > >> fix. That might be easier for you?
>          > > > > > > >> >
>          > > > > > > >> > Regards
>          > > > > > > >> >
>          > > > > > > >> >
>          > > > > > > >> > On Fri, Feb 7, 2014 at 10:25 AM, Konrad Rzeszutek
>          Wilk <
>          > > > > > > >> > [12]konrad.wilk@oracle.com> wrote:
>          > > > > > > >> >
>          > > > > > > >> > > On Thu, Feb 06, 2014 at 09:39:37AM -0500, Mike
>          Neiderhauser
>          > > > wrote:
>          > > > > > > >> > > > Hi all,
>          > > > > > > >> > > >
>          > > > > > > >> > > > I am attempting to do a pci passthrough of an
>          Intel ET card
>          > > > > > (4x1G
>          > > > > > > >> NIC)
>          > > > > > > >> > > to a
>          > > > > > > >> > > > HVM.  I have been attempting to resolve this
>          issue on the
>          > > > > > xen-users
>          > > > > > > >> list,
>          > > > > > > >> > > > but it was advised to post this issue to this
>          list. (Initial
>          > > > > > > >> Message -
>          > > > > > > >> > > >
>          > > > > > > >> > >
>          > > > > > > >>
>          > > > > >
>          > > >
>          [13]http://lists.xenproject.org/archives/html/xen-users/2014-02/msg00036.html
>          > > > > > > >> )
>          > > > > > > >> > > >
>          > > > > > > >> > > > The machine I am using as host is a Dell
>          Poweredge server
>          > > > with a
>          > > > > > > >> Xeon
>          > > > > > > >> > > > E31220 with 4GB of ram.
>          > > > > > > >> > > >
>          > > > > > > >> > > > The possible bug is the following:
>          > > > > > > >> > > > root@fiat:/var/log/xen# cat
>          qemu-dm-ubuntu-hvm-0.log
>          > > > > > > >> > > > char device redirected to /dev/pts/5 (label
>          serial0)
>          > > > > > > >> > > > qemu: hardware error: xen: failed to populate
>          ram at
>          > > > 40030000
>          > > > > > > >> > > > ....
>          > > > > > > >> > > >
>          > > > > > > >> > > > I believe it may be similar to this thread
>          > > > > > > >> > > >
>          > > > > > > >> > >
>          > > > > > > >>
>          > > > > >
>          > > >
>          [14]http://markmail.org/message/3zuiojywempoorxj#query:+page:1+mid:gul34vbe4uyog2d4+state:results
>          > > > > > > >> > > >
>          > > > > > > >> > > >
>          > > > > > > >> > > > Additional info that may be helpful is below.
>          > > > > > > >> > >
>          > > > > > > >> > > Did you try the patch?
>          > > > > > > >> > > >
>          > > > > > > >> > > > Please let me know if you need any additional
>          information.
>          > > > > > > >> > > >
>          > > > > > > >> > > > Thanks in advance for any help provided!
>          > > > > > > >> > > > Regards
>          > > > > > > >> > > >
>          > > > > > > >> > > >
>          ###########################################################
>          > > > > > > >> > > > root@fiat:~# cat /etc/xen/ubuntu-hvm-0.cfg
>          > > > > > > >> > > >
>          ###########################################################
>          > > > > > > >> > > > # Configuration file for Xen HVM
>          > > > > > > >> > > >
>          > > > > > > >> > > > # HVM Name (as appears in 'xl list')
>          > > > > > > >> > > > name="ubuntu-hvm-0"
>          > > > > > > >> > > > # HVM Build settings (+ hardware)
>          > > > > > > >> > > > #kernel = "/usr/lib/xen-4.3/boot/hvmloader"
>          > > > > > > >> > > > builder='hvm'
>          > > > > > > >> > > > device_model='qemu-dm'
>          > > > > > > >> > > > memory=1024
>          > > > > > > >> > > > vcpus=2
>          > > > > > > >> > > >
>          > > > > > > >> > > > # Virtual Interface
>          > > > > > > >> > > > # Network bridge to USB NIC
>          > > > > > > >> > > > vif=['bridge=xenbr0']
>          > > > > > > >> > > >
>          > > > > > > >> > > > ################### PCI PASSTHROUGH
>          ###################
>          > > > > > > >> > > > # PCI Permissive mode toggle
>          > > > > > > >> > > > #pci_permissive=1
>          > > > > > > >> > > >
>          > > > > > > >> > > > # All PCI Devices
>          > > > > > > >> > > > #pci=['03:00.0', '03:00.1', '04:00.0',
>          '04:00.1', '05:00.0',
>          > > > > > > >> '05:00.1']
>          > > > > > > >> > > >
>          > > > > > > >> > > > # First two ports on Intel 4x1G NIC
>          > > > > > > >> > > > #pci=['03:00.0','03:00.1']
>          > > > > > > >> > > >
>          > > > > > > >> > > > # Last two ports on Intel 4x1G NIC
>          > > > > > > >> > > > #pci=['04:00.0', '04:00.1']
>          > > > > > > >> > > >
>          > > > > > > >> > > > # All ports on Intel 4x1G NIC
>          > > > > > > >> > > > pci=['03:00.0', '03:00.1', '04:00.0',
>          '04:00.1']
>          > > > > > > >> > > >
>          > > > > > > >> > > > # Brodcom 2x1G NIC
>          > > > > > > >> > > > #pci=['05:00.0', '05:00.1']
>          > > > > > > >> > > > ################### PCI PASSTHROUGH
>          ###################
>          > > > > > > >> > > >
>          > > > > > > >> > > > # HVM Disks
>          > > > > > > >> > > > # Hard disk only
>          > > > > > > >> > > > # Boot from HDD first ('c')
>          > > > > > > >> > > > boot="c"
>          > > > > > > >> > > > disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w']
>          > > > > > > >> > > >
>          > > > > > > >> > > > # Hard disk with ISO
>          > > > > > > >> > > > # Boot from ISO first ('d')
>          > > > > > > >> > > > #boot="d"
>          > > > > > > >> > > > #disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w',
>          > > > > > > >> > > >
>          'file:/root/ubuntu-12.04.3-server-amd64.iso,hdc:cdrom,r']
>          > > > > > > >> > > >
>          > > > > > > >> > > > # ACPI Enable
>          > > > > > > >> > > > acpi=1
>          > > > > > > >> > > > # HVM Event Modes
>          > > > > > > >> > > > on_poweroff='destroy'
>          > > > > > > >> > > > on_reboot='restart'
>          > > > > > > >> > > > on_crash='restart'
>          > > > > > > >> > > >
>          > > > > > > >> > > > # Serial Console Configuration (Xen Console)
>          > > > > > > >> > > > sdl=0
>          > > > > > > >> > > > serial='pty'
>          > > > > > > >> > > >
>          > > > > > > >> > > > # VNC Configuration
>          > > > > > > >> > > > # Only reacable from localhost
>          > > > > > > >> > > > vnc=1
>          > > > > > > >> > > > vnclisten="0.0.0.0"
>          > > > > > > >> > > > vncpasswd=""
>          > > > > > > >> > > >
>          > > > > > > >> > > >
>          ###########################################################
>          > > > > > > >> > > > Copied for xen-users list
>          > > > > > > >> > > >
>          ###########################################################
>          > > > > > > >> > > >
>          > > > > > > >> > > > It appears that it cannot obtain the RAM
>          mapping for this
>          > > > PCI
>          > > > > > > >> device.
>          > > > > > > >> > > >
>          > > > > > > >> > > >
>          > > > > > > >> > > > I rebooted the Host.  I ran assigned pci
>          devices to
>          > > > pciback. The
>          > > > > > > >> output
>          > > > > > > >> > > > looks like:
>          > > > > > > >> > > > root@fiat:~# ./dev_mgmt.sh
>          > > > > > > >> > > > Loading Kernel Module 'xen-pciback'
>          > > > > > > >> > > > Calling function pciback_dev for:
>          > > > > > > >> > > > PCI DEVICE 0000:03:00.0
>          > > > > > > >> > > > Unbinding 0000:03:00.0 from igb
>          > > > > > > >> > > > Binding 0000:03:00.0 to pciback
>          > > > > > > >> > > >
>          > > > > > > >> > > > PCI DEVICE 0000:03:00.1
>          > > > > > > >> > > > Unbinding 0000:03:00.1 from igb
>          > > > > > > >> > > > Binding 0000:03:00.1 to pciback
>          > > > > > > >> > > >
>          > > > > > > >> > > > PCI DEVICE 0000:04:00.0
>          > > > > > > >> > > > Unbinding 0000:04:00.0 from igb
>          > > > > > > >> > > > Binding 0000:04:00.0 to pciback
>          > > > > > > >> > > >
>          > > > > > > >> > > > PCI DEVICE 0000:04:00.1
>          > > > > > > >> > > > Unbinding 0000:04:00.1 from igb
>          > > > > > > >> > > > Binding 0000:04:00.1 to pciback
>          > > > > > > >> > > >
>          > > > > > > >> > > > PCI DEVICE 0000:05:00.0
>          > > > > > > >> > > > Unbinding 0000:05:00.0 from bnx2
>          > > > > > > >> > > > Binding 0000:05:00.0 to pciback
>          > > > > > > >> > > >
>          > > > > > > >> > > > PCI DEVICE 0000:05:00.1
>          > > > > > > >> > > > Unbinding 0000:05:00.1 from bnx2
>          > > > > > > >> > > > Binding 0000:05:00.1 to pciback
>          > > > > > > >> > > >
>          > > > > > > >> > > > Listing PCI Devices Available to Xen
>          > > > > > > >> > > > 0000:03:00.0
>          > > > > > > >> > > > 0000:03:00.1
>          > > > > > > >> > > > 0000:04:00.0
>          > > > > > > >> > > > 0000:04:00.1
>          > > > > > > >> > > > 0000:05:00.0
>          > > > > > > >> > > > 0000:05:00.1
>          > > > > > > >> > > >
>          > > > > > > >> > > >
>          ###########################################################
>          > > > > > > >> > > > root@fiat:~# xl -vvv create
>          /etc/xen/ubuntu-hvm-0.cfg
>          > > > > > > >> > > > Parsing config from /etc/xen/ubuntu-hvm-0.cfg
>          > > > > > > >> > > > WARNING: ignoring device_model directive.
>          > > > > > > >> > > > WARNING: Use "device_model_override" instead if
>          you really
>          > > > want
>          > > > > > a
>          > > > > > > >> > > > non-default device_model
>          > > > > > > >> > > > libxl: debug:
>          libxl_create.c:1230:do_domain_create: ao
>          > > > > > 0x210c360:
>          > > > > > > >> create:
>          > > > > > > >> > > > how=(nil) callback=(nil) poller=0x210c3c0
>          > > > > > > >> > > > libxl: debug:
>          > > > libxl_device.c:257:libxl__device_disk_set_backend:
>          > > > > > > >> Disk
>          > > > > > > >> > > > vdev=hda spec.backend=unknown
>          > > > > > > >> > > > libxl: debug:
>          > > > libxl_device.c:296:libxl__device_disk_set_backend:
>          > > > > > > >> Disk
>          > > > > > > >> > > > vdev=hda, using backend phy
>          > > > > > > >> > > > libxl: debug:
>          libxl_create.c:675:initiate_domain_create:
>          > > > running
>          > > > > > > >> > > bootloader
>          > > > > > > >> > > > libxl: debug:
>          libxl_bootloader.c:321:libxl__bootloader_run:
>          > > > not
>          > > > > > a PV
>          > > > > > > >> > > > domain, skipping bootloader
>          > > > > > > >> > > > libxl: debug:
>          > > > libxl_event.c:608:libxl__ev_xswatch_deregister:
>          > > > > > watch
>          > > > > > > >> > > > w=0x210c728: deregister unregistered
>          > > > > > > >> > > > libxl: debug:
>          libxl_numa.c:475:libxl__get_numa_candidate:
>          > > > New
>          > > > > > best
>          > > > > > > >> NUMA
>          > > > > > > >> > > > placement candidate found: nr_nodes=1,
>          nr_cpus=4,
>          > > > nr_vcpus=3,
>          > > > > > > >> > > > free_memkb=2980
>          > > > > > > >> > > > libxl: detail:
>          libxl_dom.c:195:numa_place_domain: NUMA
>          > > > placement
>          > > > > > > >> > > candidate
>          > > > > > > >> > > > with 1 nodes, 4 cpus and 2980 KB free selected
>          > > > > > > >> > > > xc: detail: elf_parse_binary: phdr:
>          paddr=0x100000
>          > > > memsz=0xa69a4
>          > > > > > > >> > > > xc: detail: elf_parse_binary: memory: 0x100000
>          -> 0x1a69a4
>          > > > > > > >> > > > xc: info: VIRTUAL MEMORY ARRANGEMENT:
>          > > > > > > >> > > >   Loader:
>           0000000000100000->00000000001a69a4
>          > > > > > > >> > > >   Modules:
>          0000000000000000->0000000000000000
>          > > > > > > >> > > >   TOTAL:
>          0000000000000000->000000003f800000
>          > > > > > > >> > > >   ENTRY ADDRESS: 0000000000100608
>          > > > > > > >> > > > xc: info: PHYSICAL MEMORY ALLOCATION:
>          > > > > > > >> > > >   4KB PAGES: 0x0000000000000200
>          > > > > > > >> > > >   2MB PAGES: 0x00000000000001fb
>          > > > > > > >> > > >   1GB PAGES: 0x0000000000000000
>          > > > > > > >> > > > xc: detail: elf_load_binary: phdr 0 at
>          0x7f022c779000 ->
>          > > > > > > >> 0x7f022c81682d
>          > > > > > > >> > > > libxl: debug:
>          > > > libxl_device.c:257:libxl__device_disk_set_backend:
>          > > > > > > >> Disk
>          > > > > > > >> > > > vdev=hda spec.backend=phy
>          > > > > > > >> > > > libxl: debug:
>          libxl_event.c:559:libxl__ev_xswatch_register:
>          > > > > > watch
>          > > > > > > >> > > > w=0x2112f48
>          wpath=/local/domain/0/backend/vbd/2/768/state
>          > > > > > token=3/0:
>          > > > > > > >> > > > register slotnum=3
>          > > > > > > >> > > > libxl: debug:
>          libxl_create.c:1243:do_domain_create: ao
>          > > > > > 0x210c360:
>          > > > > > > >> > > > inprogress: poller=0x210c3c0, flags=i
>          > > > > > > >> > > > libxl: debug:
>          libxl_event.c:503:watchfd_callback: watch
>          > > > > > w=0x2112f48
>          > > > > > > >> > > > wpath=/local/domain/0/backend/vbd/2/768/state
>          token=3/0:
>          > > > event
>          > > > > > > >> > > > epath=/local/domain/0/backend/vbd/2/768/state
>          > > > > > > >> > > > libxl: debug:
>          libxl_event.c:647:devstate_watch_callback:
>          > > > backend
>          > > > > > > >> > > > /local/domain/0/backend/vbd/2/768/state wanted
>          state 2 still
>          > > > > > waiting
>          > > > > > > >> > > state 1
>          > > > > > > >> > > > libxl: debug:
>          libxl_event.c:503:watchfd_callback: watch
>          > > > > > w=0x2112f48
>          > > > > > > >> > > > wpath=/local/domain/0/backend/vbd/2/768/state
>          token=3/0:
>          > > > event
>          > > > > > > >> > > > epath=/local/domain/0/backend/vbd/2/768/state
>          > > > > > > >> > > > libxl: debug:
>          libxl_event.c:643:devstate_watch_callback:
>          > > > backend
>          > > > > > > >> > > > /local/domain/0/backend/vbd/2/768/state wanted
>          state 2 ok
>          > > > > > > >> > > > libxl: debug:
>          > > > libxl_event.c:596:libxl__ev_xswatch_deregister:
>          > > > > > watch
>          > > > > > > >> > > > w=0x2112f48
>          wpath=/local/domain/0/backend/vbd/2/768/state
>          > > > > > token=3/0:
>          > > > > > > >> > > > deregister slotnum=3
>          > > > > > > >> > > > libxl: debug:
>          > > > libxl_event.c:608:libxl__ev_xswatch_deregister:
>          > > > > > watch
>          > > > > > > >> > > > w=0x2112f48: deregister unregistered
>          > > > > > > >> > > > libxl: debug:
>          libxl_device.c:959:device_hotplug: calling
>          > > > hotplug
>          > > > > > > >> script:
>          > > > > > > >> > > > /etc/xen/scripts/block add
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1206:libxl__spawn_local_dm:
>          > > > Spawning
>          > > > > > > >> > > device-model
>          > > > > > > >> > > > /usr/bin/qemu-system-i386 with arguments:
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:
>          > > > > > > >> > > > /usr/bin/qemu-system-i386
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:
>          > > > > > -xen-domid
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:   2
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:
>          > > > -chardev
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:
>          > > > > > > >> > > >
>          > > >
>          socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-2,server,nowait
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:   -mon
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:
>          > > > > > > >> > > > chardev=libxl-cmd,mode=control
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:   -name
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:
>          > > > > > ubuntu-hvm-0
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:   -vnc
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:
>          > > > > > [15]0.0.0.0:0
>          > > > > > > >> ,to=99
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:
>          > > > -global
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:
>          > > > > > > >> isa-fdc.driveA=
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:
>          > > > -serial
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:   pty
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:   -vga
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:
>          > > > cirrus
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:
>          > > > -global
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:
>          > > > > > > >> vga.vram_size_mb=8
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:   -boot
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:
>          > > > order=c
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:   -smp
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:
>          > > > > > 2,maxcpus=2
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:
>          > > > -device
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:
>          > > > > > > >> > > >
>          rtl8139,id=nic0,netdev=net0,mac=00:16:3e:23:44:2c
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:
>          > > > -netdev
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:
>          > > > > > > >> > > >
>          type=tap,id=net0,ifname=vif2.0-emu,script=no,downscript=no
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:   -M
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:   xenfv
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:   -m
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:   1016
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:
>          > > > -drive
>          > > > > > > >> > > > libxl: debug:
>          libxl_dm.c:1208:libxl__spawn_local_dm:
>          > > > > > > >> > > >
>          > > > > > > >> > >
>          > > > > > > >>
>          > > > > >
>          > > >
>          file=/dev/ubuntu-vg/ubuntu-hvm-0,if=ide,index=0,media=disk,format=raw,cache=writeback
>          > > > > > > >> > > > libxl: debug:
>          libxl_event.c:559:libxl__ev_xswatch_register:
>          > > > > > watch
>          > > > > > > >> > > > w=0x210c960
>          wpath=/local/domain/0/device-model/2/state
>          > > > > > token=3/1:
>          > > > > > > >> > > register
>          > > > > > > >> > > > slotnum=3
>          > > > > > > >> > > > libxl: debug:
>          libxl_event.c:503:watchfd_callback: watch
>          > > > > > w=0x210c960
>          > > > > > > >> > > > wpath=/local/domain/0/device-model/2/state
>          token=3/1: event
>          > > > > > > >> > > > epath=/local/domain/0/device-model/2/state
>          > > > > > > >> > > > libxl: debug:
>          libxl_event.c:503:watchfd_callback: watch
>          > > > > > w=0x210c960
>          > > > > > > >> > > > wpath=/local/domain/0/device-model/2/state
>          token=3/1: event
>          > > > > > > >> > > > epath=/local/domain/0/device-model/2/state
>          > > > > > > >> > > > libxl: debug:
>          > > > libxl_event.c:596:libxl__ev_xswatch_deregister:
>          > > > > > watch
>          > > > > > > >> > > > w=0x210c960
>          wpath=/local/domain/0/device-model/2/state
>          > > > > > token=3/1:
>          > > > > > > >> > > > deregister slotnum=3
>          > > > > > > >> > > > libxl: debug:
>          > > > libxl_event.c:608:libxl__ev_xswatch_deregister:
>          > > > > > watch
>          > > > > > > >> > > > w=0x210c960: deregister unregistered
>          > > > > > > >> > > > libxl: debug:
>          libxl_qmp.c:707:libxl__qmp_initialize:
>          > > > connected
>          > > > > > to
>          > > > > > > >> > > > /var/run/xen/qmp-libxl-2
>          > > > > > > >> > > > libxl: debug:
>          libxl_qmp.c:299:qmp_handle_response: message
>          > > > > > type: qmp
>          > > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare:
>          next qmp
>          > > > > > command: '{
>          > > > > > > >> > > >     "execute": "qmp_capabilities",
>          > > > > > > >> > > >     "id": 1
>          > > > > > > >> > > > }
>          > > > > > > >> > > > '
>          > > > > > > >> > > > libxl: debug:
>          libxl_qmp.c:299:qmp_handle_response: message
>          > > > type:
>          > > > > > > >> return
>          > > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare:
>          next qmp
>          > > > > > command: '{
>          > > > > > > >> > > >     "execute": "query-chardev",
>          > > > > > > >> > > >     "id": 2
>          > > > > > > >> > > > }
>          > > > > > > >> > > > '
>          > > > > > > >> > > > libxl: debug:
>          libxl_qmp.c:299:qmp_handle_response: message
>          > > > type:
>          > > > > > > >> return
>          > > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare:
>          next qmp
>          > > > > > command: '{
>          > > > > > > >> > > >     "execute": "change",
>          > > > > > > >> > > >     "id": 3,
>          > > > > > > >> > > >     "arguments": {
>          > > > > > > >> > > >         "device": "vnc",
>          > > > > > > >> > > >         "target": "password",
>          > > > > > > >> > > >         "arg": ""
>          > > > > > > >> > > >     }
>          > > > > > > >> > > > }
>          > > > > > > >> > > > '
>          > > > > > > >> > > > libxl: debug:
>          libxl_qmp.c:299:qmp_handle_response: message
>          > > > type:
>          > > > > > > >> return
>          > > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare:
>          next qmp
>          > > > > > command: '{
>          > > > > > > >> > > >     "execute": "query-vnc",
>          > > > > > > >> > > >     "id": 4
>          > > > > > > >> > > > }
>          > > > > > > >> > > > '
>          > > > > > > >> > > > libxl: debug:
>          libxl_qmp.c:299:qmp_handle_response: message
>          > > > type:
>          > > > > > > >> return
>          > > > > > > >> > > > libxl: debug:
>          libxl_event.c:559:libxl__ev_xswatch_register:
>          > > > > > watch
>          > > > > > > >> > > > w=0x210e8a8
>          wpath=/local/domain/0/backend/vif/2/0/state
>          > > > > > token=3/2:
>          > > > > > > >> > > register
>          > > > > > > >> > > > slotnum=3
>          > > > > > > >> > > > libxl: debug:
>          libxl_event.c:503:watchfd_callback: watch
>          > > > > > w=0x210e8a8
>          > > > > > > >> > > > wpath=/local/domain/0/backend/vif/2/0/state
>          token=3/2: event
>          > > > > > > >> > > > epath=/local/domain/0/backend/vif/2/0/state
>          > > > > > > >> > > > libxl: debug:
>          libxl_event.c:647:devstate_watch_callback:
>          > > > backend
>          > > > > > > >> > > > /local/domain/0/backend/vif/2/0/state wanted
>          state 2 still
>          > > > > > waiting
>          > > > > > > >> state
>          > > > > > > >> > > 1
>          > > > > > > >> > > > libxl: debug:
>          libxl_event.c:503:watchfd_callback: watch
>          > > > > > w=0x210e8a8
>          > > > > > > >> > > > wpath=/local/domain/0/backend/vif/2/0/state
>          token=3/2: event
>          > > > > > > >> > > > epath=/local/domain/0/backend/vif/2/0/state
>          > > > > > > >> > > > libxl: debug:
>          libxl_event.c:643:devstate_watch_callback:
>          > > > backend
>          > > > > > > >> > > > /local/domain/0/backend/vif/2/0/state wanted
>          state 2 ok
>          > > > > > > >> > > > libxl: debug:
>          > > > libxl_event.c:596:libxl__ev_xswatch_deregister:
>          > > > > > watch
>          > > > > > > >> > > > w=0x210e8a8
>          wpath=/local/domain/0/backend/vif/2/0/state
>          > > > > > token=3/2:
>          > > > > > > >> > > > deregister slotnum=3
>          > > > > > > >> > > > libxl: debug:
>          > > > libxl_event.c:608:libxl__ev_xswatch_deregister:
>          > > > > > watch
>          > > > > > > >> > > > w=0x210e8a8: deregister unregistered
>          > > > > > > >> > > > libxl: debug:
>          libxl_device.c:959:device_hotplug: calling
>          > > > hotplug
>          > > > > > > >> script:
>          > > > > > > >> > > > /etc/xen/scripts/vif-bridge online
>          > > > > > > >> > > > libxl: debug:
>          libxl_device.c:959:device_hotplug: calling
>          > > > hotplug
>          > > > > > > >> script:
>          > > > > > > >> > > > /etc/xen/scripts/vif-bridge add
>          > > > > > > >> > > > libxl: debug:
>          libxl_qmp.c:707:libxl__qmp_initialize:
>          > > > connected
>          > > > > > to
>          > > > > > > >> > > > /var/run/xen/qmp-libxl-2
>          > > > > > > >> > > > libxl: debug:
>          libxl_qmp.c:299:qmp_handle_response: message
>          > > > > > type: qmp
>          > > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare:
>          next qmp
>          > > > > > command: '{
>          > > > > > > >> > > >     "execute": "qmp_capabilities",
>          > > > > > > >> > > >     "id": 1
>          > > > > > > >> > > > }
>          > > > > > > >> > > > '
>          > > > > > > >> > > > libxl: debug:
>          libxl_qmp.c:299:qmp_handle_response: message
>          > > > type:
>          > > > > > > >> return
>          > > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare:
>          next qmp
>          > > > > > command: '{
>          > > > > > > >> > > >     "execute": "device_add",
>          > > > > > > >> > > >     "id": 2,
>          > > > > > > >> > > >     "arguments": {
>          > > > > > > >> > > >         "driver": "xen-pci-passthrough",
>          > > > > > > >> > > >         "id": "pci-pt-03_00.0",
>          > > > > > > >> > > >         "hostaddr": "0000:03:00.0"
>          > > > > > > >> > > >     }
>          > > > > > > >> > > > }
>          > > > > > > >> > > > '
>          > > > > > > >> > > > libxl: error: libxl_qmp.c:454:qmp_next: Socket
>          read error:
>          > > > > > > >> Connection
>          > > > > > > >> > > reset
>          > > > > > > >> > > > by peer
>          > > > > > > >> > > > libxl: error:
>          libxl_qmp.c:702:libxl__qmp_initialize:
>          > > > Connection
>          > > > > > > >> error:
>          > > > > > > >> > > > Connection refused
>          > > > > > > >> > > > libxl: error:
>          libxl_qmp.c:702:libxl__qmp_initialize:
>          > > > Connection
>          > > > > > > >> error:
>          > > > > > > >> > > > Connection refused
>          > > > > > > >> > > > libxl: error:
>          libxl_qmp.c:702:libxl__qmp_initialize:
>          > > > Connection
>          > > > > > > >> error:
>          > > > > > > >> > > > Connection refused
>          > > > > > > >> > > > libxl: debug:
>          libxl_pci.c:81:libxl__create_pci_backend:
>          > > > > > Creating pci
>          > > > > > > >> > > backend
>          > > > > > > >> > > > libxl: debug:
>          libxl_event.c:1737:libxl__ao_progress_report:
>          > > > ao
>          > > > > > > >> 0x210c360:
>          > > > > > > >> > > > progress report: ignored
>          > > > > > > >> > > > libxl: debug:
>          libxl_event.c:1569:libxl__ao_complete: ao
>          > > > > > 0x210c360:
>          > > > > > > >> > > > complete, rc=0
>          > > > > > > >> > > > libxl: debug:
>          libxl_event.c:1541:libxl__ao__destroy: ao
>          > > > > > 0x210c360:
>          > > > > > > >> > > destroy
>          > > > > > > >> > > > Daemon running with PID 3214
>          > > > > > > >> > > > xc: debug: hypercall buffer: total
>          allocations:793 total
>          > > > > > > >> releases:793
>          > > > > > > >> > > > xc: debug: hypercall buffer: current
>          allocations:0 maximum
>          > > > > > > >> allocations:4
>          > > > > > > >> > > > xc: debug: hypercall buffer: cache current
>          size:4
>          > > > > > > >> > > > xc: debug: hypercall buffer: cache hits:785
>          misses:4
>          > > > toobig:4
>          > > > > > > >> > > >
>          > > > > > > >> > > >
>          ###########################################################
>          > > > > > > >> > > > root@fiat:/var/log/xen# cat
>          qemu-dm-ubuntu-hvm-0.log
>          > > > > > > >> > > > char device redirected to /dev/pts/5 (label
>          serial0)
>          > > > > > > >> > > > qemu: hardware error: xen: failed to populate
>          ram at
>          > > > 40030000
>          > > > > > > >> > > > CPU #0:
>          > > > > > > >> > > > EAX=00000000 EBX=00000000 ECX=00000000
>          EDX=00000633
>          > > > > > > >> > > > ESI=00000000 EDI=00000000 EBP=00000000
>          ESP=00000000
>          > > > > > > >> > > > EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0
>          A20=1 SMM=0
>          > > > HLT=1
>          > > > > > > >> > > > ES =0000 00000000 0000ffff 00009300
>          > > > > > > >> > > > CS =f000 ffff0000 0000ffff 00009b00
>          > > > > > > >> > > > SS =0000 00000000 0000ffff 00009300
>          > > > > > > >> > > > DS =0000 00000000 0000ffff 00009300
>          > > > > > > >> > > > FS =0000 00000000 0000ffff 00009300
>          > > > > > > >> > > > GS =0000 00000000 0000ffff 00009300
>          > > > > > > >> > > > LDT=0000 00000000 0000ffff 00008200
>          > > > > > > >> > > > TR =0000 00000000 0000ffff 00008b00
>          > > > > > > >> > > > GDT=     00000000 0000ffff
>          > > > > > > >> > > > IDT=     00000000 0000ffff
>          > > > > > > >> > > > CR0=60000010 CR2=00000000 CR3=00000000
>          CR4=00000000
>          > > > > > > >> > > > DR0=00000000 DR1=00000000 DR2=00000000
>          DR3=00000000
>          > > > > > > >> > > > DR6=ffff0ff0 DR7=00000400
>          > > > > > > >> > > > EFER=0000000000000000
>          > > > > > > >> > > > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
>          > > > > > > >> > > > FPR0=0000000000000000 0000
>          FPR1=0000000000000000 0000
>          > > > > > > >> > > > FPR2=0000000000000000 0000
>          FPR3=0000000000000000 0000
>          > > > > > > >> > > > FPR4=0000000000000000 0000
>          FPR5=0000000000000000 0000
>          > > > > > > >> > > > FPR6=0000000000000000 0000
>          FPR7=0000000000000000 0000
>          > > > > > > >> > > > XMM00=00000000000000000000000000000000
>          > > > > > > >> > > > XMM01=00000000000000000000000000000000
>          > > > > > > >> > > > XMM02=00000000000000000000000000000000
>          > > > > > > >> > > > XMM03=00000000000000000000000000000000
>          > > > > > > >> > > > XMM04=00000000000000000000000000000000
>          > > > > > > >> > > > XMM05=00000000000000000000000000000000
>          > > > > > > >> > > > XMM06=00000000000000000000000000000000
>          > > > > > > >> > > > XMM07=00000000000000000000000000000000
>          > > > > > > >> > > > CPU #1:
>          > > > > > > >> > > > EAX=00000000 EBX=00000000 ECX=00000000
>          EDX=00000633
>          > > > > > > >> > > > ESI=00000000 EDI=00000000 EBP=00000000
>          ESP=00000000
>          > > > > > > >> > > > EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0
>          A20=1 SMM=0
>          > > > HLT=1
>          > > > > > > >> > > > ES =0000 00000000 0000ffff 00009300
>          > > > > > > >> > > > CS =f000 ffff0000 0000ffff 00009b00
>          > > > > > > >> > > > SS =0000 00000000 0000ffff 00009300
>          > > > > > > >> > > > DS =0000 00000000 0000ffff 00009300
>          > > > > > > >> > > > FS =0000 00000000 0000ffff 00009300
>          > > > > > > >> > > > GS =0000 00000000 0000ffff 00009300
>          > > > > > > >> > > > LDT=0000 00000000 0000ffff 00008200
>          > > > > > > >> > > > TR =0000 00000000 0000ffff 00008b00
>          > > > > > > >> > > > GDT=     00000000 0000ffff
>          > > > > > > >> > > > IDT=     00000000 0000ffff
>          > > > > > > >> > > > CR0=60000010 CR2=00000000 CR3=00000000
>          CR4=00000000
>          > > > > > > >> > > > DR0=00000000 DR1=00000000 DR2=00000000
>          DR3=00000000
>          > > > > > > >> > > > DR6=ffff0ff0 DR7=00000400
>          > > > > > > >> > > > EFER=0000000000000000
>          > > > > > > >> > > > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
>          > > > > > > >> > > > FPR0=0000000000000000 0000
>          FPR1=0000000000000000 0000
>          > > > > > > >> > > > FPR2=0000000000000000 0000
>          FPR3=0000000000000000 0000
>          > > > > > > >> > > > FPR4=0000000000000000 0000
>          FPR5=0000000000000000 0000
>          > > > > > > >> > > > FPR6=0000000000000000 0000
>          FPR7=0000000000000000 0000
>          > > > > > > >> > > > XMM00=00000000000000000000000000000000
>          > > > > > > >> > > > XMM01=00000000000000000000000000000000
>          > > > > > > >> > > > XMM02=00000000000000000000000000000000
>          > > > > > > >> > > > XMM03=00000000000000000000000000000000
>          > > > > > > >> > > > XMM04=00000000000000000000000000000000
>          > > > > > > >> > > > XMM05=00000000000000000000000000000000
>          > > > > > > >> > > > XMM06=00000000000000000000000000000000
>          > > > > > > >> > > > XMM07=00000000000000000000000000000000
>          > > > > > > >> > > >
>          > > > > > > >> > > >
>          ###########################################################
>          > > > > > > >> > > > /etc/default/grub
>          > > > > > > >> > > > GRUB_DEFAULT="Xen 4.3-amd64"
>          > > > > > > >> > > > GRUB_HIDDEN_TIMEOUT=0
>          > > > > > > >> > > > GRUB_HIDDEN_TIMEOUT_QUIET=true
>          > > > > > > >> > > > GRUB_TIMEOUT=10
>          > > > > > > >> > > > GRUB_DISTRIBUTOR=`lsb_release -i -s 2>
>          /dev/null || echo
>          > > > Debian`
>          > > > > > > >> > > > GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
>          > > > > > > >> > > > GRUB_CMDLINE_LINUX=""
>          > > > > > > >> > > > # biosdevname=0
>          > > > > > > >> > > > GRUB_CMDLINE_XEN="dom0_mem=1024M
>          dom0_max_vcpus=1"
>          > > > > > > >> > >
>          > > > > > > >> > > > _______________________________________________
>          > > > > > > >> > > > Xen-devel mailing list
>          > > > > > > >> > > > [16]Xen-devel@lists.xen.org
>          > > > > > > >> > > > [17]http://lists.xen.org/xen-devel
>          > > > > > > >> > >
>          > > > > > > >> > >
>          > > > > > > >>
>          > > > > > > >
>          > > > > > > >
>          > > > > >
>          > > >
>          >
> 
>        >
> 
> References
> 
>    Visible links
>    1. mailto:mikeneiderhauser@gmail.com
>    2. mailto:konrad.wilk@oracle.com
>    3. mailto:mikeneiderhauser@gmail.com
>    4. http://wiki.xenproject.org/wiki/Xen_4.4_RC3_test_instructions
>    5. http://wiki.xen.org/wiki/Compiling_Xen_From_Source
>    6. http://xenbits.xen.org/xen.git
>    7. mailto:konrad.wilk@oracle.com
>    8. mailto:konrad.wilk@oracle.com
>    9. mailto:konrad.wilk@oracle.com
>   10. mailto:mikeneiderhauser@gmail.com
>   11. mailto:konrad.wilk@oracle.com
>   12. mailto:konrad.wilk@oracle.com
>   13. http://lists.xenproject.org/archives/html/xen-users/2014-02/msg00036.html
>   14. http://markmail.org/message/3zuiojywempoorxj#query:+page:1+mid:gul34vbe4uyog2d4+state:results
>   15. http://0.0.0.0:0/
>   16. mailto:Xen-devel@lists.xen.org
>   17. http://lists.xen.org/xen-devel

> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Xen 4.3 PCI passthrough possible bug
  2014-02-08 15:37 ` Mike Neiderhauser
@ 2014-02-08 17:42   ` Mike Neiderhauser
  2014-02-08 20:02     ` Pasi Kärkkäinen
  2014-02-10 17:11     ` George Dunlap
  0 siblings, 2 replies; 22+ messages in thread
From: Mike Neiderhauser @ 2014-02-08 17:42 UTC (permalink / raw)
  To: Konrad Wilk; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 41484 bytes --]

Works like a charm.  I do not have physical access to the computer this
weekend to verify that the cards are isolated, but the HVM starts and
appears to be working well.

When do you think Xen 4.4 will be released.  The article I read mentioned
it will be released in 2014 (hinting towards the end of February).  I also
read 'When it is ready.'

Any timeline would be great.

Thanks again for your help!


On Sat, Feb 8, 2014 at 10:37 AM, Mike Neiderhauser <
mikeneiderhauser@gmail.com> wrote:

> I will give it a shot.  Thanks!
>
>
> On Sat, Feb 8, 2014 at 10:36 AM, Konrad Wilk <konrad.wilk@oracle.com>wrote:
>
>>
>> ----- mikeneiderhauser@gmail.com wrote:
>> >
>> > I followed this site (
>> http://wiki.xenproject.org/wiki/Xen_4.4_RC3_test_instructions).
>> and then followed (http://wiki.xen.org/wiki/Compiling_Xen_From_Source)
>> >
>>
>> Ah, so you are looking for the     xen_pt: Fix passthrough of device
>> with ROM.
>> which is not in the Xen 4.4-rc3 but in the master.
>>
>> One thing you can do is:
>>
>> cd xen/tools/qemu-xen-dir
>> git fetch upstream
>> git checkout origin/master
>> [you should see: "HEAD is now at 027c412... configure: Disable libtool
>> if -fPIE does not work with it (bug #1257099)"]
>>
>> Go back to main xen directory:
>> cd ../../../
>> ./configure
>> make
>> make install
>>
>> and you should be using now an newer version of QEMU with the fix.
>>
>>
>> >
>>
>> git clone -b 4.4.0-rc3 git://xenbits.xen.org/xen.git
>> >
>>
>>
>> Had to take some additional steps here to get all of the libs
>> # apt-get install build-essential # apt-get install bcc bin86 gawk bridge-utils iproute libcurl3 libcurl4-openssl-dev bzip2 module-init-tools transfig tgif # apt-get install texinfo texlive-latex-base texlive-latex-recommended texlive-fonts-extra texlive-fonts-recommended pciutils-dev mercurial# apt-get install make gcc libc6-dev zlib1g-dev python python-dev python-twisted libncurses5-dev patch libvncserver-dev libsdl-dev libjpeg62-dev# apt-get install iasl libbz2-dev e2fslibs-dev git-core uuid-dev ocaml ocaml-findlib libx11-dev bison flex xz-utils libyajl-dev# apt-get install gettext
>> apt-get install libaio-dev
>> apt-get install libpixman-1-dev
>>
>> ./configure
>> make dist
>> make install
>>
>> >
>> >
>> >
>> > On Fri, Feb 7, 2014 at 4:49 PM, Konrad Rzeszutek Wilk <
>> konrad.wilk@oracle.com> wrote:
>> >
>>>
>>> > On Fri, Feb 07, 2014 at 04:29:18PM -0500, Mike Neiderhauser wrote:
>>> > > I did not use the patch.  I was assuming it was already patched given
>>> > > previous email.  Is the patch for qemu source or xen source?
>>> >
>>> >
>>> It is for QEMU, but you are right - it should have been part
>>> > of QEMU if you got the latest version of Xen-unstable.
>>> >
>>> > You didn't use some specific tag but just 'staging' ?
>>> >
>>> >
>>> >
>>> > >
>>> > >
>>> > > On Fri, Feb 7, 2014 at 4:01 PM, Konrad Rzeszutek Wilk <
>>> > > konrad.wilk@oracle.com> wrote:
>>> > >
>>> > > > On Fri, Feb 07, 2014 at 03:45:19PM -0500, Mike Neiderhauser wrote:
>>> > > > > Ok. I started ran the initscripts and now xl works.
>>> > > > >
>>> > > > > However, I still see the same behavior as before:
>>> > > > >
>>> > > >
>>> > > > Did you use the patch that was mentioned in the URL?
>>> > > >
>>> > > > > root@fiat:~# xl create /etc/xen/ubuntu-hvm-0.cfg
>>> > > > > Parsing config from /etc/xen/ubuntu-hvm-0.cfg
>>> > > > > libxl: error: libxl_qmp.c:448:qmp_next: Socket read error:
>>> Connection
>>> > > > reset
>>> > > > > by peer
>>> > > > > libxl: error: libxl_qmp.c:691:libxl__qmp_initialize: Connection
>>> error:
>>> > > > > Connection refused
>>> > > > > libxl: error: libxl_qmp.c:691:libxl__qmp_initialize: Connection
>>> error:
>>> > > > > Connection refused
>>> > > > > libxl: error: libxl_qmp.c:691:libxl__qmp_initialize: Connection
>>> error:
>>> > > > > Connection refused
>>> > > > > root@fiat:~# xl list
>>> > > > > Name                                        ID   Mem VCPUs State
>>> Time(s)
>>> > > > > Domain-0                                     0  1024     1
>>> r-----
>>> > > > >  15.2
>>> > > > > ubuntu-hvm-0                                 1  1025     1
>>> ------
>>> > > > > 0.0
>>> > > > >
>>> > > > > (XEN)  Dom0 kernel: 64-bit, PAE, lsb, paddr 0x1000000 ->
>>> 0x23f3000
>>> > > > > (XEN) PHYSICAL MEMORY ARRANGEMENT:
>>> > > > > (XEN)  Dom0 alloc.:   0000000134000000->0000000138000000 (233690
>>> pages to
>>> > > > > be allocated)
>>> > > > > (XEN)  Init. ramdisk: 000000013d0da000->000000013ffffe00
>>> > > > > (XEN) VIRTUAL MEMORY ARRANGEMENT:
>>> > > > > (XEN)  Loaded kernel: ffffffff81000000->ffffffff823f3000
>>> > > > > (XEN)  Init. ramdisk: ffffffff823f3000->ffffffff85318e00
>>> > > > > (XEN)  Phys-Mach map: ffffffff85319000->ffffffff85519000
>>> > > > > (XEN)  Start info:    ffffffff85519000->ffffffff855194b4
>>> > > > > (XEN)  Page tables:   ffffffff8551a000->ffffffff85549000
>>> > > > > (XEN)  Boot stack:    ffffffff85549000->ffffffff8554a000
>>> > > > > (XEN)  TOTAL:         ffffffff80000000->ffffffff85800000
>>> > > > > (XEN)  ENTRY ADDRESS: ffffffff81d261e0
>>> > > > > (XEN) Dom0 has maximum 1 VCPUs
>>> > > > > (XEN) elf_load_binary: phdr 0 at 0xffffffff81000000 ->
>>> 0xffffffff81b2f000
>>> > > > > (XEN) elf_load_binary: phdr 1 at 0xffffffff81c00000 ->
>>> 0xffffffff81d0f0f0
>>> > > > > (XEN) elf_load_binary: phdr 2 at 0xffffffff81d10000 ->
>>> 0xffffffff81d252c0
>>> > > > > (XEN) elf_load_binary: phdr 3 at 0xffffffff81d26000 ->
>>> 0xffffffff81e6d000
>>> > > > > (XEN) Scrubbing Free RAM: .............................done.
>>> > > > > (XEN) Initial low memory virq threshold set at 0x4000 pages.
>>> > > > > (XEN) Std. Loglevel: All
>>> > > > > (XEN) Guest Loglevel: All
>>> > > > > (XEN) Xen is relinquishing VGA console.
>>> > > > > (XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to
>>> switch input
>>> > > > > to Xen)
>>> > > > > (XEN) Freed 260kB init memory.
>>> > > > > (XEN) PCI add device 0000:00:00.0
>>> > > > > (XEN) PCI add device 0000:00:01.0
>>> > > > > (XEN) PCI add device 0000:00:1a.0
>>> > > > > (XEN) PCI add device 0000:00:1c.0
>>> > > > > (XEN) PCI add device 0000:00:1d.0
>>> > > > > (XEN) PCI add device 0000:00:1e.0
>>> > > > > (XEN) PCI add device 0000:00:1f.0
>>> > > > > (XEN) PCI add device 0000:00:1f.2
>>> > > > > (XEN) PCI add device 0000:00:1f.3
>>> > > > > (XEN) PCI add device 0000:01:00.0
>>> > > > > (XEN) PCI add device 0000:02:02.0
>>> > > > > (XEN) PCI add device 0000:02:04.0
>>> > > > > (XEN) PCI add device 0000:03:00.0
>>> > > > > (XEN) PCI add device 0000:03:00.1
>>> > > > > (XEN) PCI add device 0000:04:00.0
>>> > > > > (XEN) PCI add device 0000:04:00.1
>>> > > > > (XEN) PCI add device 0000:05:00.0
>>> > > > > (XEN) PCI add device 0000:05:00.1
>>> > > > > (XEN) PCI add device 0000:06:03.0
>>> > > > > (XEN) page_alloc.c:1460:d0 Over-allocation for domain 1: 262401
>>> > 262400
>>> > > > > (XEN) memory.c:158:d0 Could not allocate order=0 extent: id=1
>>> memflags=0
>>> > > > > (200 of 1024)
>>> > > > > (d1) HVM Loader
>>> > > > > (d1) Detected Xen v4.4-rc2
>>> > > > > (d1) Xenbus rings @0xfeffc000, event channel 4
>>> > > > > (d1) System requested SeaBIOS
>>> > > > > (d1) CPU speed is 3093 MHz
>>> > > > > (d1) Relocating guest memory for lowmem MMIO space disabled
>>> > > > >
>>> > > > >
>>> > > > > Excerpt from /var/log/xen/*
>>> > > > > qemu: hardware error: xen: failed to populate ram at 40050000
>>> > > > >
>>> > > > >
>>> > > > > On Fri, Feb 7, 2014 at 3:39 PM, Konrad Rzeszutek Wilk <
>>> > > > > konrad.wilk@oracle.com> wrote:
>>> > > > >
>>> > > > > > On Fri, Feb 07, 2014 at 03:36:49PM -0500, Mike Neiderhauser
>>> wrote:
>>> > > > > > > I was able to compile and install xen4.4 RC3 on my host,
>>> however I am
>>> > > > > > > getting the error:
>>> > > > > > >
>>> > > > > > > root@fiat:~/git/xen# xl list
>>> > > > > > > xc: error: Could not obtain handle on privileged command
>>> interface
>>> > > > (2 =
>>> > > > > > No
>>> > > > > > > such file or directory): Internal error
>>> > > > > > > libxl: error: libxl.c:92:libxl_ctx_alloc: cannot open libxc
>>> handle:
>>> > > > No
>>> > > > > > such
>>> > > > > > > file or directory
>>> > > > > > > cannot init xl context
>>> > > > > > >
>>> > > > > > > I've google searched for this and an article appears, but is
>>> not the
>>> > > > same
>>> > > > > > > (as far as I can tell).  Running any xl command generates a
>>> similar
>>> > > > > > error.
>>> > > > > > >
>>> > > > > > > What can I do to fix this?
>>> > > > > >
>>> > > > > >
>>> > > > > > You need to run the initscripts for Xen. I don't know what
>>> your distro
>>> > > > is,
>>> > > > > > but
>>> > > > > > they are usually put in /etc/init.d/rc.d/xen*
>>> > > > > >
>>> > > > > >
>>> > > > > > >
>>> > > > > > > Regards
>>> > > > > > >
>>> > > > > > >
>>> > > > > > > On Fri, Feb 7, 2014 at 1:40 PM, Mike Neiderhauser <
>>> > > > > > > mikeneiderhauser@gmail.com> wrote:
>>> > > > > > >
>>> > > > > > > > Much. Do I need to install from src or is there a package
>>> I can
>>> > > > > > install.
>>> > > > > > > >
>>> > > > > > > > Regards
>>> > > > > > > >
>>> > > > > > > >
>>> > > > > > > > On Fri, Feb 7, 2014 at 1:30 PM, Konrad Rzeszutek Wilk <
>>> > > > > > > > konrad.wilk@oracle.com> wrote:
>>> > > > > > > >
>>> > > > > > > >> On Fri, Feb 07, 2014 at 10:53:22AM -0500, Mike
>>> Neiderhauser wrote:
>>> > > > > > > >> > I did not.  I do not have the toolchain installed.  I
>>> may have
>>> > > > time
>>> > > > > > > >> later
>>> > > > > > > >> > today to try the patch.  Are there any specific
>>> instructions on
>>> > > > how
>>> > > > > > to
>>> > > > > > > >> > patch the src, compile and install?
>>> > > > > > > >>
>>> > > > > > > >> There actually should be a new version of Xen 4.4-rcX
>>> which will
>>> > > > have
>>> > > > > > the
>>> > > > > > > >> fix. That might be easier for you?
>>> > > > > > > >> >
>>> > > > > > > >> > Regards
>>> > > > > > > >> >
>>> > > > > > > >> >
>>> > > > > > > >> > On Fri, Feb 7, 2014 at 10:25 AM, Konrad Rzeszutek Wilk <
>>> > > > > > > >> > konrad.wilk@oracle.com> wrote:
>>> > > > > > > >> >
>>> > > > > > > >> > > On Thu, Feb 06, 2014 at 09:39:37AM -0500, Mike
>>> Neiderhauser
>>> > > > wrote:
>>> > > > > > > >> > > > Hi all,
>>> > > > > > > >> > > >
>>> > > > > > > >> > > > I am attempting to do a pci passthrough of an Intel
>>> ET card
>>> > > > > > (4x1G
>>> > > > > > > >> NIC)
>>> > > > > > > >> > > to a
>>> > > > > > > >> > > > HVM.  I have been attempting to resolve this issue
>>> on the
>>> > > > > > xen-users
>>> > > > > > > >> list,
>>> > > > > > > >> > > > but it was advised to post this issue to this list.
>>> (Initial
>>> > > > > > > >> Message -
>>> > > > > > > >> > > >
>>> > > > > > > >> > >
>>> > > > > > > >>
>>> > > > > >
>>> > > >
>>> http://lists.xenproject.org/archives/html/xen-users/2014-02/msg00036.html
>>> > > > > > > >> )
>>> > > > > > > >> > > >
>>> > > > > > > >> > > > The machine I am using as host is a Dell Poweredge
>>> server
>>> > > > with a
>>> > > > > > > >> Xeon
>>> > > > > > > >> > > > E31220 with 4GB of ram.
>>> > > > > > > >> > > >
>>> > > > > > > >> > > > The possible bug is the following:
>>> > > > > > > >> > > > root@fiat:/var/log/xen# cat
>>> qemu-dm-ubuntu-hvm-0.log
>>> > > > > > > >> > > > char device redirected to /dev/pts/5 (label serial0)
>>> > > > > > > >> > > > qemu: hardware error: xen: failed to populate ram at
>>> > > > 40030000
>>> > > > > > > >> > > > ....
>>> > > > > > > >> > > >
>>> > > > > > > >> > > > I believe it may be similar to this thread
>>> > > > > > > >> > > >
>>> > > > > > > >> > >
>>> > > > > > > >>
>>> > > > > >
>>> > > >
>>> http://markmail.org/message/3zuiojywempoorxj#query:+page:1+mid:gul34vbe4uyog2d4+state:results
>>> > > > > > > >> > > >
>>> > > > > > > >> > > >
>>> > > > > > > >> > > > Additional info that may be helpful is below.
>>> > > > > > > >> > >
>>> > > > > > > >> > > Did you try the patch?
>>> > > > > > > >> > > >
>>> > > > > > > >> > > > Please let me know if you need any additional
>>> information.
>>> > > > > > > >> > > >
>>> > > > > > > >> > > > Thanks in advance for any help provided!
>>> > > > > > > >> > > > Regards
>>> > > > > > > >> > > >
>>> > > > > > > >> > > >
>>> ###########################################################
>>> > > > > > > >> > > > root@fiat:~# cat /etc/xen/ubuntu-hvm-0.cfg
>>> > > > > > > >> > > >
>>> ###########################################################
>>> > > > > > > >> > > > # Configuration file for Xen HVM
>>> > > > > > > >> > > >
>>> > > > > > > >> > > > # HVM Name (as appears in 'xl list')
>>> > > > > > > >> > > > name="ubuntu-hvm-0"
>>> > > > > > > >> > > > # HVM Build settings (+ hardware)
>>> > > > > > > >> > > > #kernel = "/usr/lib/xen-4.3/boot/hvmloader"
>>> > > > > > > >> > > > builder='hvm'
>>> > > > > > > >> > > > device_model='qemu-dm'
>>> > > > > > > >> > > > memory=1024
>>> > > > > > > >> > > > vcpus=2
>>> > > > > > > >> > > >
>>> > > > > > > >> > > > # Virtual Interface
>>> > > > > > > >> > > > # Network bridge to USB NIC
>>> > > > > > > >> > > > vif=['bridge=xenbr0']
>>> > > > > > > >> > > >
>>> > > > > > > >> > > > ################### PCI PASSTHROUGH
>>> ###################
>>> > > > > > > >> > > > # PCI Permissive mode toggle
>>> > > > > > > >> > > > #pci_permissive=1
>>> > > > > > > >> > > >
>>> > > > > > > >> > > > # All PCI Devices
>>> > > > > > > >> > > > #pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1',
>>> '05:00.0',
>>> > > > > > > >> '05:00.1']
>>> > > > > > > >> > > >
>>> > > > > > > >> > > > # First two ports on Intel 4x1G NIC
>>> > > > > > > >> > > > #pci=['03:00.0','03:00.1']
>>> > > > > > > >> > > >
>>> > > > > > > >> > > > # Last two ports on Intel 4x1G NIC
>>> > > > > > > >> > > > #pci=['04:00.0', '04:00.1']
>>> > > > > > > >> > > >
>>> > > > > > > >> > > > # All ports on Intel 4x1G NIC
>>> > > > > > > >> > > > pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1']
>>> > > > > > > >> > > >
>>> > > > > > > >> > > > # Brodcom 2x1G NIC
>>> > > > > > > >> > > > #pci=['05:00.0', '05:00.1']
>>> > > > > > > >> > > > ################### PCI PASSTHROUGH
>>> ###################
>>> > > > > > > >> > > >
>>> > > > > > > >> > > > # HVM Disks
>>> > > > > > > >> > > > # Hard disk only
>>> > > > > > > >> > > > # Boot from HDD first ('c')
>>> > > > > > > >> > > > boot="c"
>>> > > > > > > >> > > > disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w']
>>> > > > > > > >> > > >
>>> > > > > > > >> > > > # Hard disk with ISO
>>> > > > > > > >> > > > # Boot from ISO first ('d')
>>> > > > > > > >> > > > #boot="d"
>>> > > > > > > >> > > > #disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w',
>>> > > > > > > >> > > >
>>> 'file:/root/ubuntu-12.04.3-server-amd64.iso,hdc:cdrom,r']
>>> > > > > > > >> > > >
>>> > > > > > > >> > > > # ACPI Enable
>>> > > > > > > >> > > > acpi=1
>>> > > > > > > >> > > > # HVM Event Modes
>>> > > > > > > >> > > > on_poweroff='destroy'
>>> > > > > > > >> > > > on_reboot='restart'
>>> > > > > > > >> > > > on_crash='restart'
>>> > > > > > > >> > > >
>>> > > > > > > >> > > > # Serial Console Configuration (Xen Console)
>>> > > > > > > >> > > > sdl=0
>>> > > > > > > >> > > > serial='pty'
>>> > > > > > > >> > > >
>>> > > > > > > >> > > > # VNC Configuration
>>> > > > > > > >> > > > # Only reacable from localhost
>>> > > > > > > >> > > > vnc=1
>>> > > > > > > >> > > > vnclisten="0.0.0.0"
>>> > > > > > > >> > > > vncpasswd=""
>>> > > > > > > >> > > >
>>> > > > > > > >> > > >
>>> ###########################################################
>>> > > > > > > >> > > > Copied for xen-users list
>>> > > > > > > >> > > >
>>> ###########################################################
>>> > > > > > > >> > > >
>>> > > > > > > >> > > > It appears that it cannot obtain the RAM mapping
>>> for this
>>> > > > PCI
>>> > > > > > > >> device.
>>> > > > > > > >> > > >
>>> > > > > > > >> > > >
>>> > > > > > > >> > > > I rebooted the Host.  I ran assigned pci devices to
>>> > > > pciback. The
>>> > > > > > > >> output
>>> > > > > > > >> > > > looks like:
>>> > > > > > > >> > > > root@fiat:~# ./dev_mgmt.sh
>>> > > > > > > >> > > > Loading Kernel Module 'xen-pciback'
>>> > > > > > > >> > > > Calling function pciback_dev for:
>>> > > > > > > >> > > > PCI DEVICE 0000:03:00.0
>>> > > > > > > >> > > > Unbinding 0000:03:00.0 from igb
>>> > > > > > > >> > > > Binding 0000:03:00.0 to pciback
>>> > > > > > > >> > > >
>>> > > > > > > >> > > > PCI DEVICE 0000:03:00.1
>>> > > > > > > >> > > > Unbinding 0000:03:00.1 from igb
>>> > > > > > > >> > > > Binding 0000:03:00.1 to pciback
>>> > > > > > > >> > > >
>>> > > > > > > >> > > > PCI DEVICE 0000:04:00.0
>>> > > > > > > >> > > > Unbinding 0000:04:00.0 from igb
>>> > > > > > > >> > > > Binding 0000:04:00.0 to pciback
>>> > > > > > > >> > > >
>>> > > > > > > >> > > > PCI DEVICE 0000:04:00.1
>>> > > > > > > >> > > > Unbinding 0000:04:00.1 from igb
>>> > > > > > > >> > > > Binding 0000:04:00.1 to pciback
>>> > > > > > > >> > > >
>>> > > > > > > >> > > > PCI DEVICE 0000:05:00.0
>>> > > > > > > >> > > > Unbinding 0000:05:00.0 from bnx2
>>> > > > > > > >> > > > Binding 0000:05:00.0 to pciback
>>> > > > > > > >> > > >
>>> > > > > > > >> > > > PCI DEVICE 0000:05:00.1
>>> > > > > > > >> > > > Unbinding 0000:05:00.1 from bnx2
>>> > > > > > > >> > > > Binding 0000:05:00.1 to pciback
>>> > > > > > > >> > > >
>>> > > > > > > >> > > > Listing PCI Devices Available to Xen
>>> > > > > > > >> > > > 0000:03:00.0
>>> > > > > > > >> > > > 0000:03:00.1
>>> > > > > > > >> > > > 0000:04:00.0
>>> > > > > > > >> > > > 0000:04:00.1
>>> > > > > > > >> > > > 0000:05:00.0
>>> > > > > > > >> > > > 0000:05:00.1
>>> > > > > > > >> > > >
>>> > > > > > > >> > > >
>>> ###########################################################
>>> > > > > > > >> > > > root@fiat:~# xl -vvv create
>>> /etc/xen/ubuntu-hvm-0.cfg
>>> > > > > > > >> > > > Parsing config from /etc/xen/ubuntu-hvm-0.cfg
>>> > > > > > > >> > > > WARNING: ignoring device_model directive.
>>> > > > > > > >> > > > WARNING: Use "device_model_override" instead if you
>>> really
>>> > > > want
>>> > > > > > a
>>> > > > > > > >> > > > non-default device_model
>>> > > > > > > >> > > > libxl: debug: libxl_create.c:1230:do_domain_create:
>>> ao
>>> > > > > > 0x210c360:
>>> > > > > > > >> create:
>>> > > > > > > >> > > > how=(nil) callback=(nil) poller=0x210c3c0
>>> > > > > > > >> > > > libxl: debug:
>>> > > > libxl_device.c:257:libxl__device_disk_set_backend:
>>> > > > > > > >> Disk
>>> > > > > > > >> > > > vdev=hda spec.backend=unknown
>>> > > > > > > >> > > > libxl: debug:
>>> > > > libxl_device.c:296:libxl__device_disk_set_backend:
>>> > > > > > > >> Disk
>>> > > > > > > >> > > > vdev=hda, using backend phy
>>> > > > > > > >> > > > libxl: debug:
>>> libxl_create.c:675:initiate_domain_create:
>>> > > > running
>>> > > > > > > >> > > bootloader
>>> > > > > > > >> > > > libxl: debug:
>>> libxl_bootloader.c:321:libxl__bootloader_run:
>>> > > > not
>>> > > > > > a PV
>>> > > > > > > >> > > > domain, skipping bootloader
>>> > > > > > > >> > > > libxl: debug:
>>> > > > libxl_event.c:608:libxl__ev_xswatch_deregister:
>>> > > > > > watch
>>> > > > > > > >> > > > w=0x210c728: deregister unregistered
>>> > > > > > > >> > > > libxl: debug:
>>> libxl_numa.c:475:libxl__get_numa_candidate:
>>> > > > New
>>> > > > > > best
>>> > > > > > > >> NUMA
>>> > > > > > > >> > > > placement candidate found: nr_nodes=1, nr_cpus=4,
>>> > > > nr_vcpus=3,
>>> > > > > > > >> > > > free_memkb=2980
>>> > > > > > > >> > > > libxl: detail: libxl_dom.c:195:numa_place_domain:
>>> NUMA
>>> > > > placement
>>> > > > > > > >> > > candidate
>>> > > > > > > >> > > > with 1 nodes, 4 cpus and 2980 KB free selected
>>> > > > > > > >> > > > xc: detail: elf_parse_binary: phdr: paddr=0x100000
>>> > > > memsz=0xa69a4
>>> > > > > > > >> > > > xc: detail: elf_parse_binary: memory: 0x100000 ->
>>> 0x1a69a4
>>> > > > > > > >> > > > xc: info: VIRTUAL MEMORY ARRANGEMENT:
>>> > > > > > > >> > > >   Loader:        0000000000100000->00000000001a69a4
>>> > > > > > > >> > > >   Modules:       0000000000000000->0000000000000000
>>> > > > > > > >> > > >   TOTAL:         0000000000000000->000000003f800000
>>> > > > > > > >> > > >   ENTRY ADDRESS: 0000000000100608
>>> > > > > > > >> > > > xc: info: PHYSICAL MEMORY ALLOCATION:
>>> > > > > > > >> > > >   4KB PAGES: 0x0000000000000200
>>> > > > > > > >> > > >   2MB PAGES: 0x00000000000001fb
>>> > > > > > > >> > > >   1GB PAGES: 0x0000000000000000
>>> > > > > > > >> > > > xc: detail: elf_load_binary: phdr 0 at
>>> 0x7f022c779000 ->
>>> > > > > > > >> 0x7f022c81682d
>>> > > > > > > >> > > > libxl: debug:
>>> > > > libxl_device.c:257:libxl__device_disk_set_backend:
>>> > > > > > > >> Disk
>>> > > > > > > >> > > > vdev=hda spec.backend=phy
>>> > > > > > > >> > > > libxl: debug:
>>> libxl_event.c:559:libxl__ev_xswatch_register:
>>> > > > > > watch
>>> > > > > > > >> > > > w=0x2112f48
>>> wpath=/local/domain/0/backend/vbd/2/768/state
>>> > > > > > token=3/0:
>>> > > > > > > >> > > > register slotnum=3
>>> > > > > > > >> > > > libxl: debug: libxl_create.c:1243:do_domain_create:
>>> ao
>>> > > > > > 0x210c360:
>>> > > > > > > >> > > > inprogress: poller=0x210c3c0, flags=i
>>> > > > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback:
>>> watch
>>> > > > > > w=0x2112f48
>>> > > > > > > >> > > > wpath=/local/domain/0/backend/vbd/2/768/state
>>> token=3/0:
>>> > > > event
>>> > > > > > > >> > > > epath=/local/domain/0/backend/vbd/2/768/state
>>> > > > > > > >> > > > libxl: debug:
>>> libxl_event.c:647:devstate_watch_callback:
>>> > > > backend
>>> > > > > > > >> > > > /local/domain/0/backend/vbd/2/768/state wanted
>>> state 2 still
>>> > > > > > waiting
>>> > > > > > > >> > > state 1
>>> > > > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback:
>>> watch
>>> > > > > > w=0x2112f48
>>> > > > > > > >> > > > wpath=/local/domain/0/backend/vbd/2/768/state
>>> token=3/0:
>>> > > > event
>>> > > > > > > >> > > > epath=/local/domain/0/backend/vbd/2/768/state
>>> > > > > > > >> > > > libxl: debug:
>>> libxl_event.c:643:devstate_watch_callback:
>>> > > > backend
>>> > > > > > > >> > > > /local/domain/0/backend/vbd/2/768/state wanted
>>> state 2 ok
>>> > > > > > > >> > > > libxl: debug:
>>> > > > libxl_event.c:596:libxl__ev_xswatch_deregister:
>>> > > > > > watch
>>> > > > > > > >> > > > w=0x2112f48
>>> wpath=/local/domain/0/backend/vbd/2/768/state
>>> > > > > > token=3/0:
>>> > > > > > > >> > > > deregister slotnum=3
>>> > > > > > > >> > > > libxl: debug:
>>> > > > libxl_event.c:608:libxl__ev_xswatch_deregister:
>>> > > > > > watch
>>> > > > > > > >> > > > w=0x2112f48: deregister unregistered
>>> > > > > > > >> > > > libxl: debug: libxl_device.c:959:device_hotplug:
>>> calling
>>> > > > hotplug
>>> > > > > > > >> script:
>>> > > > > > > >> > > > /etc/xen/scripts/block add
>>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1206:libxl__spawn_local_dm:
>>> > > > Spawning
>>> > > > > > > >> > > device-model
>>> > > > > > > >> > > > /usr/bin/qemu-system-i386 with arguments:
>>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>> > > > > > > >> > > > /usr/bin/qemu-system-i386
>>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>> > > > > > -xen-domid
>>> > > > > > > >> > > > libxl: debug:
>>> libxl_dm.c:1208:libxl__spawn_local_dm:   2
>>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>> > > > -chardev
>>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>> > > > > > > >> > > >
>>> > > > socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-2,server,nowait
>>> > > > > > > >> > > > libxl: debug:
>>> libxl_dm.c:1208:libxl__spawn_local_dm:   -mon
>>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>> > > > > > > >> > > > chardev=libxl-cmd,mode=control
>>> > > > > > > >> > > > libxl: debug:
>>> libxl_dm.c:1208:libxl__spawn_local_dm:   -name
>>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>> > > > > > ubuntu-hvm-0
>>> > > > > > > >> > > > libxl: debug:
>>> libxl_dm.c:1208:libxl__spawn_local_dm:   -vnc
>>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>> > > > > > 0.0.0.0:0
>>> > > > > > > >> ,to=99
>>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>> > > > -global
>>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>> > > > > > > >> isa-fdc.driveA=
>>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>> > > > -serial
>>> > > > > > > >> > > > libxl: debug:
>>> libxl_dm.c:1208:libxl__spawn_local_dm:   pty
>>> > > > > > > >> > > > libxl: debug:
>>> libxl_dm.c:1208:libxl__spawn_local_dm:   -vga
>>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>> > > > cirrus
>>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>> > > > -global
>>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>> > > > > > > >> vga.vram_size_mb=8
>>> > > > > > > >> > > > libxl: debug:
>>> libxl_dm.c:1208:libxl__spawn_local_dm:   -boot
>>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>> > > > order=c
>>> > > > > > > >> > > > libxl: debug:
>>> libxl_dm.c:1208:libxl__spawn_local_dm:   -smp
>>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>> > > > > > 2,maxcpus=2
>>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>> > > > -device
>>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>> > > > > > > >> > > > rtl8139,id=nic0,netdev=net0,mac=00:16:3e:23:44:2c
>>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>> > > > -netdev
>>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>> > > > > > > >> > > >
>>> type=tap,id=net0,ifname=vif2.0-emu,script=no,downscript=no
>>> > > > > > > >> > > > libxl: debug:
>>> libxl_dm.c:1208:libxl__spawn_local_dm:   -M
>>> > > > > > > >> > > > libxl: debug:
>>> libxl_dm.c:1208:libxl__spawn_local_dm:   xenfv
>>> > > > > > > >> > > > libxl: debug:
>>> libxl_dm.c:1208:libxl__spawn_local_dm:   -m
>>> > > > > > > >> > > > libxl: debug:
>>> libxl_dm.c:1208:libxl__spawn_local_dm:   1016
>>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>> > > > -drive
>>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>> > > > > > > >> > > >
>>> > > > > > > >> > >
>>> > > > > > > >>
>>> > > > > >
>>> > > >
>>> file=/dev/ubuntu-vg/ubuntu-hvm-0,if=ide,index=0,media=disk,format=raw,cache=writeback
>>> > > > > > > >> > > > libxl: debug:
>>> libxl_event.c:559:libxl__ev_xswatch_register:
>>> > > > > > watch
>>> > > > > > > >> > > > w=0x210c960
>>> wpath=/local/domain/0/device-model/2/state
>>> > > > > > token=3/1:
>>> > > > > > > >> > > register
>>> > > > > > > >> > > > slotnum=3
>>> > > > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback:
>>> watch
>>> > > > > > w=0x210c960
>>> > > > > > > >> > > > wpath=/local/domain/0/device-model/2/state
>>> token=3/1: event
>>> > > > > > > >> > > > epath=/local/domain/0/device-model/2/state
>>> > > > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback:
>>> watch
>>> > > > > > w=0x210c960
>>> > > > > > > >> > > > wpath=/local/domain/0/device-model/2/state
>>> token=3/1: event
>>> > > > > > > >> > > > epath=/local/domain/0/device-model/2/state
>>> > > > > > > >> > > > libxl: debug:
>>> > > > libxl_event.c:596:libxl__ev_xswatch_deregister:
>>> > > > > > watch
>>> > > > > > > >> > > > w=0x210c960
>>> wpath=/local/domain/0/device-model/2/state
>>> > > > > > token=3/1:
>>> > > > > > > >> > > > deregister slotnum=3
>>> > > > > > > >> > > > libxl: debug:
>>> > > > libxl_event.c:608:libxl__ev_xswatch_deregister:
>>> > > > > > watch
>>> > > > > > > >> > > > w=0x210c960: deregister unregistered
>>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize:
>>> > > > connected
>>> > > > > > to
>>> > > > > > > >> > > > /var/run/xen/qmp-libxl-2
>>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response:
>>> message
>>> > > > > > type: qmp
>>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare:
>>> next qmp
>>> > > > > > command: '{
>>> > > > > > > >> > > >     "execute": "qmp_capabilities",
>>> > > > > > > >> > > >     "id": 1
>>> > > > > > > >> > > > }
>>> > > > > > > >> > > > '
>>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response:
>>> message
>>> > > > type:
>>> > > > > > > >> return
>>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare:
>>> next qmp
>>> > > > > > command: '{
>>> > > > > > > >> > > >     "execute": "query-chardev",
>>> > > > > > > >> > > >     "id": 2
>>> > > > > > > >> > > > }
>>> > > > > > > >> > > > '
>>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response:
>>> message
>>> > > > type:
>>> > > > > > > >> return
>>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare:
>>> next qmp
>>> > > > > > command: '{
>>> > > > > > > >> > > >     "execute": "change",
>>> > > > > > > >> > > >     "id": 3,
>>> > > > > > > >> > > >     "arguments": {
>>> > > > > > > >> > > >         "device": "vnc",
>>> > > > > > > >> > > >         "target": "password",
>>> > > > > > > >> > > >         "arg": ""
>>> > > > > > > >> > > >     }
>>> > > > > > > >> > > > }
>>> > > > > > > >> > > > '
>>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response:
>>> message
>>> > > > type:
>>> > > > > > > >> return
>>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare:
>>> next qmp
>>> > > > > > command: '{
>>> > > > > > > >> > > >     "execute": "query-vnc",
>>> > > > > > > >> > > >     "id": 4
>>> > > > > > > >> > > > }
>>> > > > > > > >> > > > '
>>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response:
>>> message
>>> > > > type:
>>> > > > > > > >> return
>>> > > > > > > >> > > > libxl: debug:
>>> libxl_event.c:559:libxl__ev_xswatch_register:
>>> > > > > > watch
>>> > > > > > > >> > > > w=0x210e8a8
>>> wpath=/local/domain/0/backend/vif/2/0/state
>>> > > > > > token=3/2:
>>> > > > > > > >> > > register
>>> > > > > > > >> > > > slotnum=3
>>> > > > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback:
>>> watch
>>> > > > > > w=0x210e8a8
>>> > > > > > > >> > > > wpath=/local/domain/0/backend/vif/2/0/state
>>> token=3/2: event
>>> > > > > > > >> > > > epath=/local/domain/0/backend/vif/2/0/state
>>> > > > > > > >> > > > libxl: debug:
>>> libxl_event.c:647:devstate_watch_callback:
>>> > > > backend
>>> > > > > > > >> > > > /local/domain/0/backend/vif/2/0/state wanted state
>>> 2 still
>>> > > > > > waiting
>>> > > > > > > >> state
>>> > > > > > > >> > > 1
>>> > > > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback:
>>> watch
>>> > > > > > w=0x210e8a8
>>> > > > > > > >> > > > wpath=/local/domain/0/backend/vif/2/0/state
>>> token=3/2: event
>>> > > > > > > >> > > > epath=/local/domain/0/backend/vif/2/0/state
>>> > > > > > > >> > > > libxl: debug:
>>> libxl_event.c:643:devstate_watch_callback:
>>> > > > backend
>>> > > > > > > >> > > > /local/domain/0/backend/vif/2/0/state wanted state
>>> 2 ok
>>> > > > > > > >> > > > libxl: debug:
>>> > > > libxl_event.c:596:libxl__ev_xswatch_deregister:
>>> > > > > > watch
>>> > > > > > > >> > > > w=0x210e8a8
>>> wpath=/local/domain/0/backend/vif/2/0/state
>>> > > > > > token=3/2:
>>> > > > > > > >> > > > deregister slotnum=3
>>> > > > > > > >> > > > libxl: debug:
>>> > > > libxl_event.c:608:libxl__ev_xswatch_deregister:
>>> > > > > > watch
>>> > > > > > > >> > > > w=0x210e8a8: deregister unregistered
>>> > > > > > > >> > > > libxl: debug: libxl_device.c:959:device_hotplug:
>>> calling
>>> > > > hotplug
>>> > > > > > > >> script:
>>> > > > > > > >> > > > /etc/xen/scripts/vif-bridge online
>>> > > > > > > >> > > > libxl: debug: libxl_device.c:959:device_hotplug:
>>> calling
>>> > > > hotplug
>>> > > > > > > >> script:
>>> > > > > > > >> > > > /etc/xen/scripts/vif-bridge add
>>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize:
>>> > > > connected
>>> > > > > > to
>>> > > > > > > >> > > > /var/run/xen/qmp-libxl-2
>>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response:
>>> message
>>> > > > > > type: qmp
>>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare:
>>> next qmp
>>> > > > > > command: '{
>>> > > > > > > >> > > >     "execute": "qmp_capabilities",
>>> > > > > > > >> > > >     "id": 1
>>> > > > > > > >> > > > }
>>> > > > > > > >> > > > '
>>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response:
>>> message
>>> > > > type:
>>> > > > > > > >> return
>>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare:
>>> next qmp
>>> > > > > > command: '{
>>> > > > > > > >> > > >     "execute": "device_add",
>>> > > > > > > >> > > >     "id": 2,
>>> > > > > > > >> > > >     "arguments": {
>>> > > > > > > >> > > >         "driver": "xen-pci-passthrough",
>>> > > > > > > >> > > >         "id": "pci-pt-03_00.0",
>>> > > > > > > >> > > >         "hostaddr": "0000:03:00.0"
>>> > > > > > > >> > > >     }
>>> > > > > > > >> > > > }
>>> > > > > > > >> > > > '
>>> > > > > > > >> > > > libxl: error: libxl_qmp.c:454:qmp_next: Socket read
>>> error:
>>> > > > > > > >> Connection
>>> > > > > > > >> > > reset
>>> > > > > > > >> > > > by peer
>>> > > > > > > >> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize:
>>> > > > Connection
>>> > > > > > > >> error:
>>> > > > > > > >> > > > Connection refused
>>> > > > > > > >> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize:
>>> > > > Connection
>>> > > > > > > >> error:
>>> > > > > > > >> > > > Connection refused
>>> > > > > > > >> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize:
>>> > > > Connection
>>> > > > > > > >> error:
>>> > > > > > > >> > > > Connection refused
>>> > > > > > > >> > > > libxl: debug:
>>> libxl_pci.c:81:libxl__create_pci_backend:
>>> > > > > > Creating pci
>>> > > > > > > >> > > backend
>>> > > > > > > >> > > > libxl: debug:
>>> libxl_event.c:1737:libxl__ao_progress_report:
>>> > > > ao
>>> > > > > > > >> 0x210c360:
>>> > > > > > > >> > > > progress report: ignored
>>> > > > > > > >> > > > libxl: debug:
>>> libxl_event.c:1569:libxl__ao_complete: ao
>>> > > > > > 0x210c360:
>>> > > > > > > >> > > > complete, rc=0
>>> > > > > > > >> > > > libxl: debug:
>>> libxl_event.c:1541:libxl__ao__destroy: ao
>>> > > > > > 0x210c360:
>>> > > > > > > >> > > destroy
>>> > > > > > > >> > > > Daemon running with PID 3214
>>> > > > > > > >> > > > xc: debug: hypercall buffer: total allocations:793
>>> total
>>> > > > > > > >> releases:793
>>> > > > > > > >> > > > xc: debug: hypercall buffer: current allocations:0
>>> maximum
>>> > > > > > > >> allocations:4
>>> > > > > > > >> > > > xc: debug: hypercall buffer: cache current size:4
>>> > > > > > > >> > > > xc: debug: hypercall buffer: cache hits:785 misses:4
>>> > > > toobig:4
>>> > > > > > > >> > > >
>>> > > > > > > >> > > >
>>> ###########################################################
>>> > > > > > > >> > > > root@fiat:/var/log/xen# cat
>>> qemu-dm-ubuntu-hvm-0.log
>>> > > > > > > >> > > > char device redirected to /dev/pts/5 (label serial0)
>>> > > > > > > >> > > > qemu: hardware error: xen: failed to populate ram at
>>> > > > 40030000
>>> > > > > > > >> > > > CPU #0:
>>> > > > > > > >> > > > EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
>>> > > > > > > >> > > > ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
>>> > > > > > > >> > > > EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0
>>> A20=1 SMM=0
>>> > > > HLT=1
>>> > > > > > > >> > > > ES =0000 00000000 0000ffff 00009300
>>> > > > > > > >> > > > CS =f000 ffff0000 0000ffff 00009b00
>>> > > > > > > >> > > > SS =0000 00000000 0000ffff 00009300
>>> > > > > > > >> > > > DS =0000 00000000 0000ffff 00009300
>>> > > > > > > >> > > > FS =0000 00000000 0000ffff 00009300
>>> > > > > > > >> > > > GS =0000 00000000 0000ffff 00009300
>>> > > > > > > >> > > > LDT=0000 00000000 0000ffff 00008200
>>> > > > > > > >> > > > TR =0000 00000000 0000ffff 00008b00
>>> > > > > > > >> > > > GDT=     00000000 0000ffff
>>> > > > > > > >> > > > IDT=     00000000 0000ffff
>>> > > > > > > >> > > > CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
>>> > > > > > > >> > > > DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
>>> > > > > > > >> > > > DR6=ffff0ff0 DR7=00000400
>>> > > > > > > >> > > > EFER=0000000000000000
>>> > > > > > > >> > > > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
>>> > > > > > > >> > > > FPR0=0000000000000000 0000 FPR1=0000000000000000
>>> 0000
>>> > > > > > > >> > > > FPR2=0000000000000000 0000 FPR3=0000000000000000
>>> 0000
>>> > > > > > > >> > > > FPR4=0000000000000000 0000 FPR5=0000000000000000
>>> 0000
>>> > > > > > > >> > > > FPR6=0000000000000000 0000 FPR7=0000000000000000
>>> 0000
>>> > > > > > > >> > > > XMM00=00000000000000000000000000000000
>>> > > > > > > >> > > > XMM01=00000000000000000000000000000000
>>> > > > > > > >> > > > XMM02=00000000000000000000000000000000
>>> > > > > > > >> > > > XMM03=00000000000000000000000000000000
>>> > > > > > > >> > > > XMM04=00000000000000000000000000000000
>>> > > > > > > >> > > > XMM05=00000000000000000000000000000000
>>> > > > > > > >> > > > XMM06=00000000000000000000000000000000
>>> > > > > > > >> > > > XMM07=00000000000000000000000000000000
>>> > > > > > > >> > > > CPU #1:
>>> > > > > > > >> > > > EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
>>> > > > > > > >> > > > ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
>>> > > > > > > >> > > > EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0
>>> A20=1 SMM=0
>>> > > > HLT=1
>>> > > > > > > >> > > > ES =0000 00000000 0000ffff 00009300
>>> > > > > > > >> > > > CS =f000 ffff0000 0000ffff 00009b00
>>> > > > > > > >> > > > SS =0000 00000000 0000ffff 00009300
>>> > > > > > > >> > > > DS =0000 00000000 0000ffff 00009300
>>> > > > > > > >> > > > FS =0000 00000000 0000ffff 00009300
>>> > > > > > > >> > > > GS =0000 00000000 0000ffff 00009300
>>> > > > > > > >> > > > LDT=0000 00000000 0000ffff 00008200
>>> > > > > > > >> > > > TR =0000 00000000 0000ffff 00008b00
>>> > > > > > > >> > > > GDT=     00000000 0000ffff
>>> > > > > > > >> > > > IDT=     00000000 0000ffff
>>> > > > > > > >> > > > CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
>>> > > > > > > >> > > > DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
>>> > > > > > > >> > > > DR6=ffff0ff0 DR7=00000400
>>> > > > > > > >> > > > EFER=0000000000000000
>>> > > > > > > >> > > > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
>>> > > > > > > >> > > > FPR0=0000000000000000 0000 FPR1=0000000000000000
>>> 0000
>>> > > > > > > >> > > > FPR2=0000000000000000 0000 FPR3=0000000000000000
>>> 0000
>>> > > > > > > >> > > > FPR4=0000000000000000 0000 FPR5=0000000000000000
>>> 0000
>>> > > > > > > >> > > > FPR6=0000000000000000 0000 FPR7=0000000000000000
>>> 0000
>>> > > > > > > >> > > > XMM00=00000000000000000000000000000000
>>> > > > > > > >> > > > XMM01=00000000000000000000000000000000
>>> > > > > > > >> > > > XMM02=00000000000000000000000000000000
>>> > > > > > > >> > > > XMM03=00000000000000000000000000000000
>>> > > > > > > >> > > > XMM04=00000000000000000000000000000000
>>> > > > > > > >> > > > XMM05=00000000000000000000000000000000
>>> > > > > > > >> > > > XMM06=00000000000000000000000000000000
>>> > > > > > > >> > > > XMM07=00000000000000000000000000000000
>>> > > > > > > >> > > >
>>> > > > > > > >> > > >
>>> ###########################################################
>>> > > > > > > >> > > > /etc/default/grub
>>> > > > > > > >> > > > GRUB_DEFAULT="Xen 4.3-amd64"
>>> > > > > > > >> > > > GRUB_HIDDEN_TIMEOUT=0
>>> > > > > > > >> > > > GRUB_HIDDEN_TIMEOUT_QUIET=true
>>> > > > > > > >> > > > GRUB_TIMEOUT=10
>>> > > > > > > >> > > > GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null ||
>>> echo
>>> > > > Debian`
>>> > > > > > > >> > > > GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
>>> > > > > > > >> > > > GRUB_CMDLINE_LINUX=""
>>> > > > > > > >> > > > # biosdevname=0
>>> > > > > > > >> > > > GRUB_CMDLINE_XEN="dom0_mem=1024M dom0_max_vcpus=1"
>>> > > > > > > >> > >
>>> > > > > > > >> > > > _______________________________________________
>>> > > > > > > >> > > > Xen-devel mailing list
>>> > > > > > > >> > > > Xen-devel@lists.xen.org
>>> > > > > > > >> > > > http://lists.xen.org/xen-devel
>>> > > > > > > >> > >
>>> > > > > > > >> > >
>>> > > > > > > >>
>>> > > > > > > >
>>> > > > > > > >
>>> > > > > >
>>> > > >
>>> >
>>>
>>
>> >
>>
>
>

[-- Attachment #1.2: Type: text/html, Size: 64478 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Xen 4.3 PCI passthrough possible bug
  2014-02-08 15:36 Konrad Wilk
@ 2014-02-08 15:37 ` Mike Neiderhauser
  2014-02-08 17:42   ` Mike Neiderhauser
  0 siblings, 1 reply; 22+ messages in thread
From: Mike Neiderhauser @ 2014-02-08 15:37 UTC (permalink / raw)
  To: Konrad Wilk; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 39953 bytes --]

I will give it a shot.  Thanks!


On Sat, Feb 8, 2014 at 10:36 AM, Konrad Wilk <konrad.wilk@oracle.com> wrote:

>
> ----- mikeneiderhauser@gmail.com wrote:
> >
> > I followed this site (
> http://wiki.xenproject.org/wiki/Xen_4.4_RC3_test_instructions).
> and then followed (http://wiki.xen.org/wiki/Compiling_Xen_From_Source)
> >
>
> Ah, so you are looking for the     xen_pt: Fix passthrough of device with
> ROM.
> which is not in the Xen 4.4-rc3 but in the master.
>
> One thing you can do is:
>
> cd xen/tools/qemu-xen-dir
> git fetch upstream
> git checkout origin/master
> [you should see: "HEAD is now at 027c412... configure: Disable libtool if
> -fPIE does not work with it (bug #1257099)"]
>
> Go back to main xen directory:
> cd ../../../
> ./configure
> make
> make install
>
> and you should be using now an newer version of QEMU with the fix.
>
>
> >
>
> git clone -b 4.4.0-rc3 git://xenbits.xen.org/xen.git
> >
>
>
> Had to take some additional steps here to get all of the libs
> # apt-get install build-essential # apt-get install bcc bin86 gawk bridge-utils iproute libcurl3 libcurl4-openssl-dev bzip2 module-init-tools transfig tgif # apt-get install texinfo texlive-latex-base texlive-latex-recommended texlive-fonts-extra texlive-fonts-recommended pciutils-dev mercurial# apt-get install make gcc libc6-dev zlib1g-dev python python-dev python-twisted libncurses5-dev patch libvncserver-dev libsdl-dev libjpeg62-dev# apt-get install iasl libbz2-dev e2fslibs-dev git-core uuid-dev ocaml ocaml-findlib libx11-dev bison flex xz-utils libyajl-dev# apt-get install gettext
> apt-get install libaio-dev
> apt-get install libpixman-1-dev
>
> ./configure
> make dist
> make install
>
> >
> >
> >
> > On Fri, Feb 7, 2014 at 4:49 PM, Konrad Rzeszutek Wilk <
> konrad.wilk@oracle.com> wrote:
> >
>>
>> > On Fri, Feb 07, 2014 at 04:29:18PM -0500, Mike Neiderhauser wrote:
>> > > I did not use the patch.  I was assuming it was already patched given
>> > > previous email.  Is the patch for qemu source or xen source?
>> >
>> >
>> It is for QEMU, but you are right - it should have been part
>> > of QEMU if you got the latest version of Xen-unstable.
>> >
>> > You didn't use some specific tag but just 'staging' ?
>> >
>> >
>> >
>> > >
>> > >
>> > > On Fri, Feb 7, 2014 at 4:01 PM, Konrad Rzeszutek Wilk <
>> > > konrad.wilk@oracle.com> wrote:
>> > >
>> > > > On Fri, Feb 07, 2014 at 03:45:19PM -0500, Mike Neiderhauser wrote:
>> > > > > Ok. I started ran the initscripts and now xl works.
>> > > > >
>> > > > > However, I still see the same behavior as before:
>> > > > >
>> > > >
>> > > > Did you use the patch that was mentioned in the URL?
>> > > >
>> > > > > root@fiat:~# xl create /etc/xen/ubuntu-hvm-0.cfg
>> > > > > Parsing config from /etc/xen/ubuntu-hvm-0.cfg
>> > > > > libxl: error: libxl_qmp.c:448:qmp_next: Socket read error:
>> Connection
>> > > > reset
>> > > > > by peer
>> > > > > libxl: error: libxl_qmp.c:691:libxl__qmp_initialize: Connection
>> error:
>> > > > > Connection refused
>> > > > > libxl: error: libxl_qmp.c:691:libxl__qmp_initialize: Connection
>> error:
>> > > > > Connection refused
>> > > > > libxl: error: libxl_qmp.c:691:libxl__qmp_initialize: Connection
>> error:
>> > > > > Connection refused
>> > > > > root@fiat:~# xl list
>> > > > > Name                                        ID   Mem VCPUs State
>> Time(s)
>> > > > > Domain-0                                     0  1024     1
>> r-----
>> > > > >  15.2
>> > > > > ubuntu-hvm-0                                 1  1025     1
>> ------
>> > > > > 0.0
>> > > > >
>> > > > > (XEN)  Dom0 kernel: 64-bit, PAE, lsb, paddr 0x1000000 -> 0x23f3000
>> > > > > (XEN) PHYSICAL MEMORY ARRANGEMENT:
>> > > > > (XEN)  Dom0 alloc.:   0000000134000000->0000000138000000 (233690
>> pages to
>> > > > > be allocated)
>> > > > > (XEN)  Init. ramdisk: 000000013d0da000->000000013ffffe00
>> > > > > (XEN) VIRTUAL MEMORY ARRANGEMENT:
>> > > > > (XEN)  Loaded kernel: ffffffff81000000->ffffffff823f3000
>> > > > > (XEN)  Init. ramdisk: ffffffff823f3000->ffffffff85318e00
>> > > > > (XEN)  Phys-Mach map: ffffffff85319000->ffffffff85519000
>> > > > > (XEN)  Start info:    ffffffff85519000->ffffffff855194b4
>> > > > > (XEN)  Page tables:   ffffffff8551a000->ffffffff85549000
>> > > > > (XEN)  Boot stack:    ffffffff85549000->ffffffff8554a000
>> > > > > (XEN)  TOTAL:         ffffffff80000000->ffffffff85800000
>> > > > > (XEN)  ENTRY ADDRESS: ffffffff81d261e0
>> > > > > (XEN) Dom0 has maximum 1 VCPUs
>> > > > > (XEN) elf_load_binary: phdr 0 at 0xffffffff81000000 ->
>> 0xffffffff81b2f000
>> > > > > (XEN) elf_load_binary: phdr 1 at 0xffffffff81c00000 ->
>> 0xffffffff81d0f0f0
>> > > > > (XEN) elf_load_binary: phdr 2 at 0xffffffff81d10000 ->
>> 0xffffffff81d252c0
>> > > > > (XEN) elf_load_binary: phdr 3 at 0xffffffff81d26000 ->
>> 0xffffffff81e6d000
>> > > > > (XEN) Scrubbing Free RAM: .............................done.
>> > > > > (XEN) Initial low memory virq threshold set at 0x4000 pages.
>> > > > > (XEN) Std. Loglevel: All
>> > > > > (XEN) Guest Loglevel: All
>> > > > > (XEN) Xen is relinquishing VGA console.
>> > > > > (XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to
>> switch input
>> > > > > to Xen)
>> > > > > (XEN) Freed 260kB init memory.
>> > > > > (XEN) PCI add device 0000:00:00.0
>> > > > > (XEN) PCI add device 0000:00:01.0
>> > > > > (XEN) PCI add device 0000:00:1a.0
>> > > > > (XEN) PCI add device 0000:00:1c.0
>> > > > > (XEN) PCI add device 0000:00:1d.0
>> > > > > (XEN) PCI add device 0000:00:1e.0
>> > > > > (XEN) PCI add device 0000:00:1f.0
>> > > > > (XEN) PCI add device 0000:00:1f.2
>> > > > > (XEN) PCI add device 0000:00:1f.3
>> > > > > (XEN) PCI add device 0000:01:00.0
>> > > > > (XEN) PCI add device 0000:02:02.0
>> > > > > (XEN) PCI add device 0000:02:04.0
>> > > > > (XEN) PCI add device 0000:03:00.0
>> > > > > (XEN) PCI add device 0000:03:00.1
>> > > > > (XEN) PCI add device 0000:04:00.0
>> > > > > (XEN) PCI add device 0000:04:00.1
>> > > > > (XEN) PCI add device 0000:05:00.0
>> > > > > (XEN) PCI add device 0000:05:00.1
>> > > > > (XEN) PCI add device 0000:06:03.0
>> > > > > (XEN) page_alloc.c:1460:d0 Over-allocation for domain 1: 262401 >
>> 262400
>> > > > > (XEN) memory.c:158:d0 Could not allocate order=0 extent: id=1
>> memflags=0
>> > > > > (200 of 1024)
>> > > > > (d1) HVM Loader
>> > > > > (d1) Detected Xen v4.4-rc2
>> > > > > (d1) Xenbus rings @0xfeffc000, event channel 4
>> > > > > (d1) System requested SeaBIOS
>> > > > > (d1) CPU speed is 3093 MHz
>> > > > > (d1) Relocating guest memory for lowmem MMIO space disabled
>> > > > >
>> > > > >
>> > > > > Excerpt from /var/log/xen/*
>> > > > > qemu: hardware error: xen: failed to populate ram at 40050000
>> > > > >
>> > > > >
>> > > > > On Fri, Feb 7, 2014 at 3:39 PM, Konrad Rzeszutek Wilk <
>> > > > > konrad.wilk@oracle.com> wrote:
>> > > > >
>> > > > > > On Fri, Feb 07, 2014 at 03:36:49PM -0500, Mike Neiderhauser
>> wrote:
>> > > > > > > I was able to compile and install xen4.4 RC3 on my host,
>> however I am
>> > > > > > > getting the error:
>> > > > > > >
>> > > > > > > root@fiat:~/git/xen# xl list
>> > > > > > > xc: error: Could not obtain handle on privileged command
>> interface
>> > > > (2 =
>> > > > > > No
>> > > > > > > such file or directory): Internal error
>> > > > > > > libxl: error: libxl.c:92:libxl_ctx_alloc: cannot open libxc
>> handle:
>> > > > No
>> > > > > > such
>> > > > > > > file or directory
>> > > > > > > cannot init xl context
>> > > > > > >
>> > > > > > > I've google searched for this and an article appears, but is
>> not the
>> > > > same
>> > > > > > > (as far as I can tell).  Running any xl command generates a
>> similar
>> > > > > > error.
>> > > > > > >
>> > > > > > > What can I do to fix this?
>> > > > > >
>> > > > > >
>> > > > > > You need to run the initscripts for Xen. I don't know what your
>> distro
>> > > > is,
>> > > > > > but
>> > > > > > they are usually put in /etc/init.d/rc.d/xen*
>> > > > > >
>> > > > > >
>> > > > > > >
>> > > > > > > Regards
>> > > > > > >
>> > > > > > >
>> > > > > > > On Fri, Feb 7, 2014 at 1:40 PM, Mike Neiderhauser <
>> > > > > > > mikeneiderhauser@gmail.com> wrote:
>> > > > > > >
>> > > > > > > > Much. Do I need to install from src or is there a package I
>> can
>> > > > > > install.
>> > > > > > > >
>> > > > > > > > Regards
>> > > > > > > >
>> > > > > > > >
>> > > > > > > > On Fri, Feb 7, 2014 at 1:30 PM, Konrad Rzeszutek Wilk <
>> > > > > > > > konrad.wilk@oracle.com> wrote:
>> > > > > > > >
>> > > > > > > >> On Fri, Feb 07, 2014 at 10:53:22AM -0500, Mike
>> Neiderhauser wrote:
>> > > > > > > >> > I did not.  I do not have the toolchain installed.  I
>> may have
>> > > > time
>> > > > > > > >> later
>> > > > > > > >> > today to try the patch.  Are there any specific
>> instructions on
>> > > > how
>> > > > > > to
>> > > > > > > >> > patch the src, compile and install?
>> > > > > > > >>
>> > > > > > > >> There actually should be a new version of Xen 4.4-rcX
>> which will
>> > > > have
>> > > > > > the
>> > > > > > > >> fix. That might be easier for you?
>> > > > > > > >> >
>> > > > > > > >> > Regards
>> > > > > > > >> >
>> > > > > > > >> >
>> > > > > > > >> > On Fri, Feb 7, 2014 at 10:25 AM, Konrad Rzeszutek Wilk <
>> > > > > > > >> > konrad.wilk@oracle.com> wrote:
>> > > > > > > >> >
>> > > > > > > >> > > On Thu, Feb 06, 2014 at 09:39:37AM -0500, Mike
>> Neiderhauser
>> > > > wrote:
>> > > > > > > >> > > > Hi all,
>> > > > > > > >> > > >
>> > > > > > > >> > > > I am attempting to do a pci passthrough of an Intel
>> ET card
>> > > > > > (4x1G
>> > > > > > > >> NIC)
>> > > > > > > >> > > to a
>> > > > > > > >> > > > HVM.  I have been attempting to resolve this issue
>> on the
>> > > > > > xen-users
>> > > > > > > >> list,
>> > > > > > > >> > > > but it was advised to post this issue to this list.
>> (Initial
>> > > > > > > >> Message -
>> > > > > > > >> > > >
>> > > > > > > >> > >
>> > > > > > > >>
>> > > > > >
>> > > >
>> http://lists.xenproject.org/archives/html/xen-users/2014-02/msg00036.html
>> > > > > > > >> )
>> > > > > > > >> > > >
>> > > > > > > >> > > > The machine I am using as host is a Dell Poweredge
>> server
>> > > > with a
>> > > > > > > >> Xeon
>> > > > > > > >> > > > E31220 with 4GB of ram.
>> > > > > > > >> > > >
>> > > > > > > >> > > > The possible bug is the following:
>> > > > > > > >> > > > root@fiat:/var/log/xen# cat qemu-dm-ubuntu-hvm-0.log
>> > > > > > > >> > > > char device redirected to /dev/pts/5 (label serial0)
>> > > > > > > >> > > > qemu: hardware error: xen: failed to populate ram at
>> > > > 40030000
>> > > > > > > >> > > > ....
>> > > > > > > >> > > >
>> > > > > > > >> > > > I believe it may be similar to this thread
>> > > > > > > >> > > >
>> > > > > > > >> > >
>> > > > > > > >>
>> > > > > >
>> > > >
>> http://markmail.org/message/3zuiojywempoorxj#query:+page:1+mid:gul34vbe4uyog2d4+state:results
>> > > > > > > >> > > >
>> > > > > > > >> > > >
>> > > > > > > >> > > > Additional info that may be helpful is below.
>> > > > > > > >> > >
>> > > > > > > >> > > Did you try the patch?
>> > > > > > > >> > > >
>> > > > > > > >> > > > Please let me know if you need any additional
>> information.
>> > > > > > > >> > > >
>> > > > > > > >> > > > Thanks in advance for any help provided!
>> > > > > > > >> > > > Regards
>> > > > > > > >> > > >
>> > > > > > > >> > > >
>> ###########################################################
>> > > > > > > >> > > > root@fiat:~# cat /etc/xen/ubuntu-hvm-0.cfg
>> > > > > > > >> > > >
>> ###########################################################
>> > > > > > > >> > > > # Configuration file for Xen HVM
>> > > > > > > >> > > >
>> > > > > > > >> > > > # HVM Name (as appears in 'xl list')
>> > > > > > > >> > > > name="ubuntu-hvm-0"
>> > > > > > > >> > > > # HVM Build settings (+ hardware)
>> > > > > > > >> > > > #kernel = "/usr/lib/xen-4.3/boot/hvmloader"
>> > > > > > > >> > > > builder='hvm'
>> > > > > > > >> > > > device_model='qemu-dm'
>> > > > > > > >> > > > memory=1024
>> > > > > > > >> > > > vcpus=2
>> > > > > > > >> > > >
>> > > > > > > >> > > > # Virtual Interface
>> > > > > > > >> > > > # Network bridge to USB NIC
>> > > > > > > >> > > > vif=['bridge=xenbr0']
>> > > > > > > >> > > >
>> > > > > > > >> > > > ################### PCI PASSTHROUGH
>> ###################
>> > > > > > > >> > > > # PCI Permissive mode toggle
>> > > > > > > >> > > > #pci_permissive=1
>> > > > > > > >> > > >
>> > > > > > > >> > > > # All PCI Devices
>> > > > > > > >> > > > #pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1',
>> '05:00.0',
>> > > > > > > >> '05:00.1']
>> > > > > > > >> > > >
>> > > > > > > >> > > > # First two ports on Intel 4x1G NIC
>> > > > > > > >> > > > #pci=['03:00.0','03:00.1']
>> > > > > > > >> > > >
>> > > > > > > >> > > > # Last two ports on Intel 4x1G NIC
>> > > > > > > >> > > > #pci=['04:00.0', '04:00.1']
>> > > > > > > >> > > >
>> > > > > > > >> > > > # All ports on Intel 4x1G NIC
>> > > > > > > >> > > > pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1']
>> > > > > > > >> > > >
>> > > > > > > >> > > > # Brodcom 2x1G NIC
>> > > > > > > >> > > > #pci=['05:00.0', '05:00.1']
>> > > > > > > >> > > > ################### PCI PASSTHROUGH
>> ###################
>> > > > > > > >> > > >
>> > > > > > > >> > > > # HVM Disks
>> > > > > > > >> > > > # Hard disk only
>> > > > > > > >> > > > # Boot from HDD first ('c')
>> > > > > > > >> > > > boot="c"
>> > > > > > > >> > > > disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w']
>> > > > > > > >> > > >
>> > > > > > > >> > > > # Hard disk with ISO
>> > > > > > > >> > > > # Boot from ISO first ('d')
>> > > > > > > >> > > > #boot="d"
>> > > > > > > >> > > > #disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w',
>> > > > > > > >> > > >
>> 'file:/root/ubuntu-12.04.3-server-amd64.iso,hdc:cdrom,r']
>> > > > > > > >> > > >
>> > > > > > > >> > > > # ACPI Enable
>> > > > > > > >> > > > acpi=1
>> > > > > > > >> > > > # HVM Event Modes
>> > > > > > > >> > > > on_poweroff='destroy'
>> > > > > > > >> > > > on_reboot='restart'
>> > > > > > > >> > > > on_crash='restart'
>> > > > > > > >> > > >
>> > > > > > > >> > > > # Serial Console Configuration (Xen Console)
>> > > > > > > >> > > > sdl=0
>> > > > > > > >> > > > serial='pty'
>> > > > > > > >> > > >
>> > > > > > > >> > > > # VNC Configuration
>> > > > > > > >> > > > # Only reacable from localhost
>> > > > > > > >> > > > vnc=1
>> > > > > > > >> > > > vnclisten="0.0.0.0"
>> > > > > > > >> > > > vncpasswd=""
>> > > > > > > >> > > >
>> > > > > > > >> > > >
>> ###########################################################
>> > > > > > > >> > > > Copied for xen-users list
>> > > > > > > >> > > >
>> ###########################################################
>> > > > > > > >> > > >
>> > > > > > > >> > > > It appears that it cannot obtain the RAM mapping for
>> this
>> > > > PCI
>> > > > > > > >> device.
>> > > > > > > >> > > >
>> > > > > > > >> > > >
>> > > > > > > >> > > > I rebooted the Host.  I ran assigned pci devices to
>> > > > pciback. The
>> > > > > > > >> output
>> > > > > > > >> > > > looks like:
>> > > > > > > >> > > > root@fiat:~# ./dev_mgmt.sh
>> > > > > > > >> > > > Loading Kernel Module 'xen-pciback'
>> > > > > > > >> > > > Calling function pciback_dev for:
>> > > > > > > >> > > > PCI DEVICE 0000:03:00.0
>> > > > > > > >> > > > Unbinding 0000:03:00.0 from igb
>> > > > > > > >> > > > Binding 0000:03:00.0 to pciback
>> > > > > > > >> > > >
>> > > > > > > >> > > > PCI DEVICE 0000:03:00.1
>> > > > > > > >> > > > Unbinding 0000:03:00.1 from igb
>> > > > > > > >> > > > Binding 0000:03:00.1 to pciback
>> > > > > > > >> > > >
>> > > > > > > >> > > > PCI DEVICE 0000:04:00.0
>> > > > > > > >> > > > Unbinding 0000:04:00.0 from igb
>> > > > > > > >> > > > Binding 0000:04:00.0 to pciback
>> > > > > > > >> > > >
>> > > > > > > >> > > > PCI DEVICE 0000:04:00.1
>> > > > > > > >> > > > Unbinding 0000:04:00.1 from igb
>> > > > > > > >> > > > Binding 0000:04:00.1 to pciback
>> > > > > > > >> > > >
>> > > > > > > >> > > > PCI DEVICE 0000:05:00.0
>> > > > > > > >> > > > Unbinding 0000:05:00.0 from bnx2
>> > > > > > > >> > > > Binding 0000:05:00.0 to pciback
>> > > > > > > >> > > >
>> > > > > > > >> > > > PCI DEVICE 0000:05:00.1
>> > > > > > > >> > > > Unbinding 0000:05:00.1 from bnx2
>> > > > > > > >> > > > Binding 0000:05:00.1 to pciback
>> > > > > > > >> > > >
>> > > > > > > >> > > > Listing PCI Devices Available to Xen
>> > > > > > > >> > > > 0000:03:00.0
>> > > > > > > >> > > > 0000:03:00.1
>> > > > > > > >> > > > 0000:04:00.0
>> > > > > > > >> > > > 0000:04:00.1
>> > > > > > > >> > > > 0000:05:00.0
>> > > > > > > >> > > > 0000:05:00.1
>> > > > > > > >> > > >
>> > > > > > > >> > > >
>> ###########################################################
>> > > > > > > >> > > > root@fiat:~# xl -vvv create
>> /etc/xen/ubuntu-hvm-0.cfg
>> > > > > > > >> > > > Parsing config from /etc/xen/ubuntu-hvm-0.cfg
>> > > > > > > >> > > > WARNING: ignoring device_model directive.
>> > > > > > > >> > > > WARNING: Use "device_model_override" instead if you
>> really
>> > > > want
>> > > > > > a
>> > > > > > > >> > > > non-default device_model
>> > > > > > > >> > > > libxl: debug: libxl_create.c:1230:do_domain_create:
>> ao
>> > > > > > 0x210c360:
>> > > > > > > >> create:
>> > > > > > > >> > > > how=(nil) callback=(nil) poller=0x210c3c0
>> > > > > > > >> > > > libxl: debug:
>> > > > libxl_device.c:257:libxl__device_disk_set_backend:
>> > > > > > > >> Disk
>> > > > > > > >> > > > vdev=hda spec.backend=unknown
>> > > > > > > >> > > > libxl: debug:
>> > > > libxl_device.c:296:libxl__device_disk_set_backend:
>> > > > > > > >> Disk
>> > > > > > > >> > > > vdev=hda, using backend phy
>> > > > > > > >> > > > libxl: debug:
>> libxl_create.c:675:initiate_domain_create:
>> > > > running
>> > > > > > > >> > > bootloader
>> > > > > > > >> > > > libxl: debug:
>> libxl_bootloader.c:321:libxl__bootloader_run:
>> > > > not
>> > > > > > a PV
>> > > > > > > >> > > > domain, skipping bootloader
>> > > > > > > >> > > > libxl: debug:
>> > > > libxl_event.c:608:libxl__ev_xswatch_deregister:
>> > > > > > watch
>> > > > > > > >> > > > w=0x210c728: deregister unregistered
>> > > > > > > >> > > > libxl: debug:
>> libxl_numa.c:475:libxl__get_numa_candidate:
>> > > > New
>> > > > > > best
>> > > > > > > >> NUMA
>> > > > > > > >> > > > placement candidate found: nr_nodes=1, nr_cpus=4,
>> > > > nr_vcpus=3,
>> > > > > > > >> > > > free_memkb=2980
>> > > > > > > >> > > > libxl: detail: libxl_dom.c:195:numa_place_domain:
>> NUMA
>> > > > placement
>> > > > > > > >> > > candidate
>> > > > > > > >> > > > with 1 nodes, 4 cpus and 2980 KB free selected
>> > > > > > > >> > > > xc: detail: elf_parse_binary: phdr: paddr=0x100000
>> > > > memsz=0xa69a4
>> > > > > > > >> > > > xc: detail: elf_parse_binary: memory: 0x100000 ->
>> 0x1a69a4
>> > > > > > > >> > > > xc: info: VIRTUAL MEMORY ARRANGEMENT:
>> > > > > > > >> > > >   Loader:        0000000000100000->00000000001a69a4
>> > > > > > > >> > > >   Modules:       0000000000000000->0000000000000000
>> > > > > > > >> > > >   TOTAL:         0000000000000000->000000003f800000
>> > > > > > > >> > > >   ENTRY ADDRESS: 0000000000100608
>> > > > > > > >> > > > xc: info: PHYSICAL MEMORY ALLOCATION:
>> > > > > > > >> > > >   4KB PAGES: 0x0000000000000200
>> > > > > > > >> > > >   2MB PAGES: 0x00000000000001fb
>> > > > > > > >> > > >   1GB PAGES: 0x0000000000000000
>> > > > > > > >> > > > xc: detail: elf_load_binary: phdr 0 at
>> 0x7f022c779000 ->
>> > > > > > > >> 0x7f022c81682d
>> > > > > > > >> > > > libxl: debug:
>> > > > libxl_device.c:257:libxl__device_disk_set_backend:
>> > > > > > > >> Disk
>> > > > > > > >> > > > vdev=hda spec.backend=phy
>> > > > > > > >> > > > libxl: debug:
>> libxl_event.c:559:libxl__ev_xswatch_register:
>> > > > > > watch
>> > > > > > > >> > > > w=0x2112f48
>> wpath=/local/domain/0/backend/vbd/2/768/state
>> > > > > > token=3/0:
>> > > > > > > >> > > > register slotnum=3
>> > > > > > > >> > > > libxl: debug: libxl_create.c:1243:do_domain_create:
>> ao
>> > > > > > 0x210c360:
>> > > > > > > >> > > > inprogress: poller=0x210c3c0, flags=i
>> > > > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback:
>> watch
>> > > > > > w=0x2112f48
>> > > > > > > >> > > > wpath=/local/domain/0/backend/vbd/2/768/state
>> token=3/0:
>> > > > event
>> > > > > > > >> > > > epath=/local/domain/0/backend/vbd/2/768/state
>> > > > > > > >> > > > libxl: debug:
>> libxl_event.c:647:devstate_watch_callback:
>> > > > backend
>> > > > > > > >> > > > /local/domain/0/backend/vbd/2/768/state wanted state
>> 2 still
>> > > > > > waiting
>> > > > > > > >> > > state 1
>> > > > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback:
>> watch
>> > > > > > w=0x2112f48
>> > > > > > > >> > > > wpath=/local/domain/0/backend/vbd/2/768/state
>> token=3/0:
>> > > > event
>> > > > > > > >> > > > epath=/local/domain/0/backend/vbd/2/768/state
>> > > > > > > >> > > > libxl: debug:
>> libxl_event.c:643:devstate_watch_callback:
>> > > > backend
>> > > > > > > >> > > > /local/domain/0/backend/vbd/2/768/state wanted state
>> 2 ok
>> > > > > > > >> > > > libxl: debug:
>> > > > libxl_event.c:596:libxl__ev_xswatch_deregister:
>> > > > > > watch
>> > > > > > > >> > > > w=0x2112f48
>> wpath=/local/domain/0/backend/vbd/2/768/state
>> > > > > > token=3/0:
>> > > > > > > >> > > > deregister slotnum=3
>> > > > > > > >> > > > libxl: debug:
>> > > > libxl_event.c:608:libxl__ev_xswatch_deregister:
>> > > > > > watch
>> > > > > > > >> > > > w=0x2112f48: deregister unregistered
>> > > > > > > >> > > > libxl: debug: libxl_device.c:959:device_hotplug:
>> calling
>> > > > hotplug
>> > > > > > > >> script:
>> > > > > > > >> > > > /etc/xen/scripts/block add
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1206:libxl__spawn_local_dm:
>> > > > Spawning
>> > > > > > > >> > > device-model
>> > > > > > > >> > > > /usr/bin/qemu-system-i386 with arguments:
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> > > > > > > >> > > > /usr/bin/qemu-system-i386
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> > > > > > -xen-domid
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>   2
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> > > > -chardev
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> > > > > > > >> > > >
>> > > > socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-2,server,nowait
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>   -mon
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> > > > > > > >> > > > chardev=libxl-cmd,mode=control
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>   -name
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> > > > > > ubuntu-hvm-0
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>   -vnc
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> > > > > > 0.0.0.0:0
>> > > > > > > >> ,to=99
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> > > > -global
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> > > > > > > >> isa-fdc.driveA=
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> > > > -serial
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>   pty
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>   -vga
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> > > > cirrus
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> > > > -global
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> > > > > > > >> vga.vram_size_mb=8
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>   -boot
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> > > > order=c
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>   -smp
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> > > > > > 2,maxcpus=2
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> > > > -device
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> > > > > > > >> > > > rtl8139,id=nic0,netdev=net0,mac=00:16:3e:23:44:2c
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> > > > -netdev
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> > > > > > > >> > > >
>> type=tap,id=net0,ifname=vif2.0-emu,script=no,downscript=no
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>   -M
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>   xenfv
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>   -m
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>>   1016
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> > > > -drive
>> > > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:
>> > > > > > > >> > > >
>> > > > > > > >> > >
>> > > > > > > >>
>> > > > > >
>> > > >
>> file=/dev/ubuntu-vg/ubuntu-hvm-0,if=ide,index=0,media=disk,format=raw,cache=writeback
>> > > > > > > >> > > > libxl: debug:
>> libxl_event.c:559:libxl__ev_xswatch_register:
>> > > > > > watch
>> > > > > > > >> > > > w=0x210c960
>> wpath=/local/domain/0/device-model/2/state
>> > > > > > token=3/1:
>> > > > > > > >> > > register
>> > > > > > > >> > > > slotnum=3
>> > > > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback:
>> watch
>> > > > > > w=0x210c960
>> > > > > > > >> > > > wpath=/local/domain/0/device-model/2/state
>> token=3/1: event
>> > > > > > > >> > > > epath=/local/domain/0/device-model/2/state
>> > > > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback:
>> watch
>> > > > > > w=0x210c960
>> > > > > > > >> > > > wpath=/local/domain/0/device-model/2/state
>> token=3/1: event
>> > > > > > > >> > > > epath=/local/domain/0/device-model/2/state
>> > > > > > > >> > > > libxl: debug:
>> > > > libxl_event.c:596:libxl__ev_xswatch_deregister:
>> > > > > > watch
>> > > > > > > >> > > > w=0x210c960
>> wpath=/local/domain/0/device-model/2/state
>> > > > > > token=3/1:
>> > > > > > > >> > > > deregister slotnum=3
>> > > > > > > >> > > > libxl: debug:
>> > > > libxl_event.c:608:libxl__ev_xswatch_deregister:
>> > > > > > watch
>> > > > > > > >> > > > w=0x210c960: deregister unregistered
>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize:
>> > > > connected
>> > > > > > to
>> > > > > > > >> > > > /var/run/xen/qmp-libxl-2
>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response:
>> message
>> > > > > > type: qmp
>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next
>> qmp
>> > > > > > command: '{
>> > > > > > > >> > > >     "execute": "qmp_capabilities",
>> > > > > > > >> > > >     "id": 1
>> > > > > > > >> > > > }
>> > > > > > > >> > > > '
>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response:
>> message
>> > > > type:
>> > > > > > > >> return
>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next
>> qmp
>> > > > > > command: '{
>> > > > > > > >> > > >     "execute": "query-chardev",
>> > > > > > > >> > > >     "id": 2
>> > > > > > > >> > > > }
>> > > > > > > >> > > > '
>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response:
>> message
>> > > > type:
>> > > > > > > >> return
>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next
>> qmp
>> > > > > > command: '{
>> > > > > > > >> > > >     "execute": "change",
>> > > > > > > >> > > >     "id": 3,
>> > > > > > > >> > > >     "arguments": {
>> > > > > > > >> > > >         "device": "vnc",
>> > > > > > > >> > > >         "target": "password",
>> > > > > > > >> > > >         "arg": ""
>> > > > > > > >> > > >     }
>> > > > > > > >> > > > }
>> > > > > > > >> > > > '
>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response:
>> message
>> > > > type:
>> > > > > > > >> return
>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next
>> qmp
>> > > > > > command: '{
>> > > > > > > >> > > >     "execute": "query-vnc",
>> > > > > > > >> > > >     "id": 4
>> > > > > > > >> > > > }
>> > > > > > > >> > > > '
>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response:
>> message
>> > > > type:
>> > > > > > > >> return
>> > > > > > > >> > > > libxl: debug:
>> libxl_event.c:559:libxl__ev_xswatch_register:
>> > > > > > watch
>> > > > > > > >> > > > w=0x210e8a8
>> wpath=/local/domain/0/backend/vif/2/0/state
>> > > > > > token=3/2:
>> > > > > > > >> > > register
>> > > > > > > >> > > > slotnum=3
>> > > > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback:
>> watch
>> > > > > > w=0x210e8a8
>> > > > > > > >> > > > wpath=/local/domain/0/backend/vif/2/0/state
>> token=3/2: event
>> > > > > > > >> > > > epath=/local/domain/0/backend/vif/2/0/state
>> > > > > > > >> > > > libxl: debug:
>> libxl_event.c:647:devstate_watch_callback:
>> > > > backend
>> > > > > > > >> > > > /local/domain/0/backend/vif/2/0/state wanted state 2
>> still
>> > > > > > waiting
>> > > > > > > >> state
>> > > > > > > >> > > 1
>> > > > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback:
>> watch
>> > > > > > w=0x210e8a8
>> > > > > > > >> > > > wpath=/local/domain/0/backend/vif/2/0/state
>> token=3/2: event
>> > > > > > > >> > > > epath=/local/domain/0/backend/vif/2/0/state
>> > > > > > > >> > > > libxl: debug:
>> libxl_event.c:643:devstate_watch_callback:
>> > > > backend
>> > > > > > > >> > > > /local/domain/0/backend/vif/2/0/state wanted state 2
>> ok
>> > > > > > > >> > > > libxl: debug:
>> > > > libxl_event.c:596:libxl__ev_xswatch_deregister:
>> > > > > > watch
>> > > > > > > >> > > > w=0x210e8a8
>> wpath=/local/domain/0/backend/vif/2/0/state
>> > > > > > token=3/2:
>> > > > > > > >> > > > deregister slotnum=3
>> > > > > > > >> > > > libxl: debug:
>> > > > libxl_event.c:608:libxl__ev_xswatch_deregister:
>> > > > > > watch
>> > > > > > > >> > > > w=0x210e8a8: deregister unregistered
>> > > > > > > >> > > > libxl: debug: libxl_device.c:959:device_hotplug:
>> calling
>> > > > hotplug
>> > > > > > > >> script:
>> > > > > > > >> > > > /etc/xen/scripts/vif-bridge online
>> > > > > > > >> > > > libxl: debug: libxl_device.c:959:device_hotplug:
>> calling
>> > > > hotplug
>> > > > > > > >> script:
>> > > > > > > >> > > > /etc/xen/scripts/vif-bridge add
>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize:
>> > > > connected
>> > > > > > to
>> > > > > > > >> > > > /var/run/xen/qmp-libxl-2
>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response:
>> message
>> > > > > > type: qmp
>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next
>> qmp
>> > > > > > command: '{
>> > > > > > > >> > > >     "execute": "qmp_capabilities",
>> > > > > > > >> > > >     "id": 1
>> > > > > > > >> > > > }
>> > > > > > > >> > > > '
>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response:
>> message
>> > > > type:
>> > > > > > > >> return
>> > > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next
>> qmp
>> > > > > > command: '{
>> > > > > > > >> > > >     "execute": "device_add",
>> > > > > > > >> > > >     "id": 2,
>> > > > > > > >> > > >     "arguments": {
>> > > > > > > >> > > >         "driver": "xen-pci-passthrough",
>> > > > > > > >> > > >         "id": "pci-pt-03_00.0",
>> > > > > > > >> > > >         "hostaddr": "0000:03:00.0"
>> > > > > > > >> > > >     }
>> > > > > > > >> > > > }
>> > > > > > > >> > > > '
>> > > > > > > >> > > > libxl: error: libxl_qmp.c:454:qmp_next: Socket read
>> error:
>> > > > > > > >> Connection
>> > > > > > > >> > > reset
>> > > > > > > >> > > > by peer
>> > > > > > > >> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize:
>> > > > Connection
>> > > > > > > >> error:
>> > > > > > > >> > > > Connection refused
>> > > > > > > >> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize:
>> > > > Connection
>> > > > > > > >> error:
>> > > > > > > >> > > > Connection refused
>> > > > > > > >> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize:
>> > > > Connection
>> > > > > > > >> error:
>> > > > > > > >> > > > Connection refused
>> > > > > > > >> > > > libxl: debug:
>> libxl_pci.c:81:libxl__create_pci_backend:
>> > > > > > Creating pci
>> > > > > > > >> > > backend
>> > > > > > > >> > > > libxl: debug:
>> libxl_event.c:1737:libxl__ao_progress_report:
>> > > > ao
>> > > > > > > >> 0x210c360:
>> > > > > > > >> > > > progress report: ignored
>> > > > > > > >> > > > libxl: debug: libxl_event.c:1569:libxl__ao_complete:
>> ao
>> > > > > > 0x210c360:
>> > > > > > > >> > > > complete, rc=0
>> > > > > > > >> > > > libxl: debug: libxl_event.c:1541:libxl__ao__destroy:
>> ao
>> > > > > > 0x210c360:
>> > > > > > > >> > > destroy
>> > > > > > > >> > > > Daemon running with PID 3214
>> > > > > > > >> > > > xc: debug: hypercall buffer: total allocations:793
>> total
>> > > > > > > >> releases:793
>> > > > > > > >> > > > xc: debug: hypercall buffer: current allocations:0
>> maximum
>> > > > > > > >> allocations:4
>> > > > > > > >> > > > xc: debug: hypercall buffer: cache current size:4
>> > > > > > > >> > > > xc: debug: hypercall buffer: cache hits:785 misses:4
>> > > > toobig:4
>> > > > > > > >> > > >
>> > > > > > > >> > > >
>> ###########################################################
>> > > > > > > >> > > > root@fiat:/var/log/xen# cat qemu-dm-ubuntu-hvm-0.log
>> > > > > > > >> > > > char device redirected to /dev/pts/5 (label serial0)
>> > > > > > > >> > > > qemu: hardware error: xen: failed to populate ram at
>> > > > 40030000
>> > > > > > > >> > > > CPU #0:
>> > > > > > > >> > > > EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
>> > > > > > > >> > > > ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
>> > > > > > > >> > > > EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1
>> SMM=0
>> > > > HLT=1
>> > > > > > > >> > > > ES =0000 00000000 0000ffff 00009300
>> > > > > > > >> > > > CS =f000 ffff0000 0000ffff 00009b00
>> > > > > > > >> > > > SS =0000 00000000 0000ffff 00009300
>> > > > > > > >> > > > DS =0000 00000000 0000ffff 00009300
>> > > > > > > >> > > > FS =0000 00000000 0000ffff 00009300
>> > > > > > > >> > > > GS =0000 00000000 0000ffff 00009300
>> > > > > > > >> > > > LDT=0000 00000000 0000ffff 00008200
>> > > > > > > >> > > > TR =0000 00000000 0000ffff 00008b00
>> > > > > > > >> > > > GDT=     00000000 0000ffff
>> > > > > > > >> > > > IDT=     00000000 0000ffff
>> > > > > > > >> > > > CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
>> > > > > > > >> > > > DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
>> > > > > > > >> > > > DR6=ffff0ff0 DR7=00000400
>> > > > > > > >> > > > EFER=0000000000000000
>> > > > > > > >> > > > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
>> > > > > > > >> > > > FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
>> > > > > > > >> > > > FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
>> > > > > > > >> > > > FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
>> > > > > > > >> > > > FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
>> > > > > > > >> > > > XMM00=00000000000000000000000000000000
>> > > > > > > >> > > > XMM01=00000000000000000000000000000000
>> > > > > > > >> > > > XMM02=00000000000000000000000000000000
>> > > > > > > >> > > > XMM03=00000000000000000000000000000000
>> > > > > > > >> > > > XMM04=00000000000000000000000000000000
>> > > > > > > >> > > > XMM05=00000000000000000000000000000000
>> > > > > > > >> > > > XMM06=00000000000000000000000000000000
>> > > > > > > >> > > > XMM07=00000000000000000000000000000000
>> > > > > > > >> > > > CPU #1:
>> > > > > > > >> > > > EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633
>> > > > > > > >> > > > ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
>> > > > > > > >> > > > EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1
>> SMM=0
>> > > > HLT=1
>> > > > > > > >> > > > ES =0000 00000000 0000ffff 00009300
>> > > > > > > >> > > > CS =f000 ffff0000 0000ffff 00009b00
>> > > > > > > >> > > > SS =0000 00000000 0000ffff 00009300
>> > > > > > > >> > > > DS =0000 00000000 0000ffff 00009300
>> > > > > > > >> > > > FS =0000 00000000 0000ffff 00009300
>> > > > > > > >> > > > GS =0000 00000000 0000ffff 00009300
>> > > > > > > >> > > > LDT=0000 00000000 0000ffff 00008200
>> > > > > > > >> > > > TR =0000 00000000 0000ffff 00008b00
>> > > > > > > >> > > > GDT=     00000000 0000ffff
>> > > > > > > >> > > > IDT=     00000000 0000ffff
>> > > > > > > >> > > > CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
>> > > > > > > >> > > > DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
>> > > > > > > >> > > > DR6=ffff0ff0 DR7=00000400
>> > > > > > > >> > > > EFER=0000000000000000
>> > > > > > > >> > > > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
>> > > > > > > >> > > > FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
>> > > > > > > >> > > > FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
>> > > > > > > >> > > > FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
>> > > > > > > >> > > > FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
>> > > > > > > >> > > > XMM00=00000000000000000000000000000000
>> > > > > > > >> > > > XMM01=00000000000000000000000000000000
>> > > > > > > >> > > > XMM02=00000000000000000000000000000000
>> > > > > > > >> > > > XMM03=00000000000000000000000000000000
>> > > > > > > >> > > > XMM04=00000000000000000000000000000000
>> > > > > > > >> > > > XMM05=00000000000000000000000000000000
>> > > > > > > >> > > > XMM06=00000000000000000000000000000000
>> > > > > > > >> > > > XMM07=00000000000000000000000000000000
>> > > > > > > >> > > >
>> > > > > > > >> > > >
>> ###########################################################
>> > > > > > > >> > > > /etc/default/grub
>> > > > > > > >> > > > GRUB_DEFAULT="Xen 4.3-amd64"
>> > > > > > > >> > > > GRUB_HIDDEN_TIMEOUT=0
>> > > > > > > >> > > > GRUB_HIDDEN_TIMEOUT_QUIET=true
>> > > > > > > >> > > > GRUB_TIMEOUT=10
>> > > > > > > >> > > > GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null ||
>> echo
>> > > > Debian`
>> > > > > > > >> > > > GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
>> > > > > > > >> > > > GRUB_CMDLINE_LINUX=""
>> > > > > > > >> > > > # biosdevname=0
>> > > > > > > >> > > > GRUB_CMDLINE_XEN="dom0_mem=1024M dom0_max_vcpus=1"
>> > > > > > > >> > >
>> > > > > > > >> > > > _______________________________________________
>> > > > > > > >> > > > Xen-devel mailing list
>> > > > > > > >> > > > Xen-devel@lists.xen.org
>> > > > > > > >> > > > http://lists.xen.org/xen-devel
>> > > > > > > >> > >
>> > > > > > > >> > >
>> > > > > > > >>
>> > > > > > > >
>> > > > > > > >
>> > > > > >
>> > > >
>> >
>>
>
> >
>

[-- Attachment #1.2: Type: text/html, Size: 63574 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Xen 4.3 PCI passthrough possible bug
@ 2014-02-08 15:36 Konrad Wilk
  2014-02-08 15:37 ` Mike Neiderhauser
  0 siblings, 1 reply; 22+ messages in thread
From: Konrad Wilk @ 2014-02-08 15:36 UTC (permalink / raw)
  To: mikeneiderhauser; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 37375 bytes --]


----- mikeneiderhauser@gmail.com wrote: 
> 
> I followed this site ( http://wiki.xenproject.org/wiki/Xen_4.4_RC3_test_instructions ). 
and then followed ( http://wiki.xen.org/wiki/Compiling_Xen_From_Source ) 
> 


Ah, so you are looking for the xen_pt: Fix passthrough of device with ROM. 
which is not in the Xen 4.4-rc3 but in the master. 


One thing you can do is: 


cd xen/tools/qemu-xen-dir 
git fetch upstream 
git checkout origin/master 
[you should see: " HEAD is now at 027c412... configure: Disable libtool if -fPIE does not work with it (bug #1257099)"] 


Go back to main xen directory: 
cd ../../../ 
./configure 
make 
make install 


and you should be using now an newer version of QEMU with the fix. 




> 
git clone -b 4.4.0-rc3 git:// xenbits.xen.org/xen.git 
> Had to take some additional steps here to get all of the libs
# apt-get install build-essential # apt-get install bcc bin86 gawk bridge-utils iproute libcurl3 libcurl4-openssl-dev bzip2 module-init-tools transfig tgif # apt-get install texinfo texlive-latex-base texlive-latex-recommended texlive-fonts-extra texlive-fonts-recommended pciutils-dev mercurial # apt-get install make gcc libc6-dev zlib1g-dev python python-dev python-twisted libncurses5-dev patch libvncserver-dev libsdl-dev libjpeg62-dev # apt-get install iasl libbz2-dev e2fslibs-dev git-core uuid-dev ocaml ocaml-findlib libx11-dev bison flex xz-utils libyajl-dev # apt-get install gettext
apt-get install libaio-dev
apt-get install libpixman-1-dev ./configure
make dist
make install 
> 
> 
> 
> On Fri, Feb 7, 2014 at 4:49 PM, Konrad Rzeszutek Wilk < konrad.wilk@oracle.com > wrote: 
> 


> On Fri, Feb 07, 2014 at 04:29:18PM -0500, Mike Neiderhauser wrote: 
> > I did not use the patch. I was assuming it was already patched given 
> > previous email. Is the patch for qemu source or xen source? 
> 
> It is for QEMU, but you are right - it should have been part 
> of QEMU if you got the latest version of Xen-unstable. 
> 
> You didn't use some specific tag but just 'staging' ? 
> 
> 
> 
> > 
> > 
> > On Fri, Feb 7, 2014 at 4:01 PM, Konrad Rzeszutek Wilk < 
> > konrad.wilk@oracle.com > wrote: 
> > 
> > > On Fri, Feb 07, 2014 at 03:45:19PM -0500, Mike Neiderhauser wrote: 
> > > > Ok. I started ran the initscripts and now xl works. 
> > > > 
> > > > However, I still see the same behavior as before: 
> > > > 
> > > 
> > > Did you use the patch that was mentioned in the URL? 
> > > 
> > > > root@fiat:~# xl create /etc/xen/ubuntu-hvm-0.cfg 
> > > > Parsing config from /etc/xen/ubuntu-hvm-0.cfg 
> > > > libxl: error: libxl_qmp.c:448:qmp_next: Socket read error: Connection 
> > > reset 
> > > > by peer 
> > > > libxl: error: libxl_qmp.c:691:libxl__qmp_initialize: Connection error: 
> > > > Connection refused 
> > > > libxl: error: libxl_qmp.c:691:libxl__qmp_initialize: Connection error: 
> > > > Connection refused 
> > > > libxl: error: libxl_qmp.c:691:libxl__qmp_initialize: Connection error: 
> > > > Connection refused 
> > > > root@fiat:~# xl list 
> > > > Name ID Mem VCPUs State Time(s) 
> > > > Domain-0 0 1024 1 r----- 
> > > > 15.2 
> > > > ubuntu-hvm-0 1 1025 1 ------ 
> > > > 0.0 
> > > > 
> > > > (XEN) Dom0 kernel: 64-bit, PAE, lsb, paddr 0x1000000 -> 0x23f3000 
> > > > (XEN) PHYSICAL MEMORY ARRANGEMENT: 
> > > > (XEN) Dom0 alloc.: 0000000134000000->0000000138000000 (233690 pages to 
> > > > be allocated) 
> > > > (XEN) Init. ramdisk: 000000013d0da000->000000013ffffe00 
> > > > (XEN) VIRTUAL MEMORY ARRANGEMENT: 
> > > > (XEN) Loaded kernel: ffffffff81000000->ffffffff823f3000 
> > > > (XEN) Init. ramdisk: ffffffff823f3000->ffffffff85318e00 
> > > > (XEN) Phys-Mach map: ffffffff85319000->ffffffff85519000 
> > > > (XEN) Start info: ffffffff85519000->ffffffff855194b4 
> > > > (XEN) Page tables: ffffffff8551a000->ffffffff85549000 
> > > > (XEN) Boot stack: ffffffff85549000->ffffffff8554a000 
> > > > (XEN) TOTAL: ffffffff80000000->ffffffff85800000 
> > > > (XEN) ENTRY ADDRESS: ffffffff81d261e0 
> > > > (XEN) Dom0 has maximum 1 VCPUs 
> > > > (XEN) elf_load_binary: phdr 0 at 0xffffffff81000000 -> 0xffffffff81b2f000 
> > > > (XEN) elf_load_binary: phdr 1 at 0xffffffff81c00000 -> 0xffffffff81d0f0f0 
> > > > (XEN) elf_load_binary: phdr 2 at 0xffffffff81d10000 -> 0xffffffff81d252c0 
> > > > (XEN) elf_load_binary: phdr 3 at 0xffffffff81d26000 -> 0xffffffff81e6d000 
> > > > (XEN) Scrubbing Free RAM: .............................done. 
> > > > (XEN) Initial low memory virq threshold set at 0x4000 pages. 
> > > > (XEN) Std. Loglevel: All 
> > > > (XEN) Guest Loglevel: All 
> > > > (XEN) Xen is relinquishing VGA console. 
> > > > (XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input 
> > > > to Xen) 
> > > > (XEN) Freed 260kB init memory. 
> > > > (XEN) PCI add device 0000:00:00.0 
> > > > (XEN) PCI add device 0000:00:01.0 
> > > > (XEN) PCI add device 0000:00:1a.0 
> > > > (XEN) PCI add device 0000:00:1c.0 
> > > > (XEN) PCI add device 0000:00:1d.0 
> > > > (XEN) PCI add device 0000:00:1e.0 
> > > > (XEN) PCI add device 0000:00:1f.0 
> > > > (XEN) PCI add device 0000:00:1f.2 
> > > > (XEN) PCI add device 0000:00:1f.3 
> > > > (XEN) PCI add device 0000:01:00.0 
> > > > (XEN) PCI add device 0000:02:02.0 
> > > > (XEN) PCI add device 0000:02:04.0 
> > > > (XEN) PCI add device 0000:03:00.0 
> > > > (XEN) PCI add device 0000:03:00.1 
> > > > (XEN) PCI add device 0000:04:00.0 
> > > > (XEN) PCI add device 0000:04:00.1 
> > > > (XEN) PCI add device 0000:05:00.0 
> > > > (XEN) PCI add device 0000:05:00.1 
> > > > (XEN) PCI add device 0000:06:03.0 
> > > > (XEN) page_alloc.c:1460:d0 Over-allocation for domain 1: 262401 > 262400 
> > > > (XEN) memory.c:158:d0 Could not allocate order=0 extent: id=1 memflags=0 
> > > > (200 of 1024) 
> > > > (d1) HVM Loader 
> > > > (d1) Detected Xen v4.4-rc2 
> > > > (d1) Xenbus rings @0xfeffc000, event channel 4 
> > > > (d1) System requested SeaBIOS 
> > > > (d1) CPU speed is 3093 MHz 
> > > > (d1) Relocating guest memory for lowmem MMIO space disabled 
> > > > 
> > > > 
> > > > Excerpt from /var/log/xen/* 
> > > > qemu: hardware error: xen: failed to populate ram at 40050000 
> > > > 
> > > > 
> > > > On Fri, Feb 7, 2014 at 3:39 PM, Konrad Rzeszutek Wilk < 
> > > > konrad.wilk@oracle.com > wrote: 
> > > > 
> > > > > On Fri, Feb 07, 2014 at 03:36:49PM -0500, Mike Neiderhauser wrote: 
> > > > > > I was able to compile and install xen4.4 RC3 on my host, however I am 
> > > > > > getting the error: 
> > > > > > 
> > > > > > root@fiat:~/git/xen# xl list 
> > > > > > xc: error: Could not obtain handle on privileged command interface 
> > > (2 = 
> > > > > No 
> > > > > > such file or directory): Internal error 
> > > > > > libxl: error: libxl.c:92:libxl_ctx_alloc: cannot open libxc handle: 
> > > No 
> > > > > such 
> > > > > > file or directory 
> > > > > > cannot init xl context 
> > > > > > 
> > > > > > I've google searched for this and an article appears, but is not the 
> > > same 
> > > > > > (as far as I can tell). Running any xl command generates a similar 
> > > > > error. 
> > > > > > 
> > > > > > What can I do to fix this? 
> > > > > 
> > > > > 
> > > > > You need to run the initscripts for Xen. I don't know what your distro 
> > > is, 
> > > > > but 
> > > > > they are usually put in /etc/init.d/rc.d/xen* 
> > > > > 
> > > > > 
> > > > > > 
> > > > > > Regards 
> > > > > > 
> > > > > > 
> > > > > > On Fri, Feb 7, 2014 at 1:40 PM, Mike Neiderhauser < 
> > > > > > mikeneiderhauser@gmail.com > wrote: 
> > > > > > 
> > > > > > > Much. Do I need to install from src or is there a package I can 
> > > > > install. 
> > > > > > > 
> > > > > > > Regards 
> > > > > > > 
> > > > > > > 
> > > > > > > On Fri, Feb 7, 2014 at 1:30 PM, Konrad Rzeszutek Wilk < 
> > > > > > > konrad.wilk@oracle.com > wrote: 
> > > > > > > 
> > > > > > >> On Fri, Feb 07, 2014 at 10:53:22AM -0500, Mike Neiderhauser wrote: 
> > > > > > >> > I did not. I do not have the toolchain installed. I may have 
> > > time 
> > > > > > >> later 
> > > > > > >> > today to try the patch. Are there any specific instructions on 
> > > how 
> > > > > to 
> > > > > > >> > patch the src, compile and install? 
> > > > > > >> 
> > > > > > >> There actually should be a new version of Xen 4.4-rcX which will 
> > > have 
> > > > > the 
> > > > > > >> fix. That might be easier for you? 
> > > > > > >> > 
> > > > > > >> > Regards 
> > > > > > >> > 
> > > > > > >> > 
> > > > > > >> > On Fri, Feb 7, 2014 at 10:25 AM, Konrad Rzeszutek Wilk < 
> > > > > > >> > konrad.wilk@oracle.com > wrote: 
> > > > > > >> > 
> > > > > > >> > > On Thu, Feb 06, 2014 at 09:39:37AM -0500, Mike Neiderhauser 
> > > wrote: 
> > > > > > >> > > > Hi all, 
> > > > > > >> > > > 
> > > > > > >> > > > I am attempting to do a pci passthrough of an Intel ET card 
> > > > > (4x1G 
> > > > > > >> NIC) 
> > > > > > >> > > to a 
> > > > > > >> > > > HVM. I have been attempting to resolve this issue on the 
> > > > > xen-users 
> > > > > > >> list, 
> > > > > > >> > > > but it was advised to post this issue to this list. (Initial 
> > > > > > >> Message - 
> > > > > > >> > > > 
> > > > > > >> > > 
> > > > > > >> 
> > > > > 
> > > http://lists.xenproject.org/archives/html/xen-users/2014-02/msg00036.html 
> > > > > > >> ) 
> > > > > > >> > > > 
> > > > > > >> > > > The machine I am using as host is a Dell Poweredge server 
> > > with a 
> > > > > > >> Xeon 
> > > > > > >> > > > E31220 with 4GB of ram. 
> > > > > > >> > > > 
> > > > > > >> > > > The possible bug is the following: 
> > > > > > >> > > > root@fiat:/var/log/xen# cat qemu-dm-ubuntu-hvm-0.log 
> > > > > > >> > > > char device redirected to /dev/pts/5 (label serial0) 
> > > > > > >> > > > qemu: hardware error: xen: failed to populate ram at 
> > > 40030000 
> > > > > > >> > > > .... 
> > > > > > >> > > > 
> > > > > > >> > > > I believe it may be similar to this thread 
> > > > > > >> > > > 
> > > > > > >> > > 
> > > > > > >> 
> > > > > 
> > > http://markmail.org/message/3zuiojywempoorxj#query:+page:1+mid:gul34vbe4uyog2d4+state:results 
> > > > > > >> > > > 
> > > > > > >> > > > 
> > > > > > >> > > > Additional info that may be helpful is below. 
> > > > > > >> > > 
> > > > > > >> > > Did you try the patch? 
> > > > > > >> > > > 
> > > > > > >> > > > Please let me know if you need any additional information. 
> > > > > > >> > > > 
> > > > > > >> > > > Thanks in advance for any help provided! 
> > > > > > >> > > > Regards 
> > > > > > >> > > > 
> > > > > > >> > > > ########################################################### 
> > > > > > >> > > > root@fiat:~# cat /etc/xen/ubuntu-hvm-0.cfg 
> > > > > > >> > > > ########################################################### 
> > > > > > >> > > > # Configuration file for Xen HVM 
> > > > > > >> > > > 
> > > > > > >> > > > # HVM Name (as appears in 'xl list') 
> > > > > > >> > > > name="ubuntu-hvm-0" 
> > > > > > >> > > > # HVM Build settings (+ hardware) 
> > > > > > >> > > > #kernel = "/usr/lib/xen-4.3/boot/hvmloader" 
> > > > > > >> > > > builder='hvm' 
> > > > > > >> > > > device_model='qemu-dm' 
> > > > > > >> > > > memory=1024 
> > > > > > >> > > > vcpus=2 
> > > > > > >> > > > 
> > > > > > >> > > > # Virtual Interface 
> > > > > > >> > > > # Network bridge to USB NIC 
> > > > > > >> > > > vif=['bridge=xenbr0'] 
> > > > > > >> > > > 
> > > > > > >> > > > ################### PCI PASSTHROUGH ################### 
> > > > > > >> > > > # PCI Permissive mode toggle 
> > > > > > >> > > > #pci_permissive=1 
> > > > > > >> > > > 
> > > > > > >> > > > # All PCI Devices 
> > > > > > >> > > > #pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1', '05:00.0', 
> > > > > > >> '05:00.1'] 
> > > > > > >> > > > 
> > > > > > >> > > > # First two ports on Intel 4x1G NIC 
> > > > > > >> > > > #pci=['03:00.0','03:00.1'] 
> > > > > > >> > > > 
> > > > > > >> > > > # Last two ports on Intel 4x1G NIC 
> > > > > > >> > > > #pci=['04:00.0', '04:00.1'] 
> > > > > > >> > > > 
> > > > > > >> > > > # All ports on Intel 4x1G NIC 
> > > > > > >> > > > pci=['03:00.0', '03:00.1', '04:00.0', '04:00.1'] 
> > > > > > >> > > > 
> > > > > > >> > > > # Brodcom 2x1G NIC 
> > > > > > >> > > > #pci=['05:00.0', '05:00.1'] 
> > > > > > >> > > > ################### PCI PASSTHROUGH ################### 
> > > > > > >> > > > 
> > > > > > >> > > > # HVM Disks 
> > > > > > >> > > > # Hard disk only 
> > > > > > >> > > > # Boot from HDD first ('c') 
> > > > > > >> > > > boot="c" 
> > > > > > >> > > > disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w'] 
> > > > > > >> > > > 
> > > > > > >> > > > # Hard disk with ISO 
> > > > > > >> > > > # Boot from ISO first ('d') 
> > > > > > >> > > > #boot="d" 
> > > > > > >> > > > #disk=['phy:/dev/ubuntu-vg/ubuntu-hvm-0,hda,w', 
> > > > > > >> > > > 'file:/root/ubuntu-12.04.3-server-amd64.iso,hdc:cdrom,r'] 
> > > > > > >> > > > 
> > > > > > >> > > > # ACPI Enable 
> > > > > > >> > > > acpi=1 
> > > > > > >> > > > # HVM Event Modes 
> > > > > > >> > > > on_poweroff='destroy' 
> > > > > > >> > > > on_reboot='restart' 
> > > > > > >> > > > on_crash='restart' 
> > > > > > >> > > > 
> > > > > > >> > > > # Serial Console Configuration (Xen Console) 
> > > > > > >> > > > sdl=0 
> > > > > > >> > > > serial='pty' 
> > > > > > >> > > > 
> > > > > > >> > > > # VNC Configuration 
> > > > > > >> > > > # Only reacable from localhost 
> > > > > > >> > > > vnc=1 
> > > > > > >> > > > vnclisten="0.0.0.0" 
> > > > > > >> > > > vncpasswd="" 
> > > > > > >> > > > 
> > > > > > >> > > > ########################################################### 
> > > > > > >> > > > Copied for xen-users list 
> > > > > > >> > > > ########################################################### 
> > > > > > >> > > > 
> > > > > > >> > > > It appears that it cannot obtain the RAM mapping for this 
> > > PCI 
> > > > > > >> device. 
> > > > > > >> > > > 
> > > > > > >> > > > 
> > > > > > >> > > > I rebooted the Host. I ran assigned pci devices to 
> > > pciback. The 
> > > > > > >> output 
> > > > > > >> > > > looks like: 
> > > > > > >> > > > root@fiat:~# ./dev_mgmt.sh 
> > > > > > >> > > > Loading Kernel Module 'xen-pciback' 
> > > > > > >> > > > Calling function pciback_dev for: 
> > > > > > >> > > > PCI DEVICE 0000:03:00.0 
> > > > > > >> > > > Unbinding 0000:03:00.0 from igb 
> > > > > > >> > > > Binding 0000:03:00.0 to pciback 
> > > > > > >> > > > 
> > > > > > >> > > > PCI DEVICE 0000:03:00.1 
> > > > > > >> > > > Unbinding 0000:03:00.1 from igb 
> > > > > > >> > > > Binding 0000:03:00.1 to pciback 
> > > > > > >> > > > 
> > > > > > >> > > > PCI DEVICE 0000:04:00.0 
> > > > > > >> > > > Unbinding 0000:04:00.0 from igb 
> > > > > > >> > > > Binding 0000:04:00.0 to pciback 
> > > > > > >> > > > 
> > > > > > >> > > > PCI DEVICE 0000:04:00.1 
> > > > > > >> > > > Unbinding 0000:04:00.1 from igb 
> > > > > > >> > > > Binding 0000:04:00.1 to pciback 
> > > > > > >> > > > 
> > > > > > >> > > > PCI DEVICE 0000:05:00.0 
> > > > > > >> > > > Unbinding 0000:05:00.0 from bnx2 
> > > > > > >> > > > Binding 0000:05:00.0 to pciback 
> > > > > > >> > > > 
> > > > > > >> > > > PCI DEVICE 0000:05:00.1 
> > > > > > >> > > > Unbinding 0000:05:00.1 from bnx2 
> > > > > > >> > > > Binding 0000:05:00.1 to pciback 
> > > > > > >> > > > 
> > > > > > >> > > > Listing PCI Devices Available to Xen 
> > > > > > >> > > > 0000:03:00.0 
> > > > > > >> > > > 0000:03:00.1 
> > > > > > >> > > > 0000:04:00.0 
> > > > > > >> > > > 0000:04:00.1 
> > > > > > >> > > > 0000:05:00.0 
> > > > > > >> > > > 0000:05:00.1 
> > > > > > >> > > > 
> > > > > > >> > > > ########################################################### 
> > > > > > >> > > > root@fiat:~# xl -vvv create /etc/xen/ubuntu-hvm-0.cfg 
> > > > > > >> > > > Parsing config from /etc/xen/ubuntu-hvm-0.cfg 
> > > > > > >> > > > WARNING: ignoring device_model directive. 
> > > > > > >> > > > WARNING: Use "device_model_override" instead if you really 
> > > want 
> > > > > a 
> > > > > > >> > > > non-default device_model 
> > > > > > >> > > > libxl: debug: libxl_create.c:1230:do_domain_create: ao 
> > > > > 0x210c360: 
> > > > > > >> create: 
> > > > > > >> > > > how=(nil) callback=(nil) poller=0x210c3c0 
> > > > > > >> > > > libxl: debug: 
> > > libxl_device.c:257:libxl__device_disk_set_backend: 
> > > > > > >> Disk 
> > > > > > >> > > > vdev=hda spec.backend=unknown 
> > > > > > >> > > > libxl: debug: 
> > > libxl_device.c:296:libxl__device_disk_set_backend: 
> > > > > > >> Disk 
> > > > > > >> > > > vdev=hda, using backend phy 
> > > > > > >> > > > libxl: debug: libxl_create.c:675:initiate_domain_create: 
> > > running 
> > > > > > >> > > bootloader 
> > > > > > >> > > > libxl: debug: libxl_bootloader.c:321:libxl__bootloader_run: 
> > > not 
> > > > > a PV 
> > > > > > >> > > > domain, skipping bootloader 
> > > > > > >> > > > libxl: debug: 
> > > libxl_event.c:608:libxl__ev_xswatch_deregister: 
> > > > > watch 
> > > > > > >> > > > w=0x210c728: deregister unregistered 
> > > > > > >> > > > libxl: debug: libxl_numa.c:475:libxl__get_numa_candidate: 
> > > New 
> > > > > best 
> > > > > > >> NUMA 
> > > > > > >> > > > placement candidate found: nr_nodes=1, nr_cpus=4, 
> > > nr_vcpus=3, 
> > > > > > >> > > > free_memkb=2980 
> > > > > > >> > > > libxl: detail: libxl_dom.c:195:numa_place_domain: NUMA 
> > > placement 
> > > > > > >> > > candidate 
> > > > > > >> > > > with 1 nodes, 4 cpus and 2980 KB free selected 
> > > > > > >> > > > xc: detail: elf_parse_binary: phdr: paddr=0x100000 
> > > memsz=0xa69a4 
> > > > > > >> > > > xc: detail: elf_parse_binary: memory: 0x100000 -> 0x1a69a4 
> > > > > > >> > > > xc: info: VIRTUAL MEMORY ARRANGEMENT: 
> > > > > > >> > > > Loader: 0000000000100000->00000000001a69a4 
> > > > > > >> > > > Modules: 0000000000000000->0000000000000000 
> > > > > > >> > > > TOTAL: 0000000000000000->000000003f800000 
> > > > > > >> > > > ENTRY ADDRESS: 0000000000100608 
> > > > > > >> > > > xc: info: PHYSICAL MEMORY ALLOCATION: 
> > > > > > >> > > > 4KB PAGES: 0x0000000000000200 
> > > > > > >> > > > 2MB PAGES: 0x00000000000001fb 
> > > > > > >> > > > 1GB PAGES: 0x0000000000000000 
> > > > > > >> > > > xc: detail: elf_load_binary: phdr 0 at 0x7f022c779000 -> 
> > > > > > >> 0x7f022c81682d 
> > > > > > >> > > > libxl: debug: 
> > > libxl_device.c:257:libxl__device_disk_set_backend: 
> > > > > > >> Disk 
> > > > > > >> > > > vdev=hda spec.backend=phy 
> > > > > > >> > > > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: 
> > > > > watch 
> > > > > > >> > > > w=0x2112f48 wpath=/local/domain/0/backend/vbd/2/768/state 
> > > > > token=3/0: 
> > > > > > >> > > > register slotnum=3 
> > > > > > >> > > > libxl: debug: libxl_create.c:1243:do_domain_create: ao 
> > > > > 0x210c360: 
> > > > > > >> > > > inprogress: poller=0x210c3c0, flags=i 
> > > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch 
> > > > > w=0x2112f48 
> > > > > > >> > > > wpath=/local/domain/0/backend/vbd/2/768/state token=3/0: 
> > > event 
> > > > > > >> > > > epath=/local/domain/0/backend/vbd/2/768/state 
> > > > > > >> > > > libxl: debug: libxl_event.c:647:devstate_watch_callback: 
> > > backend 
> > > > > > >> > > > /local/domain/0/backend/vbd/2/768/state wanted state 2 still 
> > > > > waiting 
> > > > > > >> > > state 1 
> > > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch 
> > > > > w=0x2112f48 
> > > > > > >> > > > wpath=/local/domain/0/backend/vbd/2/768/state token=3/0: 
> > > event 
> > > > > > >> > > > epath=/local/domain/0/backend/vbd/2/768/state 
> > > > > > >> > > > libxl: debug: libxl_event.c:643:devstate_watch_callback: 
> > > backend 
> > > > > > >> > > > /local/domain/0/backend/vbd/2/768/state wanted state 2 ok 
> > > > > > >> > > > libxl: debug: 
> > > libxl_event.c:596:libxl__ev_xswatch_deregister: 
> > > > > watch 
> > > > > > >> > > > w=0x2112f48 wpath=/local/domain/0/backend/vbd/2/768/state 
> > > > > token=3/0: 
> > > > > > >> > > > deregister slotnum=3 
> > > > > > >> > > > libxl: debug: 
> > > libxl_event.c:608:libxl__ev_xswatch_deregister: 
> > > > > watch 
> > > > > > >> > > > w=0x2112f48: deregister unregistered 
> > > > > > >> > > > libxl: debug: libxl_device.c:959:device_hotplug: calling 
> > > hotplug 
> > > > > > >> script: 
> > > > > > >> > > > /etc/xen/scripts/block add 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1206:libxl__spawn_local_dm: 
> > > Spawning 
> > > > > > >> > > device-model 
> > > > > > >> > > > /usr/bin/qemu-system-i386 with arguments: 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: 
> > > > > > >> > > > /usr/bin/qemu-system-i386 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: 
> > > > > -xen-domid 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: 2 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: 
> > > -chardev 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: 
> > > > > > >> > > > 
> > > socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-2,server,nowait 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: -mon 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: 
> > > > > > >> > > > chardev=libxl-cmd,mode=control 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: -name 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: 
> > > > > ubuntu-hvm-0 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: -vnc 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: 
> > > > > 0.0.0.0:0 
> > > > > > >> ,to=99 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: 
> > > -global 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: 
> > > > > > >> isa-fdc.driveA= 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: 
> > > -serial 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: pty 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: -vga 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: 
> > > cirrus 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: 
> > > -global 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: 
> > > > > > >> vga.vram_size_mb=8 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: -boot 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: 
> > > order=c 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: -smp 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: 
> > > > > 2,maxcpus=2 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: 
> > > -device 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: 
> > > > > > >> > > > rtl8139,id=nic0,netdev=net0,mac=00:16:3e:23:44:2c 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: 
> > > -netdev 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: 
> > > > > > >> > > > type=tap,id=net0,ifname=vif2.0-emu,script=no,downscript=no 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: -M 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: xenfv 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: -m 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: 1016 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: 
> > > -drive 
> > > > > > >> > > > libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm: 
> > > > > > >> > > > 
> > > > > > >> > > 
> > > > > > >> 
> > > > > 
> > > file=/dev/ubuntu-vg/ubuntu-hvm-0,if=ide,index=0,media=disk,format=raw,cache=writeback 
> > > > > > >> > > > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: 
> > > > > watch 
> > > > > > >> > > > w=0x210c960 wpath=/local/domain/0/device-model/2/state 
> > > > > token=3/1: 
> > > > > > >> > > register 
> > > > > > >> > > > slotnum=3 
> > > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch 
> > > > > w=0x210c960 
> > > > > > >> > > > wpath=/local/domain/0/device-model/2/state token=3/1: event 
> > > > > > >> > > > epath=/local/domain/0/device-model/2/state 
> > > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch 
> > > > > w=0x210c960 
> > > > > > >> > > > wpath=/local/domain/0/device-model/2/state token=3/1: event 
> > > > > > >> > > > epath=/local/domain/0/device-model/2/state 
> > > > > > >> > > > libxl: debug: 
> > > libxl_event.c:596:libxl__ev_xswatch_deregister: 
> > > > > watch 
> > > > > > >> > > > w=0x210c960 wpath=/local/domain/0/device-model/2/state 
> > > > > token=3/1: 
> > > > > > >> > > > deregister slotnum=3 
> > > > > > >> > > > libxl: debug: 
> > > libxl_event.c:608:libxl__ev_xswatch_deregister: 
> > > > > watch 
> > > > > > >> > > > w=0x210c960: deregister unregistered 
> > > > > > >> > > > libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize: 
> > > connected 
> > > > > to 
> > > > > > >> > > > /var/run/xen/qmp-libxl-2 
> > > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message 
> > > > > type: qmp 
> > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp 
> > > > > command: '{ 
> > > > > > >> > > > "execute": "qmp_capabilities", 
> > > > > > >> > > > "id": 1 
> > > > > > >> > > > } 
> > > > > > >> > > > ' 
> > > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message 
> > > type: 
> > > > > > >> return 
> > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp 
> > > > > command: '{ 
> > > > > > >> > > > "execute": "query-chardev", 
> > > > > > >> > > > "id": 2 
> > > > > > >> > > > } 
> > > > > > >> > > > ' 
> > > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message 
> > > type: 
> > > > > > >> return 
> > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp 
> > > > > command: '{ 
> > > > > > >> > > > "execute": "change", 
> > > > > > >> > > > "id": 3, 
> > > > > > >> > > > "arguments": { 
> > > > > > >> > > > "device": "vnc", 
> > > > > > >> > > > "target": "password", 
> > > > > > >> > > > "arg": "" 
> > > > > > >> > > > } 
> > > > > > >> > > > } 
> > > > > > >> > > > ' 
> > > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message 
> > > type: 
> > > > > > >> return 
> > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp 
> > > > > command: '{ 
> > > > > > >> > > > "execute": "query-vnc", 
> > > > > > >> > > > "id": 4 
> > > > > > >> > > > } 
> > > > > > >> > > > ' 
> > > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message 
> > > type: 
> > > > > > >> return 
> > > > > > >> > > > libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: 
> > > > > watch 
> > > > > > >> > > > w=0x210e8a8 wpath=/local/domain/0/backend/vif/2/0/state 
> > > > > token=3/2: 
> > > > > > >> > > register 
> > > > > > >> > > > slotnum=3 
> > > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch 
> > > > > w=0x210e8a8 
> > > > > > >> > > > wpath=/local/domain/0/backend/vif/2/0/state token=3/2: event 
> > > > > > >> > > > epath=/local/domain/0/backend/vif/2/0/state 
> > > > > > >> > > > libxl: debug: libxl_event.c:647:devstate_watch_callback: 
> > > backend 
> > > > > > >> > > > /local/domain/0/backend/vif/2/0/state wanted state 2 still 
> > > > > waiting 
> > > > > > >> state 
> > > > > > >> > > 1 
> > > > > > >> > > > libxl: debug: libxl_event.c:503:watchfd_callback: watch 
> > > > > w=0x210e8a8 
> > > > > > >> > > > wpath=/local/domain/0/backend/vif/2/0/state token=3/2: event 
> > > > > > >> > > > epath=/local/domain/0/backend/vif/2/0/state 
> > > > > > >> > > > libxl: debug: libxl_event.c:643:devstate_watch_callback: 
> > > backend 
> > > > > > >> > > > /local/domain/0/backend/vif/2/0/state wanted state 2 ok 
> > > > > > >> > > > libxl: debug: 
> > > libxl_event.c:596:libxl__ev_xswatch_deregister: 
> > > > > watch 
> > > > > > >> > > > w=0x210e8a8 wpath=/local/domain/0/backend/vif/2/0/state 
> > > > > token=3/2: 
> > > > > > >> > > > deregister slotnum=3 
> > > > > > >> > > > libxl: debug: 
> > > libxl_event.c:608:libxl__ev_xswatch_deregister: 
> > > > > watch 
> > > > > > >> > > > w=0x210e8a8: deregister unregistered 
> > > > > > >> > > > libxl: debug: libxl_device.c:959:device_hotplug: calling 
> > > hotplug 
> > > > > > >> script: 
> > > > > > >> > > > /etc/xen/scripts/vif-bridge online 
> > > > > > >> > > > libxl: debug: libxl_device.c:959:device_hotplug: calling 
> > > hotplug 
> > > > > > >> script: 
> > > > > > >> > > > /etc/xen/scripts/vif-bridge add 
> > > > > > >> > > > libxl: debug: libxl_qmp.c:707:libxl__qmp_initialize: 
> > > connected 
> > > > > to 
> > > > > > >> > > > /var/run/xen/qmp-libxl-2 
> > > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message 
> > > > > type: qmp 
> > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp 
> > > > > command: '{ 
> > > > > > >> > > > "execute": "qmp_capabilities", 
> > > > > > >> > > > "id": 1 
> > > > > > >> > > > } 
> > > > > > >> > > > ' 
> > > > > > >> > > > libxl: debug: libxl_qmp.c:299:qmp_handle_response: message 
> > > type: 
> > > > > > >> return 
> > > > > > >> > > > libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp 
> > > > > command: '{ 
> > > > > > >> > > > "execute": "device_add", 
> > > > > > >> > > > "id": 2, 
> > > > > > >> > > > "arguments": { 
> > > > > > >> > > > "driver": "xen-pci-passthrough", 
> > > > > > >> > > > "id": "pci-pt-03_00.0", 
> > > > > > >> > > > "hostaddr": "0000:03:00.0" 
> > > > > > >> > > > } 
> > > > > > >> > > > } 
> > > > > > >> > > > ' 
> > > > > > >> > > > libxl: error: libxl_qmp.c:454:qmp_next: Socket read error: 
> > > > > > >> Connection 
> > > > > > >> > > reset 
> > > > > > >> > > > by peer 
> > > > > > >> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: 
> > > Connection 
> > > > > > >> error: 
> > > > > > >> > > > Connection refused 
> > > > > > >> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: 
> > > Connection 
> > > > > > >> error: 
> > > > > > >> > > > Connection refused 
> > > > > > >> > > > libxl: error: libxl_qmp.c:702:libxl__qmp_initialize: 
> > > Connection 
> > > > > > >> error: 
> > > > > > >> > > > Connection refused 
> > > > > > >> > > > libxl: debug: libxl_pci.c:81:libxl__create_pci_backend: 
> > > > > Creating pci 
> > > > > > >> > > backend 
> > > > > > >> > > > libxl: debug: libxl_event.c:1737:libxl__ao_progress_report: 
> > > ao 
> > > > > > >> 0x210c360: 
> > > > > > >> > > > progress report: ignored 
> > > > > > >> > > > libxl: debug: libxl_event.c:1569:libxl__ao_complete: ao 
> > > > > 0x210c360: 
> > > > > > >> > > > complete, rc=0 
> > > > > > >> > > > libxl: debug: libxl_event.c:1541:libxl__ao__destroy: ao 
> > > > > 0x210c360: 
> > > > > > >> > > destroy 
> > > > > > >> > > > Daemon running with PID 3214 
> > > > > > >> > > > xc: debug: hypercall buffer: total allocations:793 total 
> > > > > > >> releases:793 
> > > > > > >> > > > xc: debug: hypercall buffer: current allocations:0 maximum 
> > > > > > >> allocations:4 
> > > > > > >> > > > xc: debug: hypercall buffer: cache current size:4 
> > > > > > >> > > > xc: debug: hypercall buffer: cache hits:785 misses:4 
> > > toobig:4 
> > > > > > >> > > > 
> > > > > > >> > > > ########################################################### 
> > > > > > >> > > > root@fiat:/var/log/xen# cat qemu-dm-ubuntu-hvm-0.log 
> > > > > > >> > > > char device redirected to /dev/pts/5 (label serial0) 
> > > > > > >> > > > qemu: hardware error: xen: failed to populate ram at 
> > > 40030000 
> > > > > > >> > > > CPU #0: 
> > > > > > >> > > > EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633 
> > > > > > >> > > > ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000 
> > > > > > >> > > > EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 
> > > HLT=1 
> > > > > > >> > > > ES =0000 00000000 0000ffff 00009300 
> > > > > > >> > > > CS =f000 ffff0000 0000ffff 00009b00 
> > > > > > >> > > > SS =0000 00000000 0000ffff 00009300 
> > > > > > >> > > > DS =0000 00000000 0000ffff 00009300 
> > > > > > >> > > > FS =0000 00000000 0000ffff 00009300 
> > > > > > >> > > > GS =0000 00000000 0000ffff 00009300 
> > > > > > >> > > > LDT=0000 00000000 0000ffff 00008200 
> > > > > > >> > > > TR =0000 00000000 0000ffff 00008b00 
> > > > > > >> > > > GDT= 00000000 0000ffff 
> > > > > > >> > > > IDT= 00000000 0000ffff 
> > > > > > >> > > > CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000 
> > > > > > >> > > > DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000 
> > > > > > >> > > > DR6=ffff0ff0 DR7=00000400 
> > > > > > >> > > > EFER=0000000000000000 
> > > > > > >> > > > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80 
> > > > > > >> > > > FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 
> > > > > > >> > > > FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 
> > > > > > >> > > > FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 
> > > > > > >> > > > FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 
> > > > > > >> > > > XMM00=00000000000000000000000000000000 
> > > > > > >> > > > XMM01=00000000000000000000000000000000 
> > > > > > >> > > > XMM02=00000000000000000000000000000000 
> > > > > > >> > > > XMM03=00000000000000000000000000000000 
> > > > > > >> > > > XMM04=00000000000000000000000000000000 
> > > > > > >> > > > XMM05=00000000000000000000000000000000 
> > > > > > >> > > > XMM06=00000000000000000000000000000000 
> > > > > > >> > > > XMM07=00000000000000000000000000000000 
> > > > > > >> > > > CPU #1: 
> > > > > > >> > > > EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000633 
> > > > > > >> > > > ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000 
> > > > > > >> > > > EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 
> > > HLT=1 
> > > > > > >> > > > ES =0000 00000000 0000ffff 00009300 
> > > > > > >> > > > CS =f000 ffff0000 0000ffff 00009b00 
> > > > > > >> > > > SS =0000 00000000 0000ffff 00009300 
> > > > > > >> > > > DS =0000 00000000 0000ffff 00009300 
> > > > > > >> > > > FS =0000 00000000 0000ffff 00009300 
> > > > > > >> > > > GS =0000 00000000 0000ffff 00009300 
> > > > > > >> > > > LDT=0000 00000000 0000ffff 00008200 
> > > > > > >> > > > TR =0000 00000000 0000ffff 00008b00 
> > > > > > >> > > > GDT= 00000000 0000ffff 
> > > > > > >> > > > IDT= 00000000 0000ffff 
> > > > > > >> > > > CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000 
> > > > > > >> > > > DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000 
> > > > > > >> > > > DR6=ffff0ff0 DR7=00000400 
> > > > > > >> > > > EFER=0000000000000000 
> > > > > > >> > > > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80 
> > > > > > >> > > > FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 
> > > > > > >> > > > FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 
> > > > > > >> > > > FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 
> > > > > > >> > > > FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 
> > > > > > >> > > > XMM00=00000000000000000000000000000000 
> > > > > > >> > > > XMM01=00000000000000000000000000000000 
> > > > > > >> > > > XMM02=00000000000000000000000000000000 
> > > > > > >> > > > XMM03=00000000000000000000000000000000 
> > > > > > >> > > > XMM04=00000000000000000000000000000000 
> > > > > > >> > > > XMM05=00000000000000000000000000000000 
> > > > > > >> > > > XMM06=00000000000000000000000000000000 
> > > > > > >> > > > XMM07=00000000000000000000000000000000 
> > > > > > >> > > > 
> > > > > > >> > > > ########################################################### 
> > > > > > >> > > > /etc/default/grub 
> > > > > > >> > > > GRUB_DEFAULT="Xen 4.3-amd64" 
> > > > > > >> > > > GRUB_HIDDEN_TIMEOUT=0 
> > > > > > >> > > > GRUB_HIDDEN_TIMEOUT_QUIET=true 
> > > > > > >> > > > GRUB_TIMEOUT=10 
> > > > > > >> > > > GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo 
> > > Debian` 
> > > > > > >> > > > GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" 
> > > > > > >> > > > GRUB_CMDLINE_LINUX="" 
> > > > > > >> > > > # biosdevname=0 
> > > > > > >> > > > GRUB_CMDLINE_XEN="dom0_mem=1024M dom0_max_vcpus=1" 
> > > > > > >> > > 
> > > > > > >> > > > _______________________________________________ 
> > > > > > >> > > > Xen-devel mailing list 
> > > > > > >> > > > Xen-devel@lists.xen.org 
> > > > > > >> > > > http://lists.xen.org/xen-devel 
> > > > > > >> > > 
> > > > > > >> > > 
> > > > > > >> 
> > > > > > > 
> > > > > > > 
> > > > > 
> > > 
> 
>

[-- Attachment #1.2: Type: text/html, Size: 63444 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2014-02-12 18:34 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-06 14:39 Xen 4.3 PCI passthrough possible bug Mike Neiderhauser
2014-02-07 15:25 ` Konrad Rzeszutek Wilk
2014-02-07 15:53   ` Mike Neiderhauser
2014-02-07 18:30     ` Konrad Rzeszutek Wilk
2014-02-07 18:40       ` Mike Neiderhauser
2014-02-07 20:36         ` Mike Neiderhauser
2014-02-07 20:39           ` Konrad Rzeszutek Wilk
2014-02-07 20:45             ` Mike Neiderhauser
2014-02-07 21:01               ` Konrad Rzeszutek Wilk
2014-02-07 21:29                 ` Mike Neiderhauser
2014-02-07 21:49                   ` Konrad Rzeszutek Wilk
2014-02-08  1:16                     ` Mike Neiderhauser
2014-02-08 15:36 Konrad Wilk
2014-02-08 15:37 ` Mike Neiderhauser
2014-02-08 17:42   ` Mike Neiderhauser
2014-02-08 20:02     ` Pasi Kärkkäinen
2014-02-10 17:11     ` George Dunlap
2014-02-10 18:29       ` Mike Neiderhauser
2014-02-10 18:47         ` Konrad Rzeszutek Wilk
2014-02-11 13:04           ` Mike Neiderhauser
2014-02-12 18:25             ` Konrad Rzeszutek Wilk
2014-02-12 18:34               ` Mike Neiderhauser

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.