WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] FLR Patch for Xen 4.0

On Thu, May 13, 2010 at 03:02:05PM +0800, Bei Guan wrote:
>    Hi, all
>    I am trying to passthrough VGA in Xen4.0. My domU is windowsXP.
>    My graphic card is:
>    01:00.0 VGA compatible controller: ATI Technologies Inc Mobility Radeon HD
>    3450
> 
>    I have assigned graphic card to my domU in hvm config file.
>    pci = [ '01:00.0' ]
>    I also specified gfx_passthru=2
> 

I think nowadays you can only have gfx_passthru=0 or gfx_passthru=1.

See: http://wiki.xensource.com/xenwiki/XenVGAPassthrough

Dunno if that helps with your problem though..

-- Pasi

>    When I create my WindowsXP domU, my computer reboots but no any display on
>    the screen. I cannot switch to any ttys. However, I can press Ctrl+Alt+Del
>    to restart my computer.
> 
>    So I guess that my windows domU maybe start, but because of error on VGA
>    Passthrough I can see it. That is to say, if I change a new graphic card,
>    which supported by xen4.0, I can start my windows DomU correctly.
> 
>    I give my xm info and log (qemu-dm-WinXP_HVMDomain.log, xend.log,
>    xend-debug.log) blew. Can you give me some suggestion on the exact
>    reasons? Is my guess right?
> 
>    Thank you very much.
> 
> 
> 
>    [root@localhost ~]# xm info host
>    host                   : localhost.localdomain
>    release                : 2.6.31.13
>    version                : #3 SMP Fri May 7 09:18:15 CST 2010
>    machine                : x86_64
>    nr_cpus                : 4
>    nr_nodes               : 1
>    cores_per_socket       : 4
>    threads_per_core       : 1
>    cpu_mhz                : 2660
>    hw_caps                :
>    bfebfbff:20100800:00000000:00000940:0408e3fd:00000000:00000001:00000000
>    virt_caps              : hvm hvm_directio
>    total_memory           : 3935
>    free_memory            : 390
>    node_to_cpu            : node0:0-3
>    node_to_memory         : node0:390
>    node_to_dma32_mem      : node0:327
>    max_node_id            : 0
>    xen_major              : 4
>    xen_minor              : 0
>    xen_extra              : .0
>    xen_caps               : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32
>    hvm-3.0-x86_32p hvm-3.0-x86_64
>    xen_scheduler          : credit
>    xen_pagesize           : 4096
>    platform_params        : virt_start=0xffff800000000000
>    xen_changeset          : unavailable
>    xen_commandline        : iommu=1
>    cc_compiler            : gcc °æ±Ÿ 4.4.1 20090725 (Red Hat 4.4.1-2) (GCC)
>    cc_compile_by          : root
>    cc_compile_domain      :
>    cc_compile_date        : Tue May  4 18:22:21 CST 2010
>    xend_config_format     : 4
> 
>    ##############################
>    #qemu-dm-WinXP_HVMDomain.log
>    ##############################
>    [root@localhost xen]# cat qemu-dm-WinXP_HVMDomain.log
>    domid: 1
>    config qemu network with xen bridge for  tap1.0 virbr0
>    Watching /local/domain/0/device-model/1/logdirty/cmd
>    Watching /local/domain/0/device-model/1/command
>    xs_read(): fail to get num_devs. /local/domain/0/backend/pci/1/0/num_devs.
>    char device redirected to /dev/pts/2
>    qemu_map_cache_init nr_buckets = 10000 size 4194304
>    shared page at pfn feffd
>    buffered io page at pfn feffb
>    Guest uuid = c2cae68c-75ee-8f53-7f96-2fcfcff98574
>    Time offset set 0
>    Register xen platform.
>    Done register platform.
>    platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw
>    state.
>    xs_read(/local/domain/0/device-model/1/xen_extended_power_mgmt): read
>    error
>    xs_read(): vncpasswd get error.
>    /vm/c2cae68c-75ee-8f53-7f96-2fcfcff98574/vncpasswd.
>    Log-dirty: no command yet.
>    I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
>    xs_read(/local/domain/1/log-throttling): read error
>    qemu: ignoring not-understood drive `/local/domain/1/log-throttling'
>    medium change watch on `/local/domain/1/log-throttling' - unknown device,
>    ignored
>    dm-command: hot insert pass-through pci dev
>    register_real_device: Assigning real physical device 01:00.0 ...
>    register_real_device: Enable MSI translation via per device option
>    register_real_device: Disable power management
>    pt_iomul_init: Error: pt_iomul_init can't open file /dev/xen/pci_iomul: No
>    such file or directory: 0x1:0x0.0x0
>    pt_register_regions: IO region registered (size=0x10000000
>    base_addr=0xd000000c)
>    pt_register_regions: IO region registered (size=0x00010000
>    base_addr=0xfe9f0004)
>    pt_register_regions: IO region registered (size=0x00000100
>    base_addr=0x0000dc01)
>    pt_register_regions: Expansion ROM registered (size=0x00020000
>    base_addr=0xfea00002)
>    pt_msi_setup: msi mapped with pirq 37
>    pci_intx: intx=1
>    register_real_device: Real physical device 01:00.0 registered successfuly!
>    IRQ type = MSI-INTx
>    pt_iomem_map: e_phys=e0000000 maddr=d0000000 type=8 len=268435456 index=0
>    first_map=1
>    pt_iomem_map: e_phys=f1020000 maddr=fe9f0000 type=0 len=65536 index=2
>    first_map=1
>    pt_ioport_map: e_phys=c200 pio_base=dc00 len=256 index=4 first_map=1
> 
>    ######################
>    #xend.log
>    ######################
>    [root@localhost xen]# cat xend.log
>    [2010-05-12 11:09:05 4059] INFO (SrvDaemon:332) Xend Daemon started
>    [2010-05-12 11:09:05 4059] INFO (SrvDaemon:336) Xend changeset:
>    unavailable.
>    [2010-05-12 11:09:06 4059] DEBUG (XendDomainInfo:149)
>    XendDomainInfo.recreate({'max_vcpu_id': 3, 'cpu_time': 42036340009L,
>    'ssidref': 0, 'hvm': 0,
>    'shutdown_reason': 0, 'dying': 0, 'online_vcpus': 4, 'domid': 0, 'paused':
>    0, 'crashed': 0, 'running': 1, 'maxmem_kb': 17179869180L, 'shutdown': 0,
>    'mem_kb':
>    3599204L, 'handle': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
>    'blocked': 0, 'name': 'Domain-0'})
>    [2010-05-12 11:09:06 4059] INFO (XendDomainInfo:167) Recreating domain 0,
>    UUID 00000000-0000-0000-0000-000000000000. at /local/domain/0
>    [2010-05-12 11:09:06 4059] DEBUG (XendDomainInfo:3400) Storing VM details:
>    {'on_xend_stop': 'ignore', 'shadow_memory': '0', 'uuid':
>    '00000000-0000-0000-0000
>    -000000000000', 'on_reboot': 'restart', 'image': '(linux (kernel )
>    (superpages 0) (nomigrate 0) (tsc_mode 0))', 'on_poweroff': 'destroy',
>    'bootloader_args':
>    '', 'on_xend_start': 'ignore', 'on_crash': 'restart',
>    'xend/restart_count': '0', 'vcpus': '4', 'vcpu_avail': '15', 'bootloader':
>    '', 'name': 'Domain-0'}
>    [2010-05-12 11:09:06 4059] DEBUG (XendDomainInfo:1804) Storing domain
>    details: {'cpu/3/availability': 'online', 'description': '',
>    'console/limit':
>    '1048576', 'memory/target': '3599204', 'cpu/2/availability': 'online',
>    'vm': '/vm/00000000-0000-0000-0000-000000000000', 'domid': '0',
>    'cpu/0/availability':
>    'online', 'cpu/1/availability': 'online',
>    'control/platform-feature-multiprocessor-suspend': '1', 'console/type':
>    'xenconsoled', 'name': 'Domain-0'}
>    [2010-05-12 11:09:06 4059] DEBUG (XendDomain:464) Adding Domain: 0
>    [2010-05-12 11:09:06 4059] DEBUG (XendDomain:398) number of vcpus to use
>    is 0
>    [2010-05-12 11:09:07 4059] DEBUG (XendDomainInfo:1891)
>    XendDomainInfo.handleShutdownWatch
>    [2010-05-12 11:09:07 4059] INFO (SrvServer:177) unix
>    path=/var/lib/xend/xend-socket
>    [2010-05-12 11:09:07 4059] WARNING (XendAPI:705) API call: VBD.set_device
>    not found
>    [2010-05-12 11:09:07 4059] WARNING (XendAPI:705) API call: VBD.set_type
>    not found
>    [2010-05-12 11:09:07 4059] WARNING (XendAPI:705) API call:
>    session.get_all_records not found
>    [2010-05-12 11:09:07 4059] WARNING (XendAPI:705) API call:
>    event.get_record not found
>    [2010-05-12 11:09:07 4059] WARNING (XendAPI:705) API call: event.get_all
>    not found
>    [2010-05-12 11:09:07 4059] WARNING (XendAPI:705) API call: VIF.set_device
>    not found
>    [2010-05-12 11:09:07 4059] WARNING (XendAPI:705) API call: VIF.set_MAC not
>    found
>    [2010-05-12 11:09:07 4059] WARNING (XendAPI:705) API call: VIF.set_MTU not
>    found
>    [2010-05-12 11:09:07 4059] WARNING (XendAPI:705) API call: debug.get_all
>    not found
>    [2010-05-12 11:09:07 4059] INFO (XMLRPCServer:156) Opening Unix domain
>    socket XML-RPC server on /var/run/xend/xen-api.sock; authentication has
>    been disabled
>    for this server.
>    [2010-05-12 11:09:07 4059] INFO (XMLRPCServer:156) Opening Unix domain
>    socket XML-RPC server on /var/run/xend/xmlrpc.sock.
>    [2010-05-12 11:10:34 4059] DEBUG (XendDomainInfo:101)
>    XendDomainInfo.create(['vm', ['name', 'WinXP_HVMDomain'], ['memory',
>    2048], ['on_poweroff', 'destroy'],
>    ['on_reboot', 'restart'], ['on_crash', 'restart'], ['on_xend_start',
>    'ignore'], ['on_xend_stop', 'ignore'], ['vcpus', 1], ['localtime', 8],
>    ['oos', 1],
>    ['image', ['hvm', ['kernel', '/usr/lib/xen/boot/hvmloader'], ['videoram',
>    4], ['serial', 'pty'], ['acpi', 1], ['apic', 1], ['boot', 'c'], ['cpuid',
>    []],
>    ['cpuid_check', []], ['device_model', 'qemu-dm'], ['fda', ''], ['fdb',
>    ''], ['gfx_passthru', 2], ['guest_os_type', 'default'], ['hap', 1],
>    ['hpet', 0],
>    ['isa', 0], ['keymap', ''], ['localtime', 8], ['nographic', 0], ['opengl',
>    1], ['oos', 1], ['pae', 1], ['pci', [['0x0000', '0x01', '0x00', '0x0',
>    '0x100',
>    [], '01:00.0']]], ['pci_msitranslate', 1], ['pci_power_mgmt', 0],
>    ['rtc_timeoffset', 0], ['sdl', 0], ['soundhw', 'sb16'], ['stdvga', 0],
>    ['timer_mode', 1],
>    ['usb', 0], ['usbdevice', ''], ['vcpus', 1], ['vnc', 1], ['vncdisplay',
>    1], ['vncunused', 1], ['viridian', 0], ['vpt_align', 1], ['xauthority',
>    '/root/.Xauthority'], ['xen_platform_pci', 1], ['memory_sharing', 0],
>    ['vncpasswd', 'XXXXXXXX'], ['tsc_mode', 0], ['nomigrate', 0]]],
>    ['s3_integrity', 1],
>    ['device', ['vbd', ['uname', 'phy:/dev/sda'], ['dev', 'hda'], ['mode',
>    'w']]], ['device', ['pci', ['dev', ['slot', '0x00'], ['domain', '0x0000'],
>    ['key',
>    '01:00.0'], ['bus', '0x01'], ['vdevfn', '0x100'], ['func', '0x0']]]],
>    ['device', ['vif', ['bridge', 'virbr0'], ['type', 'ioemu']]]])
>    [2010-05-12 11:10:34 4059] DEBUG (XendDomainInfo:2508)
>    XendDomainInfo.constructDomain
>    [2010-05-12 11:10:34 4059] DEBUG (balloon:220) Balloon: 400012 KiB free;
>    need 16384; done.
>    [2010-05-12 11:10:34 4059] DEBUG (XendDomain:464) Adding Domain: 1
>    [2010-05-12 11:10:34 4059] DEBUG (XendDomainInfo:2818)
>    XendDomainInfo.initDomain: 1 256
>    [2010-05-12 11:10:34 4059] DEBUG (image:339) No VNC passwd configured for
>    vfb access
>    [2010-05-12 11:10:34 4059] DEBUG (image:889) args: boot, val: c
>    [2010-05-12 11:10:34 4059] DEBUG (image:889) args: fda, val: None
>    [2010-05-12 11:10:34 4059] DEBUG (image:889) args: fdb, val: None
>    [2010-05-12 11:10:34 4059] DEBUG (image:889) args: soundhw, val: sb16
>    [2010-05-12 11:10:34 4059] DEBUG (image:889) args: localtime, val: 8
>    [2010-05-12 11:10:34 4059] DEBUG (image:889) args: serial, val: ['pty']
>    [2010-05-12 11:10:34 4059] DEBUG (image:889) args: std-vga, val: 0
>    [2010-05-12 11:10:34 4059] DEBUG (image:889) args: isa, val: 0
>    [2010-05-12 11:10:34 4059] DEBUG (image:889) args: acpi, val: 1
>    [2010-05-12 11:10:34 4059] DEBUG (image:889) args: usb, val: 0
>    [2010-05-12 11:10:34 4059] DEBUG (image:889) args: usbdevice, val: None
>    [2010-05-12 11:10:34 4059] DEBUG (image:889) args: gfx_passthru, val: 2
>    [2010-05-12 11:10:34 4059] INFO (image:822) Need to create platform
>    device.[domid:1]
>    [2010-05-12 11:10:34 4059] DEBUG (XendDomainInfo:2845)
>    _initDomain:shadow_memory=0x0, memory_static_max=0x80000000,
>    memory_static_min=0x0.
>    [2010-05-12 11:10:34 4059] DEBUG (balloon:172) Balloon: tmem relinquished
>    -1 KiB of 1731424 KiB requested.
>    [2010-05-12 11:10:34 4059] DEBUG (balloon:226) Balloon: 395424 KiB free; 0
>    to scrub; need 2126848; retries: 25.
>    [2010-05-12 11:10:34 4059] DEBUG (balloon:240) Balloon: setting dom0
>    target to 1628 MiB.
>    [2010-05-12 11:10:34 4059] DEBUG (XendDomainInfo:1477) Setting memory
>    target of domain Domain-0 (0) to 1628 MiB.
>    [2010-05-12 11:10:35 4059] INFO (image:182) buildDomain os=hvm dom=1
>    vcpus=1
>    [2010-05-12 11:10:35 4059] DEBUG (image:947) domid          = 1
>    [2010-05-12 11:10:35 4059] DEBUG (image:948) image          =
>    /usr/lib/xen/boot/hvmloader
>    [2010-05-12 11:10:35 4059] DEBUG (image:949) store_evtchn   = 2
>    [2010-05-12 11:10:35 4059] DEBUG (image:950) memsize        = 2048
>    [2010-05-12 11:10:35 4059] DEBUG (image:951) target         = 2048
>    [2010-05-12 11:10:35 4059] DEBUG (image:952) vcpus          = 1
>    [2010-05-12 11:10:35 4059] DEBUG (image:953) vcpu_avail     = 1
>    [2010-05-12 11:10:35 4059] DEBUG (image:954) acpi           = 1
>    [2010-05-12 11:10:35 4059] DEBUG (image:955) apic           = 1
>    [2010-05-12 11:10:36 4059] INFO (XendDomainInfo:2367) createDevice: vfb :
>    {'vncunused': 1, 'other_config': {'vncunused': 1, 'vnc': '1',
>    'vncdisplay': 1},
>    'vnc': '1', 'vncdisplay': 1, 'uuid':
>    '52884c54-fcae-35c2-59fe-ecb3e419c2e5'}
>    [2010-05-12 11:10:36 4059] DEBUG (DevController:95) DevController: writing
>    {'state': '1', 'backend-id': '0', 'backend':
>    '/local/domain/0/backend/vfb/1/0'} to
>    /local/domain/1/device/vfb/0.
>    [2010-05-12 11:10:36 4059] DEBUG (DevController:97) DevController: writing
>    {'vncunused': '1', 'domain': 'WinXP_HVMDomain', 'frontend':
>    '/local/domain/1/device/vfb/0', 'uuid':
>    '52884c54-fcae-35c2-59fe-ecb3e419c2e5', 'frontend-id': '1', 'vncdisplay':
>    '1', 'state': '1', 'online': '1', 'vnc':
>    '1'} to /local/domain/0/backend/vfb/1/0.
>    [2010-05-12 11:10:36 4059] INFO (XendDomainInfo:2367) createDevice: vbd :
>    {'uuid': '39c02f02-5c23-415e-9a78-1e06b6372dcc', 'bootable': 1, 'driver':
>    'paravirtualised', 'dev': 'hda', 'uname': 'phy:/dev/sda', 'mode': 'w'}
>    [2010-05-12 11:10:36 4059] DEBUG (DevController:95) DevController: writing
>    {'backend-id': '0', 'virtual-device': '768', 'device-type': 'disk',
>    'state': '1',
>    'backend': '/local/domain/0/backend/vbd/1/768'} to
>    /local/domain/1/device/vbd/768.
>    [2010-05-12 11:10:36 4059] DEBUG (DevController:97) DevController: writing
>    {'domain': 'WinXP_HVMDomain', 'frontend':
>    '/local/domain/1/device/vbd/768',
>    'uuid': '39c02f02-5c23-415e-9a78-1e06b6372dcc', 'bootable': '1', 'dev':
>    'hda', 'state': '1', 'params': '/dev/sda', 'mode': 'w', 'online': '1',
>    'frontend-id':
>    '1', 'type': 'phy'} to /local/domain/0/backend/vbd/1/768.
>    [2010-05-12 11:10:36 4059] INFO (XendDomainInfo:2367) createDevice: vif :
>    {'bridge': 'virbr0', 'mac': '00:16:3e:26:c5:e4', 'type': 'ioemu', 'uuid':
>    '3f91b517-6ff9-2cc7-4025-10b9bb839851'}
>    [2010-05-12 11:10:36 4059] DEBUG (DevController:95) DevController: writing
>    {'state': '1', 'backend-id': '0', 'backend':
>    '/local/domain/0/backend/vif/1/0'} to
>    /local/domain/1/device/vif/0.
>    [2010-05-12 11:10:36 4059] DEBUG (DevController:97) DevController: writing
>    {'bridge': 'virbr0', 'domain': 'WinXP_HVMDomain', 'handle': '0', 'uuid':
>    '3f91b517-6ff9-2cc7-4025-10b9bb839851', 'script':
>    '/etc/xen/scripts/vif-bridge', 'mac': '00:16:3e:26:c5:e4', 'frontend-id':
>    '1', 'state': '1', 'online': '1',
>    'frontend': '/local/domain/1/device/vif/0', 'type': 'ioemu'} to
>    /local/domain/0/backend/vif/1/0.
>    [2010-05-12 11:10:36 4059] INFO (XendDomainInfo:2367) createDevice: pci :
>    {'devs': [{'slot': '0x00', 'domain': '0x0000', 'key': '01:00.0', 'bus':
>    '0x01',
>    'vdevfn': '0x100', 'func': '0x0', 'uuid':
>    '1860c03c-0427-7cfd-f13b-83457c8a71b2'}], 'uuid':
>    '1b62b475-f245-df50-73b9-fb02c52ff7dc'}
>    [2010-05-12 11:10:36 4059] INFO (image:418) spawning device models:
>    /usr/lib/xen/bin/qemu-dm ['/usr/lib/xen/bin/qemu-dm', '-d', '1',
>    '-domain-name',
>    'WinXP_HVMDomain', '-videoram', '4', '-vnc', '[1]127.0.0.1:1',
>    '-vncunused', '-vcpus', '1', '-vcpu_avail', '0x1', '-boot', 'c',
>    '-soundhw', 'sb16', '-
>    localtime', '-serial', 'pty', '-acpi', '-gfx_passthru', '2', '-net',
>    'nic,vlan=1,macaddr=00:16:3e:26:c5:e4,model=rtl8139', '-net',
>    'tap,vlan=1,ifname=tap1.0,bridge=virbr0', '-M', 'xenfv']
>    [2010-05-12 11:10:36 4059] INFO (image:467) device model pid: 4546
>    [2010-05-12 11:10:36 4059] INFO (image:590) waiting for sentinel_fifo
>    [2010-05-12 11:10:36 4059] DEBUG (XendDomainInfo:903)
>    XendDomainInfo.pci_device_configure: ['pci', ['dev', ['slot', '0x00'],
>    ['domain', '0x0000'], ['key',
>    '01:00.0'], ['bus', '0x01'], ['vdevfn', '0x100'], ['func', '0x0'],
>    ['uuid', '1860c03c-0427-7cfd-f13b-83457c8a71b2']], ['state',
>    'Initialising'],
>    ['sub_state', 'Booting']]
>    [2010-05-12 11:10:36 4059] DEBUG (XendDomainInfo:790)
>    XendDomainInfo.hvm_pci_device_insert: {'devs': [{'slot': '0x00', 'domain':
>    '0x0000', 'key': '01:00.0',
>    'bus': '0x01', 'vdevfn': '0x100', 'func': '0x0', 'uuid':
>    '1860c03c-0427-7cfd-f13b-83457c8a71b2'}], 'states': ['Initialising']}
>    [2010-05-12 11:10:36 4059] DEBUG (XendDomainInfo:801)
>    XendDomainInfo.hvm_pci_device_insert_dev: {'slot': '0x00', 'domain':
>    '0x0000', 'key': '01:00.0', 'bus':
>    '0x01', 'vdevfn': '0x100', 'func': '0x0', 'uuid':
>    '1860c03c-0427-7cfd-f13b-83457c8a71b2'}
>    [2010-05-12 11:10:36 4059] DEBUG (XendDomainInfo:822)
>    XendDomainInfo.hvm_pci_device_insert_dev:
>    0000:01:00.0@100,msitranslate=1,power_mgmt=0
>    [2010-05-12 11:10:36 4059] DEBUG (XendDomainInfo:826) pci: assign device
>    0000:01:00.0@100,msitranslate=1,power_mgmt=0
>    [2010-05-12 11:10:36 4059] DEBUG (image:508) signalDeviceModel: orig_state
>    is None, retrying
>    [2010-05-12 11:10:36 4059] DEBUG (image:508) signalDeviceModel: orig_state
>    is None, retrying
>    [2010-05-12 11:10:37 4059] INFO (image:538) signalDeviceModel:restore dm
>    state to running
>    [2010-05-12 11:10:37 4059] DEBUG (pciif:320) pci: enabling ioport
>    0xdc00/0x100
>    [2010-05-12 11:10:37 4059] DEBUG (pciif:334) pci: enabling iomem
>    0xd0000000/0x10000000 pfn 0xd0000/0x10000
>    [2010-05-12 11:10:37 4059] DEBUG (pciif:334) pci: enabling iomem
>    0xfe9f0000/0x10000 pfn 0xfe9f0/0x10
>    [2010-05-12 11:10:37 4059] DEBUG (pciif:334) pci: enabling iomem
>    0xfea00000/0x20000 pfn 0xfea00/0x20
>    [2010-05-12 11:10:37 4059] DEBUG (pciif:351) pci: enabling irq 16
>    [2010-05-12 11:10:37 4059] DEBUG (pciif:456) pci: register aer watch
>    /local/domain/0/backend/pci/1/0/aerState
>    [2010-05-12 11:10:37 4059] DEBUG (DevController:95) DevController: writing
>    {'state': '1', 'backend-id': '0', 'backend':
>    '/local/domain/0/backend/pci/1/0'} to
>    /local/domain/1/device/pci/0.
>    [2010-05-12 11:10:37 4059] DEBUG (DevController:97) DevController: writing
>    {'domain': 'WinXP_HVMDomain', 'key-0': '01:00.0', 'vdevfn-0': '100',
>    'uuid':
>    '1b62b475-f245-df50-73b9-fb02c52ff7dc', 'frontend-id': '1', 'dev-0':
>    '0000:01:00.0', 'state': '1', 'online': '1', 'frontend':
>    '/local/domain/1/device/pci/0',
>    'num_devs': '1', 'uuid-0': '1860c03c-0427-7cfd-f13b-83457c8a71b2',
>    'opts-0': 'msitranslate=1,power_mgmt=0'} to
>    /local/domain/0/backend/pci/1/0.
>    [2010-05-12 11:10:37 4059] DEBUG (pciif:169) Reconfiguring PCI device
>    0000:01:00.0.
>    [2010-05-12 11:10:37 4059] DEBUG (pciif:320) pci: enabling ioport
>    0xdc00/0x100
>    [2010-05-12 11:10:37 4059] DEBUG (pciif:334) pci: enabling iomem
>    0xd0000000/0x10000000 pfn 0xd0000/0x10000
>    [2010-05-12 11:10:37 4059] DEBUG (pciif:334) pci: enabling iomem
>    0xfe9f0000/0x10000 pfn 0xfe9f0/0x10
>    [2010-05-12 11:10:37 4059] DEBUG (pciif:334) pci: enabling iomem
>    0xfea00000/0x20000 pfn 0xfea00/0x20
>    [2010-05-12 11:10:37 4059] DEBUG (pciif:351) pci: enabling irq 16
>    [2010-05-12 11:10:37 4059] DEBUG (XendDomainInfo:3400) Storing VM details:
>    {'on_xend_stop': 'ignore', 'shadow_memory': '17', 'uuid':
>    'c2cae68c-75ee-8f53-
>    7f96-2fcfcff98574', 'on_reboot': 'restart', 'start_time': '1273633837.57',
>    'on_poweroff': 'destroy', 'bootloader_args': '', 'on_xend_start':
>    'ignore',
>    'on_crash': 'restart', 'xend/restart_count': '0', 'vcpus': '1',
>    'vcpu_avail': '1', 'bootloader': '', 'image': '(hvm (kernel ) (superpages
>    0) (videoram 4)
>    (hpet 0) (stdvga 0) (loader /usr/lib/xen/boot/hvmloader) (xen_platform_pci
>    1) (opengl 1) (rtc_timeoffset 0) (pci ((0x0000 0x01 0x00 0x0 0x100 ())))
>    (hap 1)
>    (localtime 8) (timer_mode 1) (vncdisplay 1) (pci_msitranslate 1) (oos 1)
>    (apic 1) (sdl 0) (vpt_align 1) (serial pty) (vncunused 1) (soundhw sb16)
>    (gfx_passthru 2) (boot c) (pae 1) (viridian 0) (acpi 1) (vnc 1) (nographic
>    0) (nomigrate 0) (usb 0) (tsc_mode 0) (guest_os_type default)
>    (device_model
>    /usr/lib/xen/bin/qemu-dm) (pci_power_mgmt 0) (xauthority
>    /root/.Xauthority) (isa 0) (notes (SUSPEND_CANCEL 1)))', 'name':
>    'WinXP_HVMDomain'}
>    [2010-05-12 11:10:37 4059] DEBUG (XendDomainInfo:1804) Storing domain
>    details: {'console/port': '3', 'description': '', 'console/limit':
>    '1048576',
>    'store/port': '2', 'vm': '/vm/c2cae68c-75ee-8f53-7f96-2fcfcff98574',
>    'domid': '1', 'image/suspend-cancel': '1', 'cpu/0/availability': 'online',
>    'memory/target': '2097152',
>    'control/platform-feature-multiprocessor-suspend': '1', 'store/ring-ref':
>    '1044476', 'console/type': 'ioemu', 'name':
>    'WinXP_HVMDomain'}
>    [2010-05-12 11:10:37 4059] DEBUG (DevController:95) DevController: writing
>    {'state': '1', 'backend-id': '0', 'backend':
>    '/local/domain/0/backend/console/1/0'} to
>    /local/domain/1/device/console/0.
>    [2010-05-12 11:10:37 4059] DEBUG (DevController:97) DevController: writing
>    {'domain': 'WinXP_HVMDomain', 'frontend':
>    '/local/domain/1/device/console/0',
>    'uuid': '6b28557f-4063-5d7c-64d0-2c3cc9e2960b', 'frontend-id': '1',
>    'state': '1', 'location': '3', 'online': '1', 'protocol': 'vt100'} to
>    /local/domain/0/backend/console/1/0.
>    [2010-05-12 11:10:37 4059] DEBUG (pciif:460)
>    XendDomainInfo.handleAerStateWatch
>    [2010-05-12 11:10:37 4059] DEBUG (XendDomainInfo:1891)
>    XendDomainInfo.handleShutdownWatch
>    [2010-05-12 11:10:37 4059] DEBUG (DevController:139) Waiting for devices
>    tap2.
>    [2010-05-12 11:10:37 4059] DEBUG (DevController:139) Waiting for devices
>    vif.
>    [2010-05-12 11:10:37 4059] DEBUG (DevController:144) Waiting for 0.
>    [2010-05-12 11:10:37 4059] DEBUG (DevController:628) hotplugStatusCallback
>    /local/domain/0/backend/vif/1/0/hotplug-status.
>    [2010-05-12 11:10:37 4059] DEBUG (DevController:642) hotplugStatusCallback
>    1.
>    [2010-05-12 11:10:37 4059] DEBUG (DevController:139) Waiting for devices
>    vkbd.
>    [2010-05-12 11:10:37 4059] DEBUG (DevController:139) Waiting for devices
>    ioports.
>    [2010-05-12 11:10:37 4059] DEBUG (DevController:139) Waiting for devices
>    tap.
>    [2010-05-12 11:10:37 4059] DEBUG (DevController:139) Waiting for devices
>    vif2.
>    [2010-05-12 11:10:37 4059] DEBUG (DevController:139) Waiting for devices
>    console.
>    [2010-05-12 11:10:37 4059] DEBUG (DevController:144) Waiting for 0.
>    [2010-05-12 11:10:37 4059] DEBUG (DevController:139) Waiting for devices
>    vscsi.
>    [2010-05-12 11:10:37 4059] DEBUG (DevController:139) Waiting for devices
>    vbd.
>    [2010-05-12 11:10:37 4059] DEBUG (DevController:144) Waiting for 768.
>    [2010-05-12 11:10:37 4059] DEBUG (DevController:628) hotplugStatusCallback
>    /local/domain/0/backend/vbd/1/768/hotplug-status.
>    [2010-05-12 11:10:37 4059] DEBUG (DevController:642) hotplugStatusCallback
>    1.
>    [2010-05-12 11:10:37 4059] DEBUG (DevController:139) Waiting for devices
>    irq.
>    [2010-05-12 11:10:37 4059] DEBUG (DevController:139) Waiting for devices
>    vfb.
>    [2010-05-12 11:10:37 4059] DEBUG (DevController:139) Waiting for devices
>    pci.
>    [2010-05-12 11:10:37 4059] DEBUG (DevController:144) Waiting for 0.
>    [2010-05-12 11:10:37 4059] DEBUG (DevController:139) Waiting for devices
>    vusb.
>    [2010-05-12 11:10:37 4059] DEBUG (DevController:139) Waiting for devices
>    vtpm.
>    [2010-05-12 11:10:38 4059] INFO (XendDomain:1206) Domain WinXP_HVMDomain
>    (1) unpaused.
> 
>    #####################
>    #xend-debug.log
>    #####################
>    [root@localhost xen]# cat xend-debug.log
>    Xend started at Wed May 12 11:09:05 2010.
>    cat: /sys/bus/scsi/devices/host0/vendor: No such file or directory
>    cat: /sys/bus/scsi/devices/host0/model: No such file or directory
>    cat: /sys/bus/scsi/devices/host0/type: No such file or directory
>    cat: /sys/bus/scsi/devices/host0/rev: No such file or directory
>    cat: /sys/bus/scsi/devices/host0/scsi_level: No such file or directory
>    cat: /sys/bus/scsi/devices/host1/vendor: No such file or directory
>    cat: /sys/bus/scsi/devices/host1/model: No such file or directory
>    cat: /sys/bus/scsi/devices/host1/type: No such file or directory
>    cat: /sys/bus/scsi/devices/host1/rev: No such file or directory
>    cat: /sys/bus/scsi/devices/host1/scsi_level: No such file or directory
>    cat: /sys/bus/scsi/devices/host2/vendor: No such file or directory
>    cat: /sys/bus/scsi/devices/host2/model: No such file or directory
>    cat: /sys/bus/scsi/devices/host2/type: No such file or directory
>    cat: /sys/bus/scsi/devices/host2/rev: No such file or directory
>    cat: /sys/bus/scsi/devices/host2/scsi_level: No such file or directory
>    cat: /sys/bus/scsi/devices/host3/vendor: No such file or directory
>    cat: /sys/bus/scsi/devices/host3/model: No such file or directory
>    cat: /sys/bus/scsi/devices/host3/type: No such file or directory
>    cat: /sys/bus/scsi/devices/host3/rev: No such file or directory
>    cat: /sys/bus/scsi/devices/host3/scsi_level: No such file or directory
>    cat: /sys/bus/scsi/devices/host4/vendor: No such file or directory
>    cat: /sys/bus/scsi/devices/host4/model: No such file or directory
>    cat: /sys/bus/scsi/devices/host4/type: No such file or directory
>    cat: /sys/bus/scsi/devices/host4/rev: No such file or directory
>    cat: /sys/bus/scsi/devices/host4/scsi_level: No such file or directory
>    cat: /sys/bus/scsi/devices/host5/vendor: No such file or directory
>    cat: /sys/bus/scsi/devices/host5/model: No such file or directory
>    cat: /sys/bus/scsi/devices/host5/type: No such file or directory
>    cat: /sys/bus/scsi/devices/host5/rev: No such file or directory
>    cat: /sys/bus/scsi/devices/host5/scsi_level: No such file or directory
>    cat: /sys/bus/scsi/devices/target0:0:0/vendor: No such file or directory
>    cat: /sys/bus/scsi/devices/target0:0:0/model: No such file or directory
>    cat: /sys/bus/scsi/devices/target0:0:0/type: No such file or directory
>    cat: /sys/bus/scsi/devices/target0:0:0/rev: No such file or directory
>    cat: /sys/bus/scsi/devices/target0:0:0/scsi_level: No such file or
>    directory
>    cat: /sys/bus/scsi/devices/target1:0:0/vendor: No such file or directory
>    cat: /sys/bus/scsi/devices/target1:0:0/model: No such file or directory
>    cat: /sys/bus/scsi/devices/target1:0:0/type: No such file or directory
>    cat: /sys/bus/scsi/devices/target1:0:0/rev: No such file or directory
>    cat: /sys/bus/scsi/devices/target1:0:0/scsi_level: No such file or
>    directory
>    /usr/lib64/python2.6/site-packages/xen/xend/XendAPI.py:548:
>    DeprecationWarning: object.__new__() takes no parameters
>      return object.__new__(cls, *args, **kwds)
> 
> 
> 
>    2010/5/13 Han, Weidong <[2]weidong.han@xxxxxxxxx>
> 
>      I didn't try it recently. I think it should still work.
> 
> 
> 
>      Regards,
> 
>      Weidong
> 
> 
> 
>      From: Bei Guan [mailto:[3]gbtju85@xxxxxxxxx]
>      Sent: Thursday, May 13, 2010 10:34 AM
>      To: Han, Weidong
>      Cc: Xen Devel
>      Subject: Re: [Xen-devel] FLR Patch for Xen 4.0
> 
> 
> 
>      Hi,
> 
> 
> 
>      Have you test the nVidia Geforce 8400 GS PCI Express x16 in xen4.0,
>      which Mr. Teo Enming have test in xen 3.5-unstable branch wich some
>      patch.
> 
>      
> [4]http://lists.xensource.com/archives/html/xen-devel/2009-08/msg01013.html
> 
>      Thanks a lot!
> 
> 
> 
> 
> 
> 
> 
> 
> 
>      2010/5/10 Han, Weidong <[5]weidong.han@xxxxxxxxx>
> 
>      If the device doesn't support FLR capability, there will be a default
>      reset for it, e.g. Dstate transition. But it doesn't guarantee to work.
>      For your ATI card, we didn't try with it. Likely it cannot work. nVidia
>      Quadro FX 3800 and IGD on Intel platforms (e.g. Q35 and Q45) were tested
>      and works on current Xen upstream. Some other gfx cards  may work with
>      extra patches (e.g. 1:1 map vBAR and pBAR). There were many emails to
>      discuss it in xen-devel mailing list, you'd better to find and read
>      those emails.
> 
> 
> 
>      Regards,
> 
>      Weidong
> 
> 
> 
>      From: Bei Guan [mailto:[6]gbtju85@xxxxxxxxx]
>      Sent: Monday, May 10, 2010 4:53 PM
>      To: Han, Weidong
>      Cc: Xen Devel
>      Subject: Re: [Xen-devel] FLR Patch for Xen 4.0
> 
> 
> 
>      My VGA hardware is as following. Can I find a patch to make it support
>      pci passthrough?
> 
>      #lspci
>      ......
>      01:00.0 VGA compatible controller: ATI Technologies Inc Mobility Radeon
>      HD 3450
> 
>      Xen4.0 can not support the ATI adapters defaultly, is it? Because my VGA
>      passthrough can not work correctly.
> 
>      2010/5/10 Han, Weidong <[7]weidong.han@xxxxxxxxx>
> 
>      There were several patches checked into xen for pci passthru, you can
>      find relevant code in tools/python/xen/xend/server/pciif.py.
> 
> 
> 
>      Regards,
> 
>      Weidong
> 
> 
> 
>      From: [8]xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>      [mailto:[9]xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Bei Guan
>      Sent: Monday, May 10, 2010 3:44 PM
>      To: Xen Devel
>      Subject: [Xen-devel] FLR Patch for Xen 4.0
> 
> 
> 
>      Hi,
> 
>      Is there a FLR patch for xen 4.0 PCI Passthrought ?
>      Thanks.
> 
>      gavin
> 
> 
> 
> 
> 
> References
> 
>    Visible links
>    1. http://127.0.0.1:1/
>    2. mailto:weidong.han@xxxxxxxxx
>    3. mailto:gbtju85@xxxxxxxxx
>    4. http://lists.xensource.com/archives/html/xen-devel/2009-08/msg01013.html
>    5. mailto:weidong.han@xxxxxxxxx
>    6. mailto:gbtju85@xxxxxxxxx
>    7. mailto:weidong.han@xxxxxxxxx
>    8. mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>    9. mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel