cnplab / xennet

Xen optimizations for fast packet I/O
Other
11 stars 7 forks source link

ClickOS could not run with VALE and Xen optimization. #7

Open shashibici opened 9 years ago

shashibici commented 9 years ago

Hi,

I would like to use the vale and xennet optimization with clickos. Everything seems good except when I start a DomU with clickso image, it blocked.

Here is the output of 'xl console click0' :

Xen Minimal OS! start_info: 0x1cb000(VA) nr_pages: 0x2000 shared_inf: 0x797df000(MA) pt_base: 0x1ce000(VA) nr_pt_frames: 0x5 mfn_list: 0x1bb000(VA) mod_start: 0x0(VA) mod_len: 0 flags: 0x0 cmd_line: stack: 0x178040-0x198040 MM: Init _text: 0x0(VA) _etext: 0xe163d(VA) _erodata: 0x15e000(VA) _edata: 0x15fbb8(VA) stack start: 0x178040(VA) _end: 0x1ba010(VA) start_pfn: 1d6 max_pfn: 2000 Mapping memory range 0x400000 - 0x2000000 setting 0x0-0x15e000 readonly skipped 0x1000 MM: Initialise page allocator for 1e4000(1e4000)-2000000(2000000) MM: done Demand map pfns at 2001000-2002001000. Heap resides at 2002002000-4002002000. Initialising timer interface Initialising console ... done. gnttab_table mapped at 0x2001000. Initialising scheduler Thread "Idle": pointer: 0x2002002050, stack: 0x1f0000 Thread "xenstore": pointer: 0x2002002800, stack: 0x200000 xenbus initialised on irq 1 mfn 0x11148cf Thread "shutdown": pointer: 0x2002002fb0, stack: 0x210000 Dummy main: start_info=0x198040 Thread "main": pointer: 0x2002003760, stack: 0x220000 sparsing 0MB at 177000 "main" [on_status:205] router id 0 [on_status:206] status change to Running Thread "click": pointer: 0x2002010a00, stack: 0x240000 backend dom 0 Mapping TX rings 0 map errors

It bloked here.

I check the xenstore-ls. The output is :

local = "" domain = "" 0 = "" name = "Domain-0" domid = "0" device-model = "" 0 = "" state = "running" libxl = "" disable_udev = "1" backend = "" console = "" 32 = "" 0 = "" frontend = "/local/domain/32/console" frontend-id = "32" online = "1" state = "1" domain = "click0" protocol = "vt100" vif = "" 32 = "" 0 = "" frontend = "/local/domain/32/device/vif/0" frontend-id = "32" online = "1" state = "2" script = "/etc/xen/scripts/vif-vale" mac = "00:15:17:15:5d:74" bridge = "vale0" handle = "0" type = "vif" feature-netmap = "1" feature-sg = "1" feature-gso-tcpv4 = "1" feature-gso-tcpv6 = "1" feature-ipv6-csum-offload = "1" feature-rx-copy = "1" feature-rx-flip = "0" feature-split-event-channels = "1" feature-netmap-tx-desc = "1024" feature-netmap-rx-desc = "1024" hotplug-status = "connected" 32 = "" vm = "/vm/f59b242c-2c91-4621-b75c-4cbd2a5e2e9d" name = "click0" cpu = "" 0 = "" availability = "online" memory = "" static-max = "32768" target = "32769" videoram = "-1" device = "" suspend = "" event-channel = "" vif = "" 0 = "" backend = "/local/domain/0/backend/vif/32/0" backend-id = "0" state = "1" handle = "0" mac = "00:15:17:15:5d:74" tx-ring-ref0 = "533" tx-ring-ref1 = "532" tx-ring-ref2 = "531" tx-ring-ref3 = "530" tx-ring-ref4 = "529" tx-ring-ref5 = "521" tx-ring-refs = "6" rx-ring-ref0 = "14" rx-ring-ref1 = "13" rx-ring-ref2 = "12" rx-ring-ref3 = "11" rx-ring-ref4 = "10" rx-ring-ref5 = "528" rx-ring-refs = "6" control = "" shutdown = "" platform-feature-multiprocessor-suspend = "1" platform-feature-xs_reset_watches = "1" data = "" domid = "32" store = "" port = "1" ring-ref = "17909967" console = "" backend = "/local/domain/0/backend/console/32/0" backend-id = "0" limit = "1048576" type = "xenconsoled" output = "pty" tty = "/dev/pts/1" port = "2" ring-ref = "17909966" clickos = "" 0 = "" elements = "" control = "" config_name = "script" config = "" 0 = "FromDevice -> Print(ok) -> Discard;\n" status = "Running" vm = "" f59b242c-2c91-4621-b75c-4cbd2a5e2e9d = "" uuid = "f59b242c-2c91-4621-b75c-4cbd2a5e2e9d" name = "click0" image = "" ostype = "linux" kernel = "/local/work/clickos/minios/build/clickos_x86_64" cmdline = "" start_time = "1434735560.25" libxl = "" 32 = "" dm-version = "qemu_xen"

Did I miss anything to make the clickos vm running, using vale?