From da8b7c9f894173c3c18b4aed1e40f955938d1611 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Tue, 18 Aug 2009 22:10:41 +0100 Subject: [PATCH] Add test for recently fixed crash with latest XenD Test case for the fix applied in commit 14435163a086c0bcdff04308077fa46a5fa08bb0 Author: Daniel Veillard Date: Fri Jun 26 18:14:16 2009 +0000 * tests/sexpr2xmldata/sexpr2xml-pv-vfb-type-crash.sexpr, tests/sexpr2xmldata/sexpr2xml-pv-vfb-type-crash.xml: Data files exhibiting the crash * tests/sexpr2xmltest.c: Process new data files --- .../sexpr2xml-pv-vfb-type-crash.sexpr | 83 +++++++++++++++++++ .../sexpr2xml-pv-vfb-type-crash.xml | 34 ++++++++ tests/sexpr2xmltest.c | 1 + 3 files changed, 118 insertions(+) create mode 100644 tests/sexpr2xmldata/sexpr2xml-pv-vfb-type-crash.sexpr create mode 100644 tests/sexpr2xmldata/sexpr2xml-pv-vfb-type-crash.xml diff --git a/tests/sexpr2xmldata/sexpr2xml-pv-vfb-type-crash.sexpr b/tests/sexpr2xmldata/sexpr2xml-pv-vfb-type-crash.sexpr new file mode 100644 index 0000000000..e01ecb9844 --- /dev/null +++ b/tests/sexpr2xmldata/sexpr2xml-pv-vfb-type-crash.sexpr @@ -0,0 +1,83 @@ +(domain + (domid 1) + (bootloader /usr/bin/pygrub) + (on_crash restart) + (uuid a36f6e38-f498-b06c-5fad-b04947392dbe) + (bootloader_args ) + (vcpus 1) + (name test2vm) + (cpus (())) + (on_reboot restart) + (on_poweroff destroy) + (maxmem 512) + (memory 512) + (shadow_memory 0) + (features ) + (on_xend_start ignore) + (on_xend_stop ignore) + (start_time 1250626179.35) + (cpu_time 21.397345341) + (online_vcpus 1) + (image + (linux + (kernel ) + (device_model /usr/lib/xen/bin/qemu-dm) + (notes + (FEATURES +'writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel' + ) + (VIRT_BASE 3221225472) + (GUEST_VERSION 2.6) + (PADDR_OFFSET 3221225472) + (GUEST_OS linux) + (HYPERCALL_PAGE 3225423872) + (LOADER generic) + (PAE_MODE yes) + (ENTRY 3225419776) + (XEN_VERSION xen-3.0) + ) + ) + ) + (status 2) + (state -b----) + (store_mfn 262434) + (console_mfn 262433) + (device + (vif + (bridge virbr0) + (mac 00:16:36:68:9f:5d) + (script /etc/xen/scripts/vif-bridge) + (uuid 6435a5d4-9b8e-1e82-6863-5a6b57a4438d) + (backend 0) + ) + ) + (device (vkbd (backend 0))) + (device + (console + (protocol vt100) + (location 2) + (uuid 2e2c3247-5de1-7bd7-250a-41ab80030e72) + ) + ) + (device + (vbd + (protocol x86_32-abi) + (uuid 8f888aa8-a1c2-0c2b-0c70-4c3b96abe8c8) + (bootable 1) + (dev xvda:disk) + (uname phy:/dev/vg_dom0test/test2vm) + (mode w) + (backend 0) + (bootable 1) + (VDI ) + ) + ) + (device + (vfb + (vncunused 1) + (vnc 1) + (uuid 5f61a036-660c-cdf3-8d20-16164b996e40) + (location 127.0.0.1:5900) + ) + ) +) diff --git a/tests/sexpr2xmldata/sexpr2xml-pv-vfb-type-crash.xml b/tests/sexpr2xmldata/sexpr2xml-pv-vfb-type-crash.xml new file mode 100644 index 0000000000..19c7ab8552 --- /dev/null +++ b/tests/sexpr2xmldata/sexpr2xml-pv-vfb-type-crash.xml @@ -0,0 +1,34 @@ + + test2vm + a36f6e38-f498-b06c-5fad-b04947392dbe + 524288 + 524288 + 1 + /usr/bin/pygrub + + linux + + + destroy + restart + restart + + /usr/lib/xen/bin/qemu-dm + + + + + + + + +