On 2008-11-19 08:54, Keir Fraser wrote:
> On 19/11/08 02:13, "Joe Jin" <joe.jin@xxxxxxxxxx> wrote:
>
> >> Have you actually seen this problem occur, in stress tests or elsewhere? Or
> >> is this just a 'nice to have'? If the former I'd rather fix the bug!
> >>
> >
> > At vm config file set vif type to ioemu and booting guest with pv driver,
> > always saw the interface, unregister the device when network_connect(),
> > I just saw one nic with 8139 driver.
>
> I think failure to connect in frontend should always be a bug condition.
>
> In this case, xend shouldn't be creating front and back directories at all.
> What happens if you make netif's getDeviceDetails() return None for devid if
> type == 'ioemu'? This should cause DevController.py not to set up the
> front/back details and netfront.c will never get triggered.
>
The change could not stoped kernel insert xen_vnif driver.
From xend.log I did not saw xend have tried to create vnif device at all,
I'm not sure whether virtual device platform "Xen Platform Device" have
preallocated the interface, then kernel try to load the driver?
Below are some xend logs:
[2008-11-20 10:43:01 16111] DEBUG (XendDomainInfo:85)
XendDomainInfo.create(['vm', ['name', 'hvm'], ['memory', '1024'], ['on_reboot',
'restart'], ['on_crash', 'preserve'], ['vcpus', 1], ['on_xend_start',
'ignore'], ['on_xend_stop', 'ignore'], ['image', ['hvm', ['kernel',
'/usr/lib/xen/boot/hvmloader'], ['device_model', '/usr/lib/xen/bin/qemu-dm'],
['pae', 1], ['vcpus', 1], ['boot', 'c'], ['fda', ''], ['fdb', ''],
['timer_mode', 0], ['localtime', 0], ['serial', 'pty'], ['stdvga', 0], ['isa',
0], ['nographic', 0], ['soundhw', ''], ['vnc', 1], ['vncunused', 1],
['vncconsole', 1], ['vnclisten', '00.0.0'], ['display', 'localhost:11.0'],
['xauthority', '/root/.Xauthority'], ['rtc_timeoffset', '0'], ['monitor', 0],
['acpi', 1], ['apic', 1], ['usb', 0], ['usbdevice', ''], ['keymap', ''],
['hpet', 0]]], ['device', ['vbd', ['uname',
'file:/root/OVM_EL5U1_X86_HVM_4GB/system.img'], ['dev', 'hda'], ['mode',
'w']]], ['device', ['vif', ['bridge', 'xenbr0'], ['mac', '00:16:3E:40:F6:58'],
['type', 'ioemu']]]])
[2008-11-20 10:43:01 16111] DEBUG (XendDomainInfo:1534)
XendDomainInfo.constructDomain
[2008-11-20 10:43:01 16111] DEBUG (balloon:116) Balloon: 1487380 KiB free; need
2048; done.
[2008-11-20 10:43:01 16111] DEBUG (XendDomain:434) Adding Domain: 50
[2008-11-20 10:43:01 16111] DEBUG (XendDomainInfo:1600)
XendDomainInfo.initDomain: 50 256
[2008-11-20 10:43:01 16111] DEBUG (image:337) args: boot, val: c
[2008-11-20 10:43:02 16111] DEBUG (image:337) args: fda, val: None
[2008-11-20 10:43:02 16111] DEBUG (image:337) args: fdb, val: None
[2008-11-20 10:43:02 16111] DEBUG (image:337) args: soundhw, val: None
[2008-11-20 10:43:02 16111] DEBUG (image:337) args: localtime, val: 0
[2008-11-20 10:43:02 16111] DEBUG (image:337) args: serial, val: pty
[2008-11-20 10:43:02 16111] DEBUG (image:337) args: std-vga, val: 0
[2008-11-20 10:43:02 16111] DEBUG (image:337) args: isa, val: 0
[2008-11-20 10:43:02 16111] DEBUG (image:337) args: acpi, val: 1
[2008-11-20 10:43:02 16111] DEBUG (image:337) args: usb, val: 0
[2008-11-20 10:43:02 16111] DEBUG (image:337) args: usbdevice, val: None
[2008-11-20 10:43:02 16111] DEBUG (image:337) args: k, val: None
[2008-11-20 10:43:02 16111] DEBUG (XendDomainInfo:1634)
_initDomain:shadow_memory=0x0, memory_static_max=0x40000000,
memory_static_min=0x0.
[2008-11-20 10:43:02 16111] DEBUG (balloon:116) Balloon: 1486344 KiB free; need
1065984; done.
[2008-11-20 10:43:02 16111] INFO (image:128) buildDomain os=hvm dom=50 vcpus=1
[2008-11-20 10:43:02 16111] DEBUG (image:281) domid = 50
[2008-11-20 10:43:02 16111] DEBUG (image:282) image =
/usr/lib/xen/boot/hvmloader
[2008-11-20 10:43:02 16111] DEBUG (image:283) store_evtchn = 2
[2008-11-20 10:43:02 16111] DEBUG (image:284) memsize = 1024
[2008-11-20 10:43:02 16111] DEBUG (image:285) vcpus = 1
[2008-11-20 10:43:02 16111] DEBUG (image:286) acpi = 1
[2008-11-20 10:43:02 16111] DEBUG (image:287) apic = 1
[2008-11-20 10:43:02 16111] INFO (XendDomainInfo:1433) createDevice: vfb :
{'vncunused': 1, 'vnclisten': '0.0.0.0', 'uuid':
'ae2833f3-19eb-8db8-edbf-2c7a4c654ffa', 'other_config': {'vncunused': 1,
'vnclisten': '0.0.0.0'}}
[2008-11-20 10:43:02 16111] DEBUG (DevController:118) DevController: writing
{'state': '1', 'backend-id': '0', 'backend':
'/local/domain/0/backend/vfb/50/0'} to /local/domain/50/device/vfb/0.
[2008-11-20 10:43:02 16111] DEBUG (DevController:120) DevController: writing
{'vncunused': '1', 'domain': 'hvm', 'frontend':
'/local/domain/50/device/vfb/0', 'uuid':
'ae2833f3-19eb-8db8-edbf-2c7a4c654ffa', 'vnclisten': '0.0.00', 'state': '1',
'online': '1', 'frontend-id': '50'} to /local/domain/0/backend/vfb/50/0.
[2008-11-20 10:43:02 16111] INFO (XendDomainInfo:1433) createDevice: vbd :
{'uuid': '4c32c5b6-def4-d808-46fd-259083eaa2e0', 'bootable': 1, 'driver':
'paravirtualised', 'dev': 'hda', 'uname':
'file:/root/OVM_EL5U1_X86_HVM_4GB/system.img', 'mode': 'w'}
[2008-11-20 10:43:02 16111] DEBUG (DevController:118) DevController: writing
{'backend-id': '0', 'virtual-device': '768', 'device-type': 'disk', 'state':
'1', 'backend': '/local/domain/0/backend/vbd/50/768'} to
/local/domain/50/device/vbd/768.
[2008-11-20 10:43:02 16111] DEBUG (DevController:120) DevController: writing
{'domain': 'hvm', 'frontend': '/local/domain/50/device/vbd/768', 'uuid':
'4c32c5b6-def4-d808-46fd-259083eaa2e0', 'format': 'raw', 'dev': 'hda', 'state':
'1', 'params': '/root/OVM_EL5U1_X86_HVM_4GB/system.img', 'mode': 'w', 'online':
'1', 'frontend-id': '50', 'type': 'file'} to /local/domain/0/backend/vbd/50/768.
[2008-11-20 10:43:02 16111] INFO (XendDomainInfo:1433) createDevice: vif :
{'bridge': 'xenbr0', 'mac': '00:16:3E:40:F6:58', 'type': 'ioemu', 'uuid':
'33f63ceb-c077-d4f8-8f56-d4ffb9395436'}
[2008-11-20 10:43:02 16111] DEBUG (DevController:118) DevController: writing
{'state': '1', 'backend-id': '0', 'backend':
'/local/domain/0/backend/vif/50/0'} to /local/domain/50/device/vif/0.
[2008-11-20 10:43:02 16111] DEBUG (DevController:120) DevController: writing
{'bridge': 'xenbr0', 'domain': 'hvm', 'handle': '0', 'uuid':
'33f63ceb-c077-d4f8-8f56-d4ffb9395436', 'script':
'/etc/xen/scripts/vif-bridge', 'mac': '00:16:3E:40:F6:58', 'frontend-id': '50',
'state': '1', 'online': '1', 'frontend': '/local/domain/50/device/vif/0',
'type': 'ioemu'} to /local/domain/0/backend/vif/50/0.
[2008-11-20 10:43:02 16111] INFO (image:453) spawning device models:
/usr/lib/xen/bin/qemu-dm ['/usr/lib/xen/bin/qemu-dm', '-d', '50', '-vcpus',
'1', '-boot', 'c', '-serial', 'pty', '-acpi', '-domain-name', 'hvm', '-net',
'nic,vlan=1,macaddr=00:16:3E:40:F6:58,model=rtl8139', '-net',
'tap,vlan=1,ifname=tap50.0,bridge=xenbr0', '-vncunused', '-vnclisten',
'0.0.0.0', '-vncviewer']
[2008-11-20 10:43:02 16111] INFO (image:457) device model pid: 17913
[2008-11-20 10:43:02 16111] DEBUG (XendDomainInfo:2119) Storing VM details:
{'on_xend_stop': 'ignore', 'shadow_memory': '9', 'uuid':
'0cb51839-52ae-d4aa-8216-9bf0a1565801', 'on_reboot': 'restart', 'start_time':
'1227148982.39', 'on_poweroff': 'destroy', 'on_xend_start': 'ignore',
'on_crash': 'preserve', 'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail':
'1', 'image': '(hvm (kernel /usr/lib/xen/boot/hvmloader) (acpi 1) (apic 1)
(boot c) (device_model /usr/lib/xen/bin/qemu-dm) (display localhost:11.0) (isa
0) (localtime 0) (monitor 0) (nographic 0) (pae 1) (rtc_timeoffset 0) (serial
pty) (stdvga 0) (usb 0) (hpet 0) (vnc 1) (vncconsole 1) (vnclisten 0.0.0.0)
(timer_mode 0) (vncunused 1) (xauthority /root/.Xauthority) (notes
(SUSPEND_CANCEL 1)))', 'name': 'hvm'}
[2008-11-20 10:43:02 16111] DEBUG (XendDomainInfo:923) Storing domain details:
{'console/port': '3', 'name': 'hvm', 'console/limit': '1048576', 'vm':
'/vm/0cb51839-52ae-d4aa-8216-9bf0a1565801', 'domid': '50',
'image/suspend-cancel': '1', 'cpu/0/availability': 'online', 'memory/target':
'1048576', 'control/platform-feature-multiprocessor-suspend': '1',
'store/ring-ref': '262142', 'store/port': '2'}
[2008-11-20 10:43:02 16111] DEBUG (DevController:118) DevController: writing
{'state': '1', 'backend-id': '0', 'backend':
'/local/domain/0/backend/console/50/0'} to /local/domain/50/device/console/0.
[2008-11-20 10:43:02 16111] DEBUG (DevController:120) DevController: writing
{'domain': 'hvm', 'frontend': '/local/domain/50/device/console/0', 'uuid':
'b5cbb9a8-20ea-3123-4146-664c8cde5b54', 'frontend-id': '50', 'state': '1',
'location': '3', 'online': '1', 'protocol': 'vt100'} to
/local/domain/0/backend/console/50/0.
[2008-11-20 10:43:02 16111] DEBUG (XendDomainInfo:1007)
XendDomainInfo.handleShutdownWatch
[2008-11-20 10:43:02 16111] DEBUG (DevController:151) Waiting for devices vif.
[2008-11-20 10:43:02 16111] DEBUG (DevController:156) Waiting for 0.
[2008-11-20 10:43:02 16111] DEBUG (DevController:590) hotplugStatusCallback
/local/domain/0/backend/vif/50/0/hotplug-status.
[2008-11-20 10:43:02 16111] DEBUG (DevController:590) hotplugStatusCallback
/local/domain/0/backend/vif/50/0/hotplug-status.
[2008-11-20 10:43:02 16111] DEBUG (DevController:604) hotplugStatusCallback 1.
[2008-11-20 10:43:02 16111] DEBUG (DevController:151) Waiting for devices usb.
[2008-11-20 10:43:02 16111] DEBUG (DevController:151) Waiting for devices vbd.
[2008-11-20 10:43:02 16111] DEBUG (DevController:156) Waiting for 768.
[2008-11-20 10:43:02 16111] DEBUG (DevController:590) hotplugStatusCallback
/local/domain/0/backend/vbd/50/768/hotplug-status.
[2008-11-20 10:43:03 16111] DEBUG (DevController:590) hotplugStatusCallback
/local/domain/0/backend/vbd/50/768/hotplug-status.
[2008-11-20 10:43:03 16111] DEBUG (DevController:604) hotplugStatusCallback 1.
[2008-11-20 10:43:03 16111] DEBUG (DevController:151) Waiting for devices irq.
[2008-11-20 10:43:03 16111] DEBUG (DevController:151) Waiting for devices vkbd.
[2008-11-20 10:43:03 16111] DEBUG (DevController:151) Waiting for devices vfb.
[2008-11-20 10:43:03 16111] DEBUG (vfbif:109) skip waiting for HVM vfb
[2008-11-20 10:43:03 16111] DEBUG (DevController:151) Waiting for devices
console.
[2008-11-20 10:43:03 16111] DEBUG (DevController:156) Waiting for 0.
[2008-11-20 10:43:03 16111] DEBUG (DevController:151) Waiting for devices pci.
[2008-11-20 10:43:03 16111] DEBUG (DevController:151) Waiting for devices
ioports.
[2008-11-20 10:43:03 16111] DEBUG (DevController:151) Waiting for devices tap.
[2008-11-20 10:43:03 16111] DEBUG (DevController:151) Waiting for devices vtpm.
[2008-11-20 10:43:03 16111] INFO (XendDomain:1121) Domain hvm (50) unpaused.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|