Skip to contentSkip to conversation

QEMU Dbus support - a proposal management API

RFC In review Yuval Kashtan 14 participants 37 messages Dec 10, 2007 – Dec 11, 2007

lore
Share & tools
lore
#0 lore raw

RFC 1/1 QEMU Dbus support - a proposal management API

Hello All,
Attached is a proposed patch which adds DBus support to QEMU. DBus is a standard message bus for linux (
http://www.freedesktop.org/wiki/Software/dbus )
The idea behind this is to allow for external programs such as controlling GUI or HyperVisors to communicate and control QEMU, in a standard manner. Although it is possible to connect to the monitor, an API is more standard, theres no need to parse texts and error messages, no internationalization problems and in general is a much better idea.

Implementation:
This is done by creating a DBus server from QEMU which raise signals and act upon methods.
Methods mainly implement same logic as the current command line options and monitor does.

How to use:
To enable DBus support you'll have to add --enable-dbus when you execure configure script.
Then when you execute QEMU, you'll have to add -dbus-service <service_name> where service_name follows the DBus naming convention ( xxx.xxx.xxx....) To support QEMU configuration through DBus, you'll also have to add -dbus_configuration which will cause QEMU to wait until ConfigDone is called through the DBus interface. this allows external programs time to call DBus methods starting with Config_ which changes configuration (just as the CLI does) thus enabling invocation of QEMU without parameters (beside the DBus ones).
With that, we have implemented a nice python script that reads VM's configuration from INI file.

To compile this you will also have to compile the attached freedesktop.orgdsrv library (it is also attach for those who can't handle GIT) from:
git://people.freedesktop.org/~shaharf/dsrv

Features:
Currently support was added to all important CLI configuration and some online monitor functions (such as connecting and disconnecting usb devices).

configuration methods begins with Config_ prefix and monitor ones with Monitor_.
For a complete list you can just execute qemu and connect with dbus-viewer to see what is supported.

All the dbus handling routines can be found in dbus-monitor.c. I have two different implementations of this:
1) A single threaded version. which comply to the qemu standard of not opening additional threads.
2) A multi threaded version which open an additional, single, thread which handles all the DBus load. I actually believe this version is better as it allows QEMU to continue execution of guest operations even when there are DBus methods/signals to handle, whereas in the first option, DBus is integrated into QEMU mainloop. Also this makes it possible to monitor even during long operations (like monitoring the progress of savevm)

Please comment both on the idea of management API and the proposed implementation.

Attached are:
RFC-QEMU-Dbus.patch - patch file including all necessary changes to qemu. was made against QEMU HEAD as of 23/9 morning. RFC-QEMU-Dbus-Interface.xml - the xml description of the DBus interface that I suggest.
dsrv.tar.gz.txt - the dbus server library.

BR,
Yuval Kashtan,
Qumranet Development Team.

yuval/Dev/qemu-dbus/qemu/configure renamed from yuval/Dev/qemu-cvs/qemu/configure +17 -0
diff -Naur /yuval/Dev/qemu-cvs/qemu/configure /yuval/Dev/qemu-dbus/qemu/configure
@@ -102,6 +102,8 @@
 darwin_user="no"
 build_docs="no"
 uname_release=""
+dbus="yes"
+dbus_service="org.qemu"
 
 # OS specific
 targetos=`uname -s`
@@ -291,6 +293,12 @@
   ;;
   --enable-uname-release=*) uname_release="$optarg"
   ;;
+  --disable-dbus) dbus="no"
+  ;;
+  --enable-dbus) dbus="yes"
+  ;;
+  --dbus-service=*) dbus_service="$optarg"
+  ;;
   --sparc_cpu=*)
       sparc_cpu="$optarg"
       case $sparc_cpu in
@@ -391,6 +399,9 @@
 echo "  --fmod-lib               path to FMOD library"
 echo "  --fmod-inc               path to FMOD includes"
 echo "  --enable-uname-release=R Return R for uname -r in usermode emulation"
+echo "  --enable-dbus            enable DBus monitor service"
+echo "  --disable-dbus           disable DBus monitor service"
+echo "  --dbus-service=service   set the dbus service name"
 echo "  --sparc_cpu=V            Build qemu for Sparc architecture v7, v8, v8plus, v8plusa, v9"
 echo ""
 echo "NOTE: The object files are built at the place where configure is launched"
@@ -714,6 +725,7 @@
     echo "Target Sparc Arch $sparc_cpu"
 fi
 echo "kqemu support     $kqemu"
+echo "DBUS support	$dbus"
 echo "Documentation     $build_docs"
 [ ! -z "$uname_release" ] && \
 echo "uname -r          $uname_release"
@@ -888,6 +900,11 @@
   echo "CONFIG_VNC_TLS_LIBS=$vnc_tls_libs" >> $config_mak
   echo "#define CONFIG_VNC_TLS 1" >> $config_h
 fi
+if test "$dbus" = "yes" ; then
+  echo "CONFIG_DBUS=yes" >> $config_mak
+  echo "#define CONFIG_DBUS 1" >> $config_h
+  echo "#define DBUS_SERVICE \"$dbus_service\"" >> $config_h
+fi
 qemu_version=`head $source_path/VERSION`
 echo "VERSION=$qemu_version" >>$config_mak
 echo "#define QEMU_VERSION \"$qemu_version\"" >> $config_h
yuval/Dev/qemu-dbus/qemu/dbus/monitor-dbus.c renamed from yuval/Dev/qemu-cvs/qemu/dbus/monitor-dbus.c +1506 -0

1,506 lines not on this page · raw message

yuval/Dev/qemu-dbus/qemu/dbus/monitor-dbus.h renamed from yuval/Dev/qemu-cvs/qemu/dbus/monitor-dbus.h +60 -0

60 lines not on this page · raw message

yuval/Dev/qemu-dbus/qemu/error.c renamed from yuval/Dev/qemu-cvs/qemu/error.c +27 -0
diff -Naur /yuval/Dev/qemu-cvs/qemu/error.c /yuval/Dev/qemu-dbus/qemu/error.c
@@ -0,0 +1,27 @@
+#include "error.h"
+#include "vl.h"
+
+char g_szLastError[1024];
+
+void SetLastError(char *szErrorMsg) {
+	strcpy (g_szLastError,szErrorMsg);
+}
+
+void SetLastError_vprintf(const char *fmt, va_list ap)
+{
+    char buf[4096];
+    vsnprintf(buf, sizeof(buf), fmt, ap);
+    SetLastError(buf);
+}
+
+void SetLastError_printf(const char *fmt, ...)
+{
+    va_list ap;
+    va_start(ap, fmt);
+    SetLastError_vprintf(fmt, ap);
+    va_end(ap);
+}
+
+const char *GetLastError() {
+	return g_szLastError;
+}
yuval/Dev/qemu-dbus/qemu/error.h renamed from yuval/Dev/qemu-cvs/qemu/error.h +27 -0
diff -Naur /yuval/Dev/qemu-cvs/qemu/error.h /yuval/Dev/qemu-dbus/qemu/error.h
@@ -0,0 +1,27 @@
+#include "error.h"
+#include "vl.h"
+
+char g_szLastError[1024];
+
+void SetLastError(char *szErrorMsg) {
+	strcpy (g_szLastError,szErrorMsg);
+}
+
+void SetLastError_vprintf(const char *fmt, va_list ap)
+{
+    char buf[4096];
+    vsnprintf(buf, sizeof(buf), fmt, ap);
+    SetLastError(buf);
+}
+
+void SetLastError_printf(const char *fmt, ...)
+{
+    va_list ap;
+    va_start(ap, fmt);
+    SetLastError_vprintf(fmt, ap);
+    va_end(ap);
+}
+
+const char *GetLastError() {
+	return g_szLastError;
+}
yuval/Dev/qemu-dbus/qemu/Makefile.target renamed from yuval/Dev/qemu-cvs/qemu/Makefile.target +34 -0
diff -Naur /yuval/Dev/qemu-cvs/qemu/Makefile.target /yuval/Dev/qemu-dbus/qemu/Makefile.target
@@ -368,6 +368,19 @@
 
 # must use static linking to avoid leaving stuff in virtual address space
 VL_OBJS=vl.o osdep.o readline.o monitor.o pci.o console.o loader.o isa_mmio.o
+ifdef CONFIG_DBUS
+CPPFLAGS+=-I$(SRC_PATH)/dbus
+VL_OBJS+=/usr/local/lib/dsrv.o
+
+DBUS_SERVER := monitor-dbus
+DBUS_SERVOBJ :=$(DBUS_SERVER).o
+VL_OBJS+=$(DBUS_SERVOBJ)
+
+error.o: error.c
+	$(CC) $(OP_CFLAGS) $(CPPFLAGS) -c -o $@ $<
+
+VL_OBJS+=error.o
+endif
 VL_OBJS+=cutils.o
 VL_OBJS+=host-utils.o
 VL_OBJS+=block.o block-raw.o
@@ -659,6 +672,27 @@
 %.o: %.c
 	$(CC) $(CFLAGS) $(CPPFLAGS) $(BASE_CFLAGS) -c -o $@ $<
 
+ifdef CONFIG_DBUS
+
+PKGCONF ?= pkg-config
+BINDTOOL ?= dbus-binding-tool
+
+DBUS_CFLAGS +=-I$(SRC_PATH)/dbus/
+DBUS_CFLAGS += $(shell $(PKGCONF) --cflags dbus-1)
+DBUS_LDFLAGS += $(shell $(PKGCONF) --libs dbus-1)
+LIBS += $(DBUS_LDFLAGS)
+
+DBUS_SERVOBJECT := qemu_mon
+VL_OBJS+=$(DBUS_SERVOBJ)
+
+$(DBUS_SERVOBJ): dbus/monitor-dbus.c $(DBUS_SERVHDR)
+	$(CC) $(CFLAGS) $(CPPFLAGS) $(BASE_CFLAGS) $(DBUS_CFLAGS) -c -o $@ $<
+
+#$(DBUS_SERVHDR): dbus/$(DBUS_SERVER).xml
+#	 $(BINDTOOL) --prefix=$(DBUS_SERVOBJECT) --mode=glib-server --output=$@ $<	
+
+endif
+
 %.o: %.S
 	$(CC) $(CPPFLAGS) -c -o $@ $<
 
yuval/Dev/qemu-dbus/qemu/monitor.c renamed from yuval/Dev/qemu-cvs/qemu/monitor.c +4 -4
diff -Naur /yuval/Dev/qemu-cvs/qemu/monitor.c /yuval/Dev/qemu-dbus/qemu/monitor.c
@@ -199,7 +199,7 @@
     help_cmd(name);
 }
 
-static void do_commit(const char *device)
+void do_commit(const char *device)
 {
     int i, all_devices;
 
@@ -378,7 +378,7 @@
     return 0;
 }
 
-static void do_eject(int force, const char *filename)
+void do_eject(int force, const char *filename)
 {
     BlockDriverState *bs;
 
@@ -420,7 +420,7 @@
     }
 }
 
-static void do_change(const char *device, const char *target)
+void do_change(const char *device, const char *target)
 {
     if (strcmp(device, "vnc") == 0) {
 	do_change_vnc(target);
@@ -873,7 +873,7 @@
     return -1;
 }
 
-static void do_send_key(const char *string)
+void do_send_key(const char *string)
 {
     char keybuf[16], *q;
     uint8_t keycodes[16];
yuval/Dev/qemu-dbus/qemu/monitor.h renamed from yuval/Dev/qemu-cvs/qemu/monitor.h +10 -0
diff -Naur /yuval/Dev/qemu-cvs/qemu/monitor.h /yuval/Dev/qemu-dbus/qemu/monitor.h
@@ -0,0 +1,10 @@
+#ifndef __monitor_h
+#define __monitor_h
+
+void do_commit(const char *device);
+void do_eject(int force, const char *filename);
+void do_change(const char *device, const char *filename);
+void do_send_key(const char *string);
+
+#endif // __monitor_h
+
yuval/Dev/qemu-dbus/qemu/vl.c renamed from yuval/Dev/qemu-cvs/qemu/vl.c +233 -53

536 lines not on this page · raw message

yuval/Dev/qemu-dbus/qemu/vl.h renamed from yuval/Dev/qemu-cvs/qemu/vl.h +22 -0
diff -Naur /yuval/Dev/qemu-cvs/qemu/vl.h /yuval/Dev/qemu-dbus/qemu/vl.h
@@ -38,6 +38,19 @@
 #include <fcntl.h>
 #include <sys/stat.h>
 
+#define PHYS_RAM_MAX_SIZE (2047 * 1024 * 1024)
+
+#define MAX_NET_CLIENTS 32
+
+#if defined(TARGET_SPARC)
+#define MAX_CPUS 16
+#elif defined(TARGET_I386)
+#define MAX_CPUS 255
+#else
+#define MAX_CPUS 1
+#endif
+
+
 #ifndef O_LARGEFILE
 #define O_LARGEFILE 0
 #endif
@@ -329,6 +342,7 @@
     QEMUBH *bh;
 } CharDriverState;
 
+void qemu_chr_close(CharDriverState *chr);
 CharDriverState *qemu_chr_open(const char *filename);
 void qemu_chr_printf(CharDriverState *s, const char *fmt, ...);
 int qemu_chr_write(CharDriverState *s, const uint8_t *buf, int len);
@@ -412,6 +426,7 @@
 void qemu_send_packet(VLANClientState *vc, const uint8_t *buf, int size);
 void qemu_handler_true(void *opaque);
 
+VLANState *get_first_vlan (void);
 void do_info_network(void);
 
 /* TAP win32 */
@@ -549,6 +564,9 @@
 void cpu_save(QEMUFile *f, void *opaque);
 int cpu_load(QEMUFile *f, void *opaque, int version_id);
 
+int mgmt_savevm(const char *name);
+int mgmt_loadvm(const char *name);
+int mgmt_delvm(const char *name);
 void do_savevm(const char *name);
 void do_loadvm(const char *name);
 void do_delvm(const char *name);
@@ -1158,6 +1176,8 @@
 
 #include "hw/smbus.h"
 
+void acpi_lid_status(uint8_t status);
+
 /* acpi.c */
 extern int acpi_enabled;
 i2c_bus *piix4_pm_init(PCIBus *bus, int devfn, uint32_t smb_io_base);
@@ -1384,6 +1404,8 @@
 
 #define VM_USB_HUB_SIZE 8
 
+int usb_device_add(const char *devname);
+int usb_device_del(const char *devname);
 void do_usb_add(const char *devname);
 void do_usb_del(const char *devname);
 void usb_info(void);

<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node>
<interface name="org.freedesktop.DBus.Introspectable">
<method name="Introspect">
<arg name="xml" type="s" direction="out"/>
</method>
</interface>
<interface name = "org.qemu.Configuration">
<method name = "Monitor_system_powerdown">
</method>
<method name = "Monitor_system_reset">
</method>
<method name = "Monitor_send_key">
<arg name = "Keys" type = "s" direction = "in" /> <arg name = "ReturnCode" type = "i" direction = "out" />
</method>
<method name = "Monitor_delvm">
<arg name = "DeviceName" type = "s" direction = "in" /> <arg name = "ReturnCode" type = "i" direction = "out" />
</method>
<method name = "Monitor_loadvm">
<arg name = "DeviceName" type = "s" direction = "in" /> <arg name = "ReturnCode" type = "i" direction = "out" />
</method>
<method name = "Monitor_savevm">
<arg name = "DeviceName" type = "s" direction = "in" /> <arg name = "ReturnCode" type = "i" direction = "out" />
</method>
<method name = "Monitor_change">
<arg name = "DeviceName" type = "s" direction = "in" /> <arg name = "Filename" type = "s" direction = "in" />
</method>
<method name = "Monitor_eject">
<arg name = "Filename" type = "s" direction = "in" /> <arg name = "Force" type = "i" direction = "out" />
</method>
<method name = "Monitor_quit">
</method>
<method name = "Monitor_commit">
<arg name = "DeviceName" type = "s" direction = "in" />
</method>
<method name = "Config_vnc">
<arg name = "Display" type = "s" direction = "in" />
</method>
<method name = "Monitor_LoadVM">
<arg name = "Filename" type = "s" direction = "in" />
</method>
<method name = "Monitor_RemoveParallel">
<arg name = "DeviceID" type = "i" direction = "in" />
</method>
<method name = "Monitor_AddParallel">
<arg name = "DeviceName" type = "s" direction = "in" /> <arg name = "ReturnCode" type = "i" direction = "out" />
</method>
<method name = "Monitor_RemoveSerial">
<arg name = "DeviceID" type = "i" direction = "in" />
</method>
<method name = "Monitor_AddSerial">
<arg name = "DeviceName" type = "s" direction = "in" /> <arg name = "ReturnCode" type = "i" direction = "out" />
</method>
<method name = "Config_monitor">
<arg name = "DeviceName" type = "s" direction = "in" />
</method>
<method name = "Config_BIOSDir">
<arg name = "Directory" type = "s" direction = "in" /> <arg name = "ReturnCode" type = "i" direction = "out" />
</method>
<method name = "Config_AddNet">
<arg name = "Parameters" type = "s" direction = "in" /> <arg name = "ReturnCode" type = "i" direction = "out" />
</method>
<method name = "Config_SetCdrom">
<arg name = "ImageName" type = "s" direction = "in" /> <arg name = "ReturnCode" type = "i" direction = "out" />
</method>
<method name = "Monitor_SetBlockDevice">
<arg name = "Index" type = "u" direction = "in" /> <arg name = "ImageName" type = "s" direction = "in" /> <arg name = "ReturnCode" type = "i" direction = "out" />
</method>
<method name = "Monitor_SetFloppy">
<arg name = "Index" type = "u" direction = "in" /> <arg name = "ImageName" type = "s" direction = "in" /> <arg name = "ReturnCode" type = "i" direction = "out" />
</method>
<method name = "Config_SoundHWState">
<arg name = "Name" type = "s" direction = "in" /> <arg name = "State" type = "i" direction = "in" /> <arg name = "ReturnCode" type = "i" direction = "out" />
</method>
<method name = "Config_smp">
<arg name = "CPUs" type = "u" direction = "in" /> <arg name = "ReturnCode" type = "i" direction = "out" />
</method>
<method name = "Config_ramsize">
<arg name = "MegaBytes" type = "u" direction = "in" /> <arg name = "ReturnCode" type = "i" direction = "out" />
</method>
<method name = "Config_snapshot">
<arg name = "State" type = "u" direction = "in" />
</method>
<method name = "Config_boot">
<arg name = "DeviceLetter" type = "y" direction = "in" /> <arg name = "ReturnCode" type = "i" direction = "out" />
</method>
<method name = "usb_del">
<arg name = "DeviceName" type = "s" direction = "in" /> <arg name = "ReturnCode" type = "i" direction = "out" />
</method>
<method name = "usb_add">
<arg name = "DeviceName" type = "s" direction = "in" /> <arg name = "ReturnCode" type = "i" direction = "out" />
</method>
<method name = "Config_daemonize">
<arg name = "IsDaemnoize" type = "s" direction = "in" />
</method>
<method name = "Config_SetNoReboot">
<arg name = "IsNoReboot" type = "b" direction = "in" />
</method>
<method name = "Config_SetNoGraphic">
<arg name = "IsNoGraphic" type = "b" direction = "in" />
</method>
<method name = "Config_SetNoFDBootCheck">
<arg name = "IsNoFDBootCheck" type = "b" direction = "in" />
</method>
<method name = "Config_SetNoQuit">
<arg name = "IsNoQuit" type = "b" direction = "in" />
</method>
<method name = "Config_SetNoACPI">
<arg name = "Is_NoACPI" type = "b" direction = "in" />
</method>
<method name = "Config_Set_std_vga">
<arg name = "Is_std_vga" type = "b" direction = "in" />
</method>
<method name = "Config_SetFullScreen">
<arg name = "IsFullScreen" type = "b" direction = "in" />
</method>
<method name = "Config_SetLocaltime">
<arg name = "IsUTC" type = "b" direction = "in" />
</method>
<method name = "Config_UsbState">
<arg name = "State" type = "b" direction = "in" />
</method>
<method name = "ConfigDone">
</method>
</interface>
<interface name = "org.qemu.Debug">
<method name = "SetLogLevel">
<arg name = "LogLevel" type = "i" direction = "in" />
</method>
</interface>
</node>

BZh91AY&SY�O�M������!����������� �}�*��wh�Ͼ�R����� ��Iw{ww��ƻ��7׷�v^�ݕ^��{�g3���=m��aEr�vF��:��=�}>�.�ti�c�W'G$%MU��h/������������oo�;:_]{����׀��y��4;�Z�������+v���=����=���Ϟo�s�����׶_3n�wm���י}����>� }��t�sw�����������{�[����R��N���]�����C�zԧu����.��c��׻���U ��[�x��[�)�֟Z����R{�k�%{ޭ�����s�y��ݷ�wV^��uJ5�-ʗ])w]����l���C3�K�r>�;+,7w�� |�(������T��Om�h��;�����q{�(2��1nI]�)�4}>�����[��6}��]��@�Ԍw�מ��}��K���3��RC{n�ny+�!)��!���)�S�O�O�
6P0�����JhB��i�mS�6����h�mF��4H$DS�dM���6Sѥ7�F�@�)���1O MOM5O�T��i�{D�~��M�yG�hD� �S����h�y)�����M��(x�!�4b4�aBh!24 ���7�4�
�S�H�j=54��������u����W?�N�U�LΖD����E�v � ?5|m���z +!4A4�t#5���DW�1 *��Y2Es�1]D��@�b
@ LP�A��1�UTW�E�$@?�Ѩ�s o��&"I"�� H����IQCDEr�.#�l��H�\���rV�j�)%`�(B��� 8������# 22j����ry��H�����#X�@ !,�ң�,S
"�&�������o�E�t'���F�T4����DIqK����Q���B4G ��������6�I��13D�4�o����"HH����Y5"CQ�2R��&L �G�x��L�V'ϼ|�Ħ�淶���A������ �A����6�b���h� MC@%��F��R�k���0L�*
���N� >o��v]
�����0ӛeu�(�K�.c1Ƥ��(1��x�WnO�u�RF��O��,���'������s$��gM~7����"����v�ny��bI/@��F`�!��(�G���m�� :�@u�(�'�o�K�,�G���Xc�e��>����O3#�R��Lb�$���TBw�7�B���H�����0V%�=My����e�W_��i�&��]�_� h�H<2D50Rj_l����ao� �d] %�DMcP�U��4�;�un" ̂��$��"�1[bCg��m ���:�M1Rf� �F����K�\|}������_��{>S�cc����\�16�����C(6�L5�%4��Ȧ��y��(֑���U�� <�5�n,��j�DD�F1�ٸ�7�����Gx��ֳ7��z�-ၑ��TL^e4�1#y�1,��1� 5�D����}�����w��OB��UU�0"O���NsSADA�y(�����X��ƅ�c�LF�?:y/K�q�ᘞ��ґ��_ vU��j'˛��xc�t��ј��=l���1��$�j16dLY���\����ΖQo�h
��f9A\e�1UQUN#Pd��j�� ��2"��DU;+'a $/TgK�`T��LQ�\�X��<3<��&} ��ȣ6 ��6-)C�IJpcކ�8R�acM�k �[ui���A�M��Bٶ[�+LC�Z��
��>Q`i���Z �L�>=��^}"���ʱ̊���}>�~c�|���S�c����=�
�4�)��2� �3粊$�y�R��G�$|$�N��U^�q޽��ځxݓ��De�& wP�'��zg*��E&�ƶ���H*����JP�3&�F3 �K=�{�@��� ���S�D|+�<�6��$�@�}
�����D(`�* �i��$|墼����C�:x�HO�giB�j�1m�hYs��Q(aPi�p�� ��P�H�ê���r�$-)� ��7��W/���4�&?�@�JAz�|�h���O�{������۪���7��;^�sg�~�Xf�\8΀�:V�ᵋ���~'��<�թy׷j-8��W��������|��9��t�*�֘���
}"�OE�q��gM/�S��Cy���Ma�{<7=�kvu��ud*�y�絙+U�����7_�GDn.6�Y���kSku�����^��� � ��H{��_�xr� �V���uҲ��x/�D�+� �qSYy#U���c�,��J]Lk�z�-]3?�W�������@��  AAke��?2��3_g��|,z;��O��e�p����5���0�kPd���Q�����)��:������ #�*�f!�?�?��\9s7���S�QB��Q@9U0"� ",�閎�� 'Jٵ���t��I5ve�G)d��A��a���D�q��]��~�.��ٟ��u7�A��yJ���u�f���>����w轲�����e
C��YY����N�o5�;� ��=���yR�HhA#�֣�g��S¼��$D�ⵆ&���dS@#�0�! И��;dt�`� ��L)ī�R���eW��@�Ei�= �H^�QD]�m�/��O�(������|>��?��[�_�پ� >�C�9rg?I l�w_���E@���K.^����|�.lқA�������PF_o�%�C�ݻ��4�8���Q�T b�E@���w�d3�_���IT�_��M+�M���ͪM$�r�H����Q����s�x"r� ��?rI��j1�og_��c�fB5������^C�+�]� �2�'��(�D|�
�):6z���,� C�n�jN��!���0�ٜ� �SXcV vG�D;z�)g����bl3I�8��ADNP���Kz|?�tD��&1BtN�tf�D6�6H*jC1s�^ҖU�CbP ܃Q:�üe��������z���h-��ұ������ �g ��4������A���#�5R9q���ؿ��ߴp�@�q��΁qg�0#q������Ԩ��_C���ɾiM�K���eJX,��^��rS;�+��zQ*o��r��3�T�FHi�F��N��Bb34�p�8'�w
S_��ŋ�� 0�7�rɿ���S�Y�O�ȶ2���{��%�1�V��(>kK[��,�u�E6 ���]�HB��3N� ��պ����܉�Gѐ�47���@8�q�����(�S87H�H ���C�oc8tl���޳��O���9˕���w���i��7P� Q�i7���!��!��"=T�#���$z^Z��D���G=0d &I���+�ʖᢪ]|e�e�~�)F4{�Ӧ?:��r<*��H�lEa�MU�L�&�&�����8@|O+~�]Q�E+�Z̶��4Rh������o�V���t2��4cf�Mvd��O@*E�:�q���3�'�����}���O����|��.?_��[t~w~׳1� �,X x�#⺡#�<�ۂ����y��Ӱ�nOZ�[�x�u���l��"�66�2oT ��m�E�����C�@�+n҄��2#k�V��~�
St���ʐ燱^K���!�۫xm��fw:Ƌ�pG��/�����/�&6��
%D��z<��zs��l��YN�����S�Q��x����%�S�]�`9U�ũ��'��I�,���i�^##�Z�+H9AHŰ���e��5���t���b��7��4熸��c���O������#,v\O����O��y���w�A�G��ݯ:WZ���f��(�����؛�i 9�~�/u_q�����}wuK��vk����]��B)�wn��<6�@���$�#�Oqs����8 ���#j����� ��2 2�g��Å��j��.��T���z~F��/i���~g� Q#�$�a���1���D2ƇGoq��3ƌ��,��Gis�vup��r�Jd;t�%��M�Y�mO�i��;#�L�-U%��i=~�`�����������u���_7/��<��&���"��u�=�b��<�s���Vmt���༉��g����>���_�&ng��qɠ�m)�KP�G��|d��������}t������@S!�8����n#@-�������X Bceì��� �Q�$�8�Η�N���䥶K��� y4���[%��w�C�h��x��>��f�M��ޙL�O�klt;�:��2K]�M{! �v�B��Np~�(��K�dqdĕDx����Q�9T�sS�{�60��`e�0��[D�8Evu����yt���?�ұ<*@�
Zq8�������t/yD$xNӑ�����ψdTU I% 0�� �΃R�r��~�����I�%���:��� �MV��\� �~1=w��J��>9�>t�Z!���}�D6`}�B�<�;�����:i���d�0���s�2���9���y��8tl�;�4�ao�ݞ��z�����܊�Thdo/�q�&�ɇ�&"���|�TM�!Ƚ%�zFz�s��u��{ʇ
�6o�c)�S�X�Az0۾��G��Y�u��~C��FO:�W+DSX,d�(# $��d��;��0 ��_.��^��iz�FB���C�G����\v}&r�T�S���*{ ͍��a:f@4���������s)� �*� .s�hׂ��&��z���F��LH�P�0BI�fFY~����P�̼�J�o8_�[/��;g��i$�,�Wlo���1��s��g�Ѭ1�:_���4���c43�b�d���c��~�36�YJ�1βg����L��Rx[3�����㴦*�+>��&������3 X%J�4|qb���kT[-��YQ�Ȩ�1��<�hJ�_�|�S�f� 4�N����gើ1�H�\�������f��¹�c-mest�
zW_LϿ���k��?���7�夾q}nmozȠ+�{�����2AƝ�a;�j?*����h� TR<>Ա2W���Vbȡ����"-�"�S9�mޯ�&��DĦ�!��޸fx&|7��~�JL�w��P��4!x�^=i�t%|-!i��2���˨�v�it��<�ޯ^�׮�wʫ�\{0��_�<���\kF�<I^=/��B�i�*+5ef� }��Y=_���Y�i�%J�?-�a�L��W�;�n�vR���AK�nD��~� O��\��Wtw)��ꊹ|G�����␩m������<� �8�_Z`{���H�J^Q*�J�0��ܛx��am�j���jE��j��yC*��ԙd�I "Y%9������Պ��rvQ�h��3�s�]����t�?:��X|�8\8�Ev��;e�N��hǴ���]��L w@a=�<�!�A
��9&'���/��ϒ��s��S{~�̦�^>׳�>��0ߍi&��ya,C#MՑ.K'�U\C����O������V���^�U!^��r�i�� ��H�x� .3�cG��:ͺq^����4Ƿ a�s���1�� ���V���n��V\�Vi<���ʦ��Ť`��2֦��r�3�����7�#�{>�qi��'Sd����q�n����a{�c���f��¬���u) j����@G �:5�o�b�6^{���|v���%/����Q��9GFX�Y~�i�jG�~�=C,�%m�ϨPSJT�\7ݻ?��GF�M�@�!"��X���M0'�������?'��%);�����޺"hޏb�8f��F��rh#}����R��K�s�M��$�zt��Z6.�>J���l��Xo���o�Y8�
m
J�;�D�2]�fEg�a,���mσ����}����&���p��&��MNn�6rY�$a�(vJ�B.�Hy�nS'�u�&%�q���H3�"�.Vu׺�2�R��P�����NR�G�DZ
�O�/�Dr� H��֭H
4����P����i� -#�۷O=�u9ʨ`* vl0��h���*�67��:��&}��5�>h'�'̌�Nx����9���ٽ)����/b�ȸp�ld��:z��|;��̃�K��"+�Ɲ�*ƫmK�ɀ�۷$
ܡ�1P�9- C�02��;m����MǸ��(ʁ���՛}P��̕ ��������v�3Q��Tg��F~�?]+>���|3��D<��J�'�:�<�J�[�J4�*�O��eN����,�Ok�gGI��q$��J�t���eqwk�LKۤJG�%Q�} p��� ���T�3�<��i����y��4ۦ���D��}�U��<�Z&�u��Jzʝ���J�.:,0�#�e����C�f�D��3u�%��*���:c� �Q���hd,{�u�� �WȼGn䑚� 5u�IW����?=���x��_��ol��}��i}<�7�����D��$����у<&EJ.jME=����&�(�
jRq���8Z��M���'$g�5����s�Q�F/6S�jt���A�;z�.V��>���jHr[k��8ޞ������v��Tc2���f ����t;��T��1��7���ϵ��Y�…��(� �
�Q��I��/������z��^=xvf��i�!�u�Kl��9p��e�:X���)g�T���آ����f�6�� 4�MŎO.O69�lar«����<#Y����0�Q� 8��.��a�Y�� K�aL�C�[P���'/�30@ �^#*U��#+�|8��̞i�u�?��n��h����Wt`-��zK_��<lr0�� ҈ 1��0Nԧ��Q��C������د�f�=�� �u��ã��̝5S{�mbI|��^T�O�)EiX�V���lU=DU�^�d��K��>Čo��_JI�8x�>��aL/��K��8���=N����/��(����I�1ⱉ�fyL $?+�$ ��N89����a�V}Q�Ud����5��zlnAI(�篽�w�C�9;���s{�;���|u��u����Lv�7��0%�T�6�rf 1'��|I�zct�燥
��w �r��}u�q��GG�h葙�0ͬ@� �w�ˑi��4f��%7��6�3��]?^�N���a�G��m%t~�k���Qļ�/�Љ)P��G\S�M���ϥ�H�ø����Q|G=L?^14[6پ?�ʫ;,�*Oԉ���*s����' �59J�8�&��
�4�^s��7�f#�� ��|^�fV�, ׬8͕b �~ij0�M���w�ۆor�����jj�{�疻����@�g<��nye����
��3�\�߱��~q�/z��@�.=v�Օ�O���)��Xr%+!�����H�¬��j� �a!&�ۺ��S �܏���O�*<� qNF�����D�/_�����=Aˠ/ c���ǭ��NJ,��j���P0�&��u>��(o�q� ,�ǜ�
I�%G1OXS�2�`��&����܆I��^�A��o���g�Y��8�>�~0v�F�fe��c}���;o|���&�W �&�ڦe�_Z�R�~Y�����}���ѝ�����]7�{� (������-�@��H���7��,^-yΨ�<\{_X��W���<�k�C�Vw������JI�Đ_ۊ2��f�Աn��F����U�ð����|��=p����m�/W���Zx�
��{�C3 ��-6�:�0h���"Wi��F��ZkxW��p����-����? �p�&e��|�m+�<�r��_^�W��f`ȴZ-���O��g����}y�0GS�o���c|�g{��1����Y4ٲ c���~�O� B��Zʨi"fu�=�B2|~U���}~e�ԇ5j�嗺~$٧e�N���_��t�6�xcy.H�(�? �����>�������Ik�����m�z��f�ӭ�Jw�h����S�O�Ç8�1p�-M�=�{P9��7��x�ظ��̜~�����u���|i����D�}�-�.�7��
1p������\���*n*�97d�G�*T�o���M �Shc,�M%r �Lf"���Ò��3}Y\ca�Iw�w#���S��x;���bY�F | �\ ]>\�9�d�vX9�W`2��_�\����6 S$Z� ��&M}ۊ�fԢ�J�i�Ծ�1*֨���bݽ7�Xറm����R� ��k���ۖ��(��S�t�H����f�v�2�Ѡ�=��NMtDtM�6��$���� i-����fmx�����T֩�x��3@f#�H�����b� JP�" p��[_�'F�a�x]~,�S��,��?$�;}^�V�4��̑=������"hfI*&w2p�N�P12�C?Ǿ�������������i�;*���5�h�]i����}<����{��{~6�Vθ�����^�:�;����C�w��șfՐ��:I #�q�9�hJ�Qb�l7A}v����S�2�oN���y}���e�K���t�r�qXs�.�.��RAd-(N���5�n�ɨjFG�H=>S�Ouר�t���}ئ&ۃ�K�����Y��� Nq��Ŏ8~�ٯ:�L��8|�[O>YKt�aV/��堾[�SK��r��c^�� ����Ҹ�Q�gޛ�f� ��Cwbm���k�Kq6�ޕRM�u�m�-�S;�����YJ��w�|�&��u �7,.�=�հ�\�]+��\T�>�*$f�?W�j�
��i��x/��%:�'&��/�;i~R3�f����~O�9����Q�����_g�zP~�b5�֪,�ܿ����^�(o����J��0��[߯7��2��+�������iv\jz�]���/Hhx7��}��d\QLJπ����~�r/��iߏ��F��~��J:��DZ���N��S��_v�x�- �)��3 h���$ĕ������3qQ g�#��Q"�i�Α��g5M�<ơ�T��,�=cs��f��G4������x\��m�y<�~{kɽq8��7)�g."׊��)���t2���kQ��0�:ֺm��4�m�C���gS�G8֪���G���*���c��ۍ�ۿ6q�r�r&��DJ�Ļ�7�������q��l{�'ӷ���#�,�S��%��(�mv�k��ֶu۞�� �]���Q���y፣�_�xr}(������rpF�&���b�u��+V��:_������������`��7�����5��ǎ5S��dQ�9�f�\+^�����b��M��{���]����1$#'4�t^�6���fZS3~����껾�|������m�}�%�>�y.�V�{�Y5fy�%r;C`C���"�64̓b�&&�H�#AHY�2/������O���!�[f>���l�pq ?GSų�v��j��#�_�o�#�cW�1���U9�3b�0C�-:"��W.�P��v����q�> 鰍#t1ʈUG2�f�HF��S�I��Kt�� �|O��Sk�v�[~����n?��Սc�g�4����՜�ގ���N��3�$���-q�;=k�k�v-�%�3�9cl�#�����N�^�uN�n\7T���(S�0ya����C�d��Sƒa6Z8��q��(d���G!�HyF{���7�-e;ȷ�u��|.6!�]��� �ף~Q��o�{�n�W�н����I�ُ_p�Nlsb��&�gI�Bk���a�A�e&i�6��d�>�z���? 3�5�����Q��M�݌�����}�ǻ~��o���HH� ������g�&�ET�$�i�����ۥd�[a,�1D���eGC��VQ"�~�8�M�.�OWb]���#�K�҇z��5=!ˣ;N}p�jS4�w/e��</c޾���;k3^(��%�9¦N�d�ډL���R�wh@cr��<ˎ��{I�P9I��,G0������e���[*+�����'�,_6̛;��]�J��v��f7*����G?��|�Xo[�%�@��<BA$VD���~~uc���[�ʹ3*Ώ\����?��9ϧ��\z�U�rw�M'�Bq"bp*�Gdi<��zn�x��"Tf,>������JS�tΚ���񠝦�!���ԐG�_��sV�?�� ���\g���3�_�•FZ��Ť�aXt ��Vi�7��ؑ(���/���w���=�sh�78�cs4��5rehR��h7��\h>���=n�k\��������z������ ��K��\�I�d�J��Rt'<�СE�����g"���BA�k8{�����z #�2�����u�?X�6T��V�Lʱ��i�޴<a�7���Z � �"Y%��A��JHLAPr��:&�"i���f��,27��������U0�iA�:�J}n�dQ+�y�%Oz�A����L4���d�/�1��� �t�rt�u0L=���;��1��j�����ڂ��I�醅q�����&@&d�#��_d�G�a��G��� q>�&���fJ�_���Ho���݇_���0!�L������}�nR�yr�C#�G|w������c.ّw^S�^�wr�׏n�w ӻ���<Btwq��n��3�����DϻWە�Hj4�^���.�<�@,�$rF܌�@�?9�� d�8T��*'���yЈ�G�C�6z����Do�M�������؎;(�;��"d6X�"�C�-(B ?x���8�##���p�!O�0����M �j���B{"8�eL*����AC�uƃ��ʥ+t�ũc��t^�� AcA�3�T����!��]��Bz�������XO�25<�N�ٺ灱c"򵫻����\^T,�f�
bz
�'�ɤ��e����d�E3�$�� �:���]���?��������}�!���]����i���C9���D���'��Xq�2�IU=��Żۮ����ض�������`�'����jM��M����c���B��e��ĘڣDE�ˇ�p�sfs�G�p�w\�����*�$���_F�9w��m�'�!�s��}%|>ȀDxz�i4�ҙ��B�Y^�4�[�ܢ���eƌ�:)|�F� %��%�A�֬mq *�SAEL�&ՓK}�����Xm�Ф����ƴ�a���GM�h'�/��S����g�uCf $������D�����)�Y�# F�:I�4'<7
b����; ��q^
�O��ç�5L�~i}�op��)�L�EE�L0Q�ɿj0�]���&(� fW|\��� %)C�N�^�KǓ��/l�D�q��˷1| �����V�]v"�-E?ƌKpΊ)CȇM�_�M�J�m���t��[�z0?�;����L!$ I��+����(���j���S��F/b�p��W�e47�Ɖ��*g�"�6Ŵ�K�����M�|�oJ�����H�v�<�߅:E��ڒ����.*pa�!٘q�44��>oW�DG�˶9db��L�B���Ϛ��ԯ� ���Z:�%d�Gg=�Ȩ�J�‘,�楞10���x�����=6�n�$KpIl��-�o��c2YM�#�ֻէs�O�܄�E2�C����ꐒ���g���Mc�A���S�AFai/�G�y�Y��l���܍zb��},���DD�=.R5)#h�aT&�}�D=�� �&Jwm�?~s�[�ۊ�-ܴO�.�~^f�T�̦�ͻ���̤#�ݢ�]x���t���:���&Ӏ�ݱ�d6���O����DbX�D&4*����f�$r�)�r��ZiR!��*�i
����sb��b�=A;�i��8?��!�6�ޔr`:�jP�$V�S��
�3 ��Gj
1�z�E.��Jrk���z���)b�PH����u}y�eA<�Z��n���ț z�H)����� ��BKq�f�|�w����0fE4���AHdn��}�ßk�&��b��B� � i�I�a�۴�?K*����W��� a���P����)����E��޿���7vr�7���dB�� gXi�d)�*�� @���6�Q�hѤS�TL" ��JS���&h����,}� �~�}Xm��NY�J]p�=-��z �ܹg,��!��t�8Ph)=��d�7l�ˉH:u���P:�CnǏ�#��i���wuN�qiJP�]���܆C�]ǧ<&�y �RB��li�W���-K� H�C��Q�;�S p��@�V)������R$N���g��?=“�ǫ8x/8-��m��.'���O��2=�>�:��4��^+nZ�F�%����+߹�D3�Vk]ʵs��,��V7����<\�����nNn'�3�� `f4�M�r�� �:���6=�X�LPxv�{�=�j7e���ap�ɩ�O��h�����>�7-�V��fLL;�ъ�J� ��W���cu�ac,�Nj�ĸ*#b�94�0���O�\����z����gP��Պ����,�ֻj�T����$�C ��5���om���h�L����'w
���Sx��v�i
��s�T�O�P~_����h}�]�%A\�̢~�/@�!H~�d6��6�����1�ǩ��ol��ku�^�^�so��=P;�s͔��1¾��/]=�ÿ|���M!����^�Qv�w�m���N������lR���;9�c�T#*������N�X� �r�&$ԧ��;X֩5��}YK[sm�v�M+���E R��?X�B( ؟�fޏ$5z.�I-TA)R��%4���#�Y,\S���m l�j��~�%�\5��T=ֽmMy��%��[y"fan Pi�b���m��4F9^��'C�F���z��c$�BE�)�����Q'��ըhY���0��{1~+² �F;e*�w�W㝋�������S�[���A�RN��+ӬZ\��N�C�e93�LL'JR�/{�E����'Y��X���[��1��=G�����l"�����j����R?_C����US�/�5�>��B�W�{�j��G����iO���ͅ2Bʺ�-0<μh�G�GB.�d�|�cmا+�:�W���bX�j]�,�q����uv�8�OD��7��v���l��x��J/����?�q�G|O��'���F'5��k��8cx��}�\_�)�GĢ��j��5ƕ�4����S�|\�? �j����sHDH��}�2M��bBM鈩x���w8O���7眅6�q�7 ���Ob"=薸Ǚ�����L��O�$uBNK'�0)������ؘ��}�����Œ�G�c��#� 8}��>��/�=A;�.$M����s�f������/�Yd���ns7�^C`���ɟhr4���ޛ�a�6�m�L���C��H�Z��E�IK����\F�~j�SCx�ERUh���EqT�>w�&�O�l�� T�P*AG�g{�)
�X�I��d�Q0�Ȥ�o�>�-�&�{33iw�� ��=[1z0 �&��ds�i������w���o����m?��B_�8hQO\C���G��l�O����������F�]��O�� a8�( �%��<�O݈�������S�A����|W���_��|��8$�!�'�����Y���Z��-�d��C��� u�m �\�n]=1T��1���!�\�(P��n�3_�zŸqz˒,�NsyXO�N�z���mSJOA:
! �˾��n] �_t��V��B�}�c&4Y�F$��䮬��F۬�����GG71���G>�˒X����D|���?��{/1��0�� ���e�\Wӑ�! F939߯�)p<����nR��1ϖBV ����{�i����߀��p�s]F��g��C�+�f�?w��͓=�LC~I����z%8gA�?����\����ͅ���ct^��;�⟞�����#�,�����^�m(D�����Y>=���&��R����+�C�P�B����m8�d�\�L͹��P�?��N6��oM�+��i-���a6�4m!�1NEv�ؘ�pL�ar���݁��5�N(��3������Z��`��w�߿-��!Q �6��q(��D;�C�f�cO��6@�rݾcd��G{��ei�R��U'��v������1;CO���#悄�^t�������Q�&bI��pvcs�>��Re)�w��S4�^���k<���S"S�#e�s�E���܊�*��&fk/�a͘G~.�K;I[P�r� �ɂ�v�jFfoު��D5W5ʗa�& XQ������;�q&[��@���QͰ�Px�)��ι� �����x��/NJ��m"ZK��oR K��ce�C}��5�X7㊼pA�59���f��yq��6�e�b�R!Z78�'��¹���5�8gx��9UP�C�X(���;�H:�P�q������(w���Z �fV�ԏ�ZH>��o��s/��k������9�k�߯��oZ�GN���0����
����{o~�cG[
�n�I'v��7���,j�s�7�^c�U V�W��#X�;�ո�8�`���\�szیo��֡�<>�X��~�jw�x˭�a�?���򙚢d |QW?�
H���*k���08R8 ���j���$A7\�*7���a韆��҉^�m�����E����f�(��r�Si���5EO���z�ѓS��ޜӀ=2�
�(R��r��x�g���iG�O��/����?������ q5?��jUPl�,�c'&�p� \̋��a��{8�AS��F �E*C�X�ٓ�yTnl@�`2���\\�?xؾƤ�Q�^bju7lh�X�_�?�"�Q�R�
�:N*���H�0�N�a���;�re�<NB���~���0?:$/�|q%��]��h�����ݹ��M)Ȏb/�{Jyr1Љ��:���E�)��>,~��P�\۷�[!��Gƹ_�W�9�v���]�i4.�#d�����0�� ,曁�? :�^���a�7����CZn�7��P�d�]�Om������ aP�@&8��<�I���x\_� �l�u�~Ƞ��)������؁�/��~�v ����"�P����� �n��a$$ aV>� '~�!��jBH�Y�@�G1cq�����$��!�b畀fUVπ�Z��I�(JJ��W�đ�}y�))��|� �yGqh�"m"�#�y���"E��4�3�M@.ft ���%H1���f�0 H��)��t'B�cc�SAE:X!`�a��p��r�q��W�9�}/���NK^���u�{Xc҇=G�� s��^�~::\�&{v���fk�۟ Xa��u�E(��_��;�c��A�J;6�(6��I!!%�?Q�9C�� u���8���c��9��ر���N{̂�ʲ!b8I���W��@cP�-(j�v@�Ր�a�.��a�#^�M����?o~}*f���$L$q�cU�39�'����a�Kd�lL�={lH���hq6 ��he�v���N�j��*����S�yMj��(�"����(H����[�ď> 4 ,�A�$%��/���鄤��>�MFM�IR� Ĺ�TNȞ��'' '���^d8U5�Ã����{��������!�gGvTl���!���9=�^[u5M�?�$���>�P�
sSp�#IO���V�H���y�<O7mQ%UUUUh`z�%9�f{�#�22z��'��k_8��
[cJ��b" 9�U�fdv��Q$���Zq� ���s.l|à\y�>�v��[B�BJ,6���H�rrxA�t`�ʒI%b�b�;H1;y.� p��8�G4���I
ԧ6�W�fh��� ƨh�#{1�lo;2fc� ���ָ6h$����| �@���vn�7pZ ��f�e۟&���B$"vO'� ��UP�k3��J*Jb"��ژT�"��/:(� ���p��AsD�o�ߊ}H�|>����a�R�#)�}= /�:�+!a�@|��Q�Y�'�a� B����
@.T�#� s�!��=%!Ih��d�I1��_{�N,v��k�D~� <v
�(B���9�m �1B 5M��on�F�}G�!�\4$BL��<8��(��k��@��.��i/"�"BaA�v�]�b�<��G�ma %$�ս�d�#���� Ź����0���=� ���H*�l�L�R$17�� �.e�v���� �r7�%������A��z��V�Y�)���o"�Qa�j$zzP���. � �!9T2�U��P�p�Q�b��Q,@�DlhXB�Q�]�qT�qȐ������5�apц���d�!`��S�!�תlٰ�au0��ǟJd��>e��%�H�H_xw)�
��;C4A� |�q�x��$"�>��P�CR"�9��u8�N(
���7a�(�B�3ldM� qq��,ʁ���lR0#�4L��X���r!�� ��M��1+1���h�]� �z!���_ENrRy���Dr�`n�0AG�j�'4�I�I �Ah]��&����9 ;�2�0l�8���a�<��@��OjIK 6<LH0�;�S!3"���mG��i�R�&I� r0�34�����HL8 �d�ǂȯ!�1��q:0g�\ �{$@HEQ%A�pc �Xo���( �q2 �]�%�,0��.&'�o38���\7�
�$T���-d��]�f'BI4.��0O2�2���!�1�)K��E�؂���7�J2�GȈ��U1O�)�Nx����F��� ����� �L���/�j��u@��wڛ��O'�:�V|�W� b�(�".����r�a*�B�G|�Xr��|K�� #����0B�����������AS���$���G6A���qY$�����DUMC�&�&�3��C�@7^I) ɨ;���2��K�l,�r�� J�V��BzJ=2���U� {�)���I> �ƅ�M��� ��Ē8;���Fߦ��
)ysD�����8�/��"�p"����>�!�p
4-=�ww�/��<� �b�a�{�ɦ�(����G���_w2���Z���@�9���hz�h���s8���2HA(��@s:�N&�I�,\�m���5: �����g)(dh���2u�@��G�u�R��ځ�Th�!�(���̅�<��K<��Z36qE��Ҕ���G�=�d���0�=ʑꯡ�v�^��H�IJ9;�(�%�`1#�*�p1�0L=��M(l��}vN��$9ĊM�D�&�N|�;n��jm��5U$�H��,9�:��Ͼ� ���y��%ԢrT��u�H�U�Ca Gg�#Z�x‰��@�2��a�p���3���+̘�u��y@�*]H������ݳ)m
��� [f�&��/ ppo�� ���O�X��9��/���0��ɽKYit���? ��Հ���=���_���`���I�Y�U�3��B�Kǰ��o�������'����gP�I�G�z���&Us�=������2&N����d0x&ok���o�-R�o��? 9���/������
�r����|��,u��Z� R��`�J�dVd?AE��1��}{��t\ ��c���%�{ш;���?��g�A�Nb��$�' �B/UψW98l���du�p(�!! �P�z��� ^J�S�QY4�&n���rg �ơ�\P9?e����9 *0�h�j�Oq���ڨH�fn2d�H '��/ �&XӶ�60�Dht'o���c��I�"C�/�-Um�q��� �8�纥Z��e�<lA،��%�B|xxV/80Cd���O�$�ܡ x�l�����!�C0�����P���v��
l�d Q�p��g��D���D!�!���_�_�r�e�R(3P������G�<M2��b���θD��B��#���� T���p�cXԃU���J��F!���$���i��ʼns��~j����h����Y��2��a�Y�e5Y��eUIMT�O���"B��mn�}�%�C�u�Ĝ�=��2dzobǔ8�7�%�r��gc���
P�NC�M.J��$1p �ŝ&Qc1l��w ��3�k�d�;Ӂ+m�Kc �l���#Њk�45ND�D7�i" ME�Sf�B4f @��i�A��Y� e*�E��"��"�L��
QK�K�&�~��#|�w��H�i������L�sc��d��8"���C�m���z
u�֒�N�q�#"�'f�a�s� �H���I���� F�;Ιʡ��X�v�B d�Q��P����Mn����.^�2]B���2�V5��>�y@���bv$w@dS@}h�?����/n��ds3�%oxK/]�p�ph�"!�l6�G��_�`P�ih(�X��4��i0tD'�_��12����}!������c@Mo ! ��V����>��G;����N׿�P�P��AS�]��.�~���@m�yLm� Qo$�>:eV����� Q7� {C~����bV:0t��,С�1Y�|le� W ��AO�z�l�D3�T�L�/%�#��Eq�Τ�`��S�2:\N��=b;� �O"SP)���l���goAr��8,-m
�5"|�� 9��S�`������8��~A)��x��ff��=���4���B�Xz��%d��R(��~I�(0B�$ t.q H�d"[�������b��T��}�5By��N�d��� ��@9%E�� �Ԝ��$hx6�I.������ÿ.~�4`�#9 �'㑎|Q��73����"��� L'�=�h�����%�9n� ���])
tH���CB��CT�4��D4(/�����N��4��3���i ��B ��+dK+��@-,���O� ��C�m�-E���r��S,Jv������#���%ܑ�Y �A�&�4�2�rS�ڃ�p�����L�|&����Ĥ4��$<M�:K�XD6a��!�̃���<��58�t�Aʧr�ػmf�v����v~�H���� �����AGT=Eupi���>��Qp��W)�퐥�e�V;λ-l���Ő�i���tϺ˜�ȶ՞Rz�;� { G�� �QSJ �=j����(BCh�3��[��/4��� o0��F3� "$��"�(�9�/X�llm�BO$��K�8ߋ7ۈ\?4K(���U4�����um��g�p�[4���1ґdb���s��� JI�ن#���GM��b"I$�2MD�v�G��h:/�������|�A���fDQH �B�� ���A�����}Y��4��1�OT-M>� ��JMz��Ն"�x�����ަ��)���a�@�@��9��& a�n���)�v����AsW�����v�2�)cF��y�Ma���%����AFcMюȓ��Gl8��KY���%�P�R�"p�
���`5�AЀ���7���e!-�� � ��|Q
zq����5 �4 �=~�&6΢�'�CC�2V#:ȭ� C�('�! gJ{}B��q��66���eꌜ�'�8����Ry�gi�Ԃ���f���Lr"�Dk{�
�-��ȡ*832 J�A�Y��\���c!ڮ�V�wF!t������~jE"�%h�R�b��� $�0�Tu� ��p��i
T�Ȑ. @�~[�Wu!!���&�8�!x��+B�R'�n�����~�tI��������<����� �]��:�T�`PP.G!���3(BI1�G�̙7nϲ�dd���Ը�jSr9=R!P�\��G'�L�\R.�!�{�U�e,�[š~�J���zB�uE��I��=��� �D�s���A�@��$FLJ4�&� �H���rG�sws�<�
IEI�̑�`�HJ*
����"��D�u4������1Y� ,&��jS���i�������p'E8�3K�Ʉ�F���6غVdo�j'$�'��F�Ϥz63fx&@m�lr���ՙ` 79�� i�ӧ{y2(B ��$� �3��j ��Y����Ƃ9�D�U:%�W �$�MC��
&����Z0�s�Ԏ ����l猨儔�na��0ԭ �DA5t�(�B&�cj3bB�M��Bn)��pŤh|HG[H# ��DoD+�cc�*��g�[tl�6F�A�Mg9SD"��1�E��܀�l�dA !t$����c!������jMW4�W��fǔr�"��%�P��&1J�` ��f�rRI�2�c�&���@���1�\b�c �60B��"���b-Rv�b)T"��S �í�����%N�bA^�eo �d���¼t��Z��IIKipѷ59kx8DԸl&(���:y�*��d������PQ��fdPfUwb}�G>v�lԂS�&�|�1�ȑ��T�o�V�I��~����
h��rx!xA�(! ;J/��*�Wz���$��.��z/���c�ۣ��xy��N�xQ}�)�H��$��t�X5ȁ�(�S��wW
�phX}%f�@y$'��b~D�P1wƠ�@�8_v��*�u�<{�wH�y�I[�c�C�rg�I.?�(����Ǫ������9�������[k ʪ�SeDjM�,��܊��= Q�\[A/�iK&9c>�����
ts2��
��lNAsRU�m� `����/i�s�(k-2ਉiD>F i-4(��kPZ�Q_���f�U-M�� m�">0E�RB�o��A� m-� Qf@��k����0/�~|(���/����)�E$���u�\<
�D�?)�Z�cF���N����k,��:�Q�1��ڙ^�Ҋ�U&m�˳��ѽ)����g|���~!��Ϝ�y$k��]�-�$��$ �>EsL��ÞX�?��zn�i�2֟� r쮂�d�����q�X�~a�Z���c531�"� �r;���9����?A6�: �6�V��*Q0@��,��)��;��26��F��s ;B��6����
r����!x��-�� ���/�Di�@te�M�e��<u�(9�ѱ�'�q��f�u5k�F�91ݺ�2@.�&��~����n����;�l�VdLc�`�Ɨ�ߖk�3��Ct����2��q؞�=�(+p£�e�q�^R�1��4�B�j�i�\�U�$ݮH�hP){��1�~�-�T����1�)��p�r�8L�v���v]ۂ�|��j.��E�yW��u��S:.Y۲�C��Qߡ���� ��c���p�[�0 C���K�v\̶����yq.�Ĺw����5Bvn�� �D~L^MV&H�V8 ]Ghv����9�� �hc&������cxc����
8�"fؑ���C�+� ��0��1�+g���/�2���\'������Aڟ�r�c��3�N�&���qҷӨ�D5_Yb, �v�� �dBmj��Ӕ�I� ���g��5v:@���M�h�K�^*�;r�X� ̰C H�(՗��������;��)�����x��\��
��s[��o ��Rݺ�t9�*�6���c�dy ��>�ܵcHC6pvlB��J���'��Q�>7�Wu�[l]�8�9ᚙ �<ix�i�]���� Ii*�6��� g4�k��6*v�=�8C��j/e# �G�z����Zd���!)��
��P�c�?wz��1�!��WM�G`��ƞG%!CPƚlk@ME�&M2kR&��N�0 &��H�)�I�l����X �9�LǢ�>�43�拇zNF���q�kPP����ʩ!�GUq���rS��4Y�l�z�,[nm���9[CK����F�3�ȥ��ĝj䚖f�5�[�(�zuK�� Pp9^q��g]]�Ճ¼ �zn�:�i�C���
A�>�f��tz;T�0p%""����&|h��ҝ$b9��D��B A��,ҙ�jL̀a6�q�@�)�-B��� �6:�Ra�qj�^�����>9���6����$����HU!bm�Rb��4��÷x$C�
���2��Q��Od F�$� ��0A����m�ǂw�Bo�1 �ˈ��/9��F�8�N���F�H��z��d�����5S�����<���#�@��اH�:)Ө���(>TQ�-
I]���#iuv�52H��`������_ ^���"6|1��38Γ(@��Y�f7s�v����!��h!�B��&�c�nF�m�����[�B�����ľ &^]�bN:��L7C�3���#2��<��R}X�����A�K�zY{i��N��i�+� i�J"Bx�1�6�}�\=��Ev�,n�l��./Vҳ�n{����ǽ��?��'4���(�`a�l U�$.Ghl{��:7� ������uF@p�^Ҡ>e#����?T�E�?����%v���
�X�k���� Sw�]�v��B� �Ɗ-C���^X7�x�mm�5�G>pech�S�u
�~���.TN�0��,̋D��T ����!p�!颈����ۨ�2��!���bN}����j�q�679�l�6"P��(! �)����m���ŀd"�D�!̌� ‹A�z(�6���n|r4����w���$
W����cg�|^���s�޾�P(�̠D� l�ў� �̇���,��ء��L�ʂȝ�)"QR �ɺC��|G-���8�tcd�W
'�!�&A�yvMa�Di�в�y�&rj�ٛ9PrZ�f�5N�L�GFkY��B�k���|��3�������\�#��,iI�fA�i��f&0fN.2ƾ�fKZ�� ;'N4���Q��mf�q��X�̊�����(��<ȊҒ� �+,g� L΃Z�b���@9�N�]q�cǜ�{,��G��f�l���͗H2�,a8F���ekLB�s�����ߟ;� ���E P �v�`ncE+�RB=�[
�����'�?��}��x?oN#cBٟu�9�骈5 �"PbX��í���D[����}H³�%�MXhN����D��TN����5���� �f��ܠiok�u&�<"Ȅ�H�B!�u����Pn~熚)H���<fsS�I�0>1���~l\�-��be ّ ;���0�wɞ���_���)�Q/�&Q}�na����^H�d4�wY�G���Ԫv�<Tg>Tw}I��\��tp��䅶w�tOdx+�c��fx���w�\ �9��N���i���d�܏�(j򆮧VK�� c��L��� 7Q��������8�����+jq���x=�o}5��"""*����n�7=vq��pjƺ�b�9ay����� `!a���'lP�'�\�chi�4��Xڔ�"""�����w Js ��q�rH���"�J �H���H�˞��,�W $������8�:�V٪F��i,ߏJ��*H�Y u �Z����1�z��G� �Hu<�5.+Ϫ�THC�lv�6������ $#$B%�Ř`�'+ ����� �F��Q���?�� �&A�*�q�>bi .���DC�dh�äD� �e@�&$�刍T�Š�� 5��[b�V�"t�Sz�mB�b ��X �,��
�FV�7`��+Uu;�V 8��N���B $
$�8�r�ߩ�x0�O�R�A��;����P����g.�HOiA�Фv色�yG|-�T��-\A���*%^$�G��v���Ԏ�� �? �V���#�R`��]�&T�ʀ~�"����\;��J�#� ����%����A6��!瀾 i�\tH��A>�<"9�9sU=W�!��, ~�#������4��$8-�0M�XѢĘ&�B�9A��i5���5h4��fV~e��k6�$�M� cfdUI�Q�֒�E�ɦdKG�?v#)��
��I�KB��Hl�ǐƩ�mlf�-���8��Ei��� J����5�DP�(�h(�Ms3<Y�j2�D�O��};���p���cخ�V�ԗR��.)I|
ɺ�'f��H�'§��3l|�w��Y���Ro�Nh"a�) C�X�b9D�%�d&� |�Sb�B|y_?�DS��=юfo��L��$k�6XV�,A�&Q,f��\�kA�-$E,Q�2()�a�f���$��r-U&Pd[1�jv�aQ:[�Na��c���rW&���EP2H��M: )�Q�R��'A��a�� ~v���"X�*��X����b�fb�
��"F��&*B$"Uf(��iJ�B�P���F���ZD�b����?����܆�L0N 1.�����hC ����( ��Y8��������$q1J ��\�(f'�A.�!t s��;b�j��`�d��B$��"b5���]1�2� U��#HL�z��f��4��T�F?�J_�����֏{=N��Fi�C+D��������0��i�ꞷ�yJ�:%��]AU�� ���iR; p��Pz��Z��X���,��l��BC��ө=�L�8/_k�-�g�'q|�4� uCɯH:��A����H�hRpŠ�y�C��y05RQ�l���1P�6O~�KHE��b��0��I[lى����& W�\ j(�>�}0�*��ص�6���xL�G������
����QE�y��>1�p����R�4�KKLB�!JFZ(�:�Y�!��{�c�}ē�`)���Jd)�B)���[��ɡ���-AVP(�oC���
W\���+=ta9��g�P��=��1�|�-.>���'R$�!t�O��܍񬒃���ԟ$q�l���ҏ��,w����2�gdjT5�v�<���w�
���^�|sV25�M���(,C�{ީ��o��:m<�ۇ&G(�! "�}���o��X�n�'|��eg�Ө����?��K��iE�9�8ӽ�$c���q&��.�Ӝ��&�5�b�q@�����U�|��ϵB��r�쇟��-}�0}G� ����9�(W�X���j��(|��!ЃO��S��צZ)����d?T�6!��$��cqD�7�O�,qd`$8\i�i4A�aЍ@��H[�e��QoAG��ꉋ�#�^\|4�(i稡B����Be&�
R��|2B��JH�(�J� _�v/�Xt�Lԝ���6�Għ��E
&$"�i��2X&� J`
$)("BRB�C q�|q��$ �����Izh���w�*@�'�1H/� Q�V�6a�Cy����)�z,�JX�����!
-��(�����I�(�QO��n���r�X���W�ٲ�M5&Cr��0��
5�!2��|��wx��#�Ch��~x��P�Q$@�� �O�W N��#�鉉�b��'�>�� �`�5a$�D�u��j�<M���HBi��Q�m���k�lj;�q���1����y�a~3��+��s��
f&%�H2"�)f*��팍w�4����@��l�d�CS3I���CG+
"BY�!i��c��j0�֩3v����ԩ��]��h�X�u�1�Q��"��0˝1I��<�
�[����R��N�v(�*�Zs�(5����&��
r��J��L�����_B �C���M8�� �6��6����d� sx�hg8�SzmTn]�(ڃ��0puչ1�PRp�v�
v8N�y��U�0�8b;}/�2}��A�"��N����05�ѽ�:����� ����h� ��+Hd��%44SG�0���,È�V���GC9gN�by}�L�B��U�{��[;�n��Cݹ;�(�K? �HU�=U��&� ��V,ԇ⒨���w&gv)!]�
��:1^��68g�gb"1�m!�
H���bu�UDT�R�U)D�5�׋�:� �B��SB��p�RR���\h�e8���?g��E�I�8�� �ۊ�E��69�[���9�R��$XMĵX�h,��X�|�yA^� N)�}A)��Z��p=�A���zY��f��� �0�cF`A� Ɍ�
�v�̾�ti���T���bm"AG��7ł�:� �x�2�F�u�8�L�9lmJ�Z�Ԏ@僐`A�q�z1��s!�aS9fBRCЌH ��&��$�\��Ҙ96:ad��M|��:h貉�����h-��[�g���B&���<9���ʳ����q/z�߮ʼn�gV���=A�ԯ�|�� � %Q$T3U�(C?�O���Gh=� K�\�����:�!i ���F�Jd�*�z%���m_,�䁾��~_YX�>�ϗ��tTE k<���4�
��P��a��&B^p3*_<c�0[, j(*�,-`�:B��"vF�H%����X�N|��T�����?��Q��n1��JP20�ab��,������3��^�5V%�Ƞ�Q�.�K��!âv,�j�-g6Ȗ�>d���� �N)}/h�z����ާwK���;
dg��
ة�A����MS>1��G����o,��'2 -�J�Pݿ^e7%�� �4�Ο�w����ACY�f ��&���3��Jiy����Ck�3���K0D� b!&e��%;�Ǎ��zQ�:0W���ƮԤ�/�:~��0"Z�aºHeo�ce�3>���.4 ��$Un�F�� ��q[�V� �Y�A�="4X�oE ��b��M�����u���M�6�=��4[R�-�X0�&�F�&�:/k��:�TL�ܑȞc2��k dY�.�L�Cb+�`��!lM�8�W��Ʋ#W��ץ�(Cf����h��3���ˌ�JG�<~� jbHE�_U8ǯ���ϰ��c��F����5�9[�(�il�mf9��:s�5�$#��Ga�Y8�͗��?Q�Z���r���#�5Y8Y��a��7�a����l���ߔ�ODv���3� B�9� P���CP;LP2��XX1������Y� �L���؏�}�r�~���h>Đ�%��a0zj�ۄ&b����@_.3Ul�X�li㱍����G��AFA\�&�?�%�J� ����h6,@�"��؟.��u��&Hb�X�����&L��d���0�Ʃh
�rI�i� A��d9 �E6c��9$�H�R�A��J�����J`�NW�ѥ����:p2p��b�C�ӲP�"��h�eF�’�{�L�;Ƀ ÉƪJ��z�>05�
K@%�I��]�Oz���=��H�>��N!���;������ H�Q��B5x�9P-��) �G�� vu�6UK�4[�,Y.�0�b"d1&�2�t���b�j�SE��I��~ڤ�]��- �0D�ᓬ�وjtF��$��O��A<@�� Ũ����#hZ7]�(�lB�6��be�X�q�NRD+jq2��&%�"H��X�%��bh�C"sc���524�5�U�e!$�2 ' q����"dg"1����� |R෵IC&��E���NP�!H�%B�HңIFJ6�O� �6�� lH�'# �=���}yI�$���QÁ��\���ݼ��p�;���Z� *��������M9����C�2�Aĝ���1�t/�޽��tV��o�Vd1 Ai(��dK5A@|��n9W=�����?���r ��L�+���� � 0�WhA40�0## 4,�F Vh�E��z�����(���7a2�h*��A�^� |ѣ��W.���6p?y����D%)�$���_�Y�8y�@�����~��?*E#��4R��M�����d{�ҹ!����R �s�0�q��1? X ��u>��)�D�ل�3�қ�@D��W!N�.@�qeA�T�i��S 4G� (�8�r��A�ʟ]�qtj������6r�*.G�mWJ��8a "�U�� �� ��d4*���h��KI���$s��{[[=8yP�{E���Q���R�,
i,[H�(�lpJV-��E@L՘�C ��<r����8�1&q��lCI�ܛ�&�*9 �4�0\=d2q�"�����\���Ӆ�*b$�� D�{�v�'�����M���i]�P�p��!Dh�Ȋ��E֌��g?4?vp����T�<'��n��I �A�R��#�qu-A�gNFJ���/hz��n��yI��4�TnF��vF�FA�&���
�x�Ѕ��z��#]�16�����(�i"�aMD� z���.C3�Y�bQ�� (���c�:���
@�`xl�l����Į����u�� ����f���I���>P�<�9��$�dB �b�n"H� �*�w���%�n2��U�>[����{���� L9|����N��S�/���K~܎\��5C�ș蔆����~-��@�HB�+�O9�[Bā�DD��,R���'i沃� �
��������=e7��Ў����)�;z�iT� ��@8���ve����&�*�V޺a(�Yw)d,х��|+�?�G8Yg�:��m��$"|A(A�S��KZ��y�%!,^~�,�yi->H9��t(H���'%���`wd�!���q�2�적$ �! C=3a��KE � &i�� � �UBu?6�P�b-��h�4���Z��!�����o�w� G�/�V�f��P��� ����E�qJ�sB�Ev�J�Ip���2V�p�}}d��<�0b�$�QA� )6w>1 H6>'��&��|$�`:�G�i������)�+ e��x�EdY���4�fD5 J�I�� H@�0��)�(�7�b�� Ia���,G2��*��N3 l��fa�L3��/fb�0@12b2܆�0QLN��' ���Z*""��!29��ւ%���p

sN�o vBu�h�(�,K��1(�*��*
"mFY�19*a�3ƴZ��2�3R /#���騢�
S�y�, `f�L_N.T��L4Q��0����09��
�50P�1 �늆��B䣺��%w �vZ9d��6`�V�H-���c�6�� �4b�|���m}�g�H~yB��
h��8��B���w�'�<�ô~�m��(�n���E�[�yR�5!������G0t �Sh`�V�v
�ō"&)l�#^擪ԛ8�2����ӵ�F�"vۍ"�$�T#��F5��$�$2���ތ"��5�>5됖Tmq�
33�:�����Y�m��P!���Bp�(jҡ}{�$�я�w�%c����F��� Y��l|�Ǖ�6Fa@d4F=�fE��L�eǗx.ޔd$�hB���+��|=���*��P�AhGc�t�U��b��lX1Z��PT B���7. �$B��٣B��80�2�eO�1�2>�����O5sy� Np��� �a
@
TLHy��.��j�D����4O,�����.�)�~Lt�v�� �#^�L���v@1P<f"4�pf��ɣ*�gmZ�hs�P.�60<�llP�W�;� ��W����y�ExY P�>0�H-DĉT��ġ$JR�B��e��&!d�HbB�C��@�p���`����j�!M *eZt�X��)��d����0��f0���������86SE>#��@,3܊|�b� �/2^�' �'�9���*K������9�����a�+�����2/#�d��|T�����R8�u��W�yA� ��T������6k��M&�z �̖C�9�����r<}0M g��b�� �!�����=�y�=]�%p�ʎ��V�']�qӇt)�!1sjv'�I�����ƴ֤��S��!�����`�-����g�́&|n�� �V�n�K�{.)�;u"��U�ӝ�=�Q�c�n�i�|zM5^D���l��G�ؤ�E
��'�WD)(�ʰ�VC�����sr�m��wQ����;��㪄u�u�!�}b���0�L�Ã۴�&���� /�Q3����ˑ�uv��H\��5�����>�n��g�T�� ����.��L!�W������v��ax�b��{@��ޱ�6� X���Z4?�e�g˵,�Ɯ�3<#� m�D���8p%��t���T;�Q��ܶ��v�w�ȣd��*q�qĶ�{����+�_+��^���
�ψ�lz��ݮ�J7�z:ޢ������- 6�UdҬ�<N�-���8�d��M�i,X"�cJ�_��K$�$�S6+��,�ղ��vV1 (��1$Rq0d��t���(�M�{�7C��Mz��!�yӻ%�P����03q.��x��?5>B���04����Q�� >�3fnbbD0>qϏ�� ��M�M�#d�iL?� �R�^k�:N;�����"]KL�xv*�>$� ��wޤ!+I0)ϵQԠ�'<>�����h_'� g�D_��7;�wI�9 4���1�&�S2��oH�����¸�g�����M� � �4Α7EC�K����>ّ�c���� ��lQ4�d=.Hqc�� :Ô�(.������Sq���p^�&Dֱ�l�(��! ���C�4ƫ������:��"��˖�@�� �����n95�<L�:���C�gR [��v�:κ��4wZΑ���r�b��sO�@���F��M�z��H� �5�Ǚ8��f�c%����ÑANc��',��/�f�jS��A�{yl�&��RLH�A��A�����i���
Rg(/~�t�p��-tq�I�&r9�Py�S�N �A�\���u,C����G?[L��*;����'}�Ù!U�y�P��#�g'���M���n�
�>���-��o� ���f �L�,��(4�c��� 0�H4����kH޵��� ��l?��g�n �{4���� ������)��0�4�
�յ% �h'F��*Q0���w'y�Ι�b{���b����TAr�`�1sa��sA ͨ�\x��P�4�Q�ȉ���!��ǥ!�Mߚ�d�|��<�I՝:�����d�O�\�W����� Ձ�@c�pn�3��V0;+� �b�pMF/���r���s��^�)m)W����h10��]F�4nl��~B��h��W�eɿ Kg�G/���Q�#�!Q�c�4� �8ffЕ�M�� ¹(�\tQ�3��p�!�LH�jQ♥;�-#��gb�L�!�E:+_^u�4���5�þ\T�s{3 ����Zv�R���%@:�̕U�a+$�ׂ ��/�w� ߕ*Kr4IYdS �� у���κ)�v��O�D�ۢ[n5�n r����o�m㊙��bx1vw�� �7�ݡ#�� Î���%i4[��*Y�^��8@��GG��x�!���K&f5h�Un��a��i�X��* x}�F��y�e ��5�� �&l�s6���Q'ao\pɸ���F�x�%��:t��Bqj����p�iK4��Ի�ST�0�#HŒ$@h�8���Ug.T��E�8k��ƶ2=��kaӲZ���e@,�@�df&�p�v�3]����T�B�"9;JTM�f #њ�M��:��� �#��>����!Q��܋�l�;��z7��X�Wx��z�sR$(L$��pTQ!�a ���c�g$j��È� ǃ5Vd'CIv���Dg8�6�0��F�6�??%6���� w]�u��=J�!�9i̟j����9 �1�B���a#r("((��X��&�]�Q���7"�@}$rX�>2\�Ju�� �@��WN�i�^�
�dr�[�����\b�4�bIt��e���B�� ��G��0EB�H!ǘ���������`&�Ĝ��y�Ms�w�'8�k7����0�7�X��Ytn������� �,�pL�ˆ�1���9P��wfe���Y��Q�Q�5H�-�ђV�5r.S��g &D���*�B̈{r��5w��P]�"AĀ����Ӿ�r�$U�)% Jc&����0g���|��L���DD�G��(�?
)��R��02\�5&3$~���f3%�b)��ZC�
�����$�e@R����aE�h٤:F����\!IJh?M � b��u@Up��e2 [����f4M�p�V�w9�y�OU-�M�Mg:3aI�����hx���c���9D�ڲN)����` cW"ńB1���4Z� Jg�U%MY C�5a-W#�����cq!�[eNE��]i ���e��o�b~�_��Fd_D�|&�.
�l
����d����P���贃���Ӡ����ǰ��A>���>Q!��@�"bBJ$h�] ������!@W��M8A�W�z� Œ�.�D.�$�)&�9k�-\"7�"H M����f����� ii�I�(Z��"���4 �ȴ�� �ld��ʫx8~���v�9����?!-��kL�[#�w���DeJ$��gI�s��ۘԛ���!Q��H�6Q�50:3��O��v��?���w~8+�.wِ}�8B�v���{?��iHp��k��ߢ(qwX�#���Z=��oޠ�PD�P�IEB*��% ҟ���G����͹���4������x�uBo:o9��r�˟{�J:��V/2�L6/�"
"f�$��P0;�<�R ���N/9�<�O����k���;��y�Η�l>�4U/��E�o�q!�$W���9��1�3� ��� �`��_bH<��!TI<��h>S��A-�A���Ač!� ��f/y������|eA�>��P�
`ȕ�D��qX1r�俠(�%=O��ˣ$� i ���Ȃ�2��B�<T;���M����!dG�|��O��|[-���R�N��
�$�,w�~���$�Ew�ς-�9�L28�a*�������N� F32���8�z�c��� 2AB�1 5C��rh� �ZA�@�� EͤF~�bf�=��;���`�mOu�Oo��wTH~��T�-ة�R��#�c��K �7�D
����AD��6^-�8F��+���UK�����r>h��4��-?(HhA8�{�?��0�����0꙲���>&l����:\&`kC#��C �@:J�@s�7�ip�3���n���:����{���~����<�W3QD��T�N4�?��NHt��ax:2m�TF�O*�Dj���@�T��$hq;s��aE��'rH�ܒ��[�#�,��b�%'���{\��F�F3:����Tv��W�d��$�8�%����Z�YT��q����I�!1�5�Е\4! ��5t�q5�{⨣ �>44����@s��zr�.�uTt ��P���� �:�?�O���*�#�W�zQ���D!��~�!�O��u0(R�H�Pk
XoV\����8���rE8P��O�M

#1 lore raw
Quoted 59 lines · Yuval Kashtan

Hello All,
Attached is a proposed patch which adds DBus support to QEMU. DBus is a standard message bus for linux
(http://www.freedesktop.org/wiki/Software/dbus )
The idea behind this is to allow for external programs such as controlling GUI or HyperVisors to communicate and control QEMU, in a standard manner. Although it is possible to connect to the monitor, an API is more standard, theres no need to parse texts and error messages, no internationalization problems and in general is a much better idea.

Implementation:
This is done by creating a DBus server from QEMU which raise signals and act upon methods.
Methods mainly implement same logic as the current command line options and monitor does.

How to use:
To enable DBus support you'll have to add --enable-dbus when you execure configure script.
Then when you execute QEMU, you'll have to add -dbus-service <service_name> where service_name follows the DBus naming convention ( xxx.xxx.xxx....) To support QEMU configuration through DBus, you'll also have to add -dbus_configuration which will cause QEMU to wait until ConfigDone is called through the DBus interface. this allows external programs time to call DBus methods starting with Config_ which changes configuration (just as the CLI does) thus enabling invocation of QEMU without parameters (beside the DBus ones).
With that, we have implemented a nice python script that reads VM's configuration from INI file.

To compile this you will also have to compile the attached freedesktop.org dsrv library (it is also attach for those who can't handle GIT) from:
git://people.freedesktop.org/~shaharf/dsrv

Features:
Currently support was added to all important CLI configuration and some online monitor functions (such as connecting and disconnecting usb devices). configuration methods begins with Config_ prefix and monitor ones with Monitor_.
For a complete list you can just execute qemu and connect with dbus-viewer to see what is supported.

All the dbus handling routines can be found in dbus-monitor.c. I have two different implementations of this:
1) A single threaded version. which comply to the qemu standard of not opening additional threads.
2) A multi threaded version which open an additional, single, thread which handles all the DBus load. I actually believe this version is better as it allows QEMU to continue execution of guest operations even when there are DBus methods/signals to handle, whereas in the first option, DBus is integrated into QEMU mainloop. Also this makes it possible to monitor even during long operations (like monitoring the progress of savevm)

Please comment both on the idea of management API and the proposed implementation.

Quoted 6 lines

Attached are:
RFC-QEMU-Dbus.patch - patch file including all necessary changes to qemu. was made against QEMU HEAD as of 23/9 morning. RFC-QEMU-Dbus-Interface.xml - the xml description of the DBus interface that I suggest.
dsrv.tar.gz.txt - the dbus server library.

I have no idea if this is useful. I would have tried the patch, but it does not apply to current CVS. Other comments:

When configure is invoked with --enable-dbus, it should check for DBUS libraries and abort if not found.

The coding style in monitor-dbus.c is different from what is commonly used in Qemu. Some long lines could be shortened.

Enabling of DEBUG_ACPI and other ACPI changes are probably not directly needed so they should be in separate patches.

Only commands are included, how about reading values and statistics?

#2 lore raw

Some answers:
- If there is interest I can re-create the patch so it will work against the current head. I thought to receive some comments about it first..
- thanks for the styling and configuration remarks, I will certainly fix these. But before I invest more time in it, I would like to hear what ppl think in general of management API? How do you like DBus as the infrastructure for that? and what do you think of the proposed implementation?
- Currently only commands are implemented (with very few getters), but of course this can be further extended to include values reading and statistics.
- This is very useful when you want to manage and control QEMU, for instance developing a GUI to attach and detach usb devices or controlling more than one instance of QEMU from a single management point, receiving parameters externally and more.

Quoted 104 lines · Blue Swirl
Quoted 5 lines · Yuval Kashtan

Hello All,
Attached is a proposed patch which adds DBus support to QEMU. DBus is a standard message bus for linux
( http://www.freedesktop.org/wiki/Software/dbus )
The idea behind this is to allow for external programs such as

controlling

Quoted 1 line

GUI or HyperVisors to communicate and control QEMU, in a standard

manner.

Quoted 1 line

Although it is possible to connect to the monitor, an API is more

standard,

Quoted 1 line

theres no need to parse texts and error messages, no

internationalization

Quoted 4 lines

problems and in general is a much better idea.

Implementation:
This is done by creating a DBus server from QEMU which raise signals and

act

Quoted 2 lines

upon methods.
Methods mainly implement same logic as the current command line options

and

Quoted 7 lines

monitor does.

How to use:
To enable DBus support you'll have to add --enable-dbus when you execure

configure script.
Then when you execute QEMU, you'll have to add -dbus-service

<service_name>

Quoted 3 lines

where service_name follows the DBus naming convention ( xxx.xxx.xxx....) To support QEMU configuration through DBus, you'll also have to add -dbus_configuration which will cause QEMU to wait until ConfigDone is

called

Quoted 1 line

through the DBus interface. this allows external programs time to call

DBus

Quoted 1 line

methods starting with Config_ which changes configuration (just as the

CLI

Quoted 1 line

does) thus enabling invocation of QEMU without parameters (beside the

DBus

Quoted 5 lines

ones).
With that, we have implemented a nice python script that reads VM's configuration from INI file.

To compile this you will also have to compile the attached

freedesktop.org

Quoted 6 lines

dsrv library (it is also attach for those who can't handle GIT) from:
git://people.freedesktop.org/~shaharf/dsrv

Features:
Currently support was added to all important CLI configuration and some online monitor functions (such as connecting and disconnecting usb

devices).

Quoted 3 lines

configuration methods begins with Config_ prefix and monitor ones with Monitor_.
For a complete list you can just execute qemu and connect with

dbus-viewer

Quoted 8 lines

to see what is supported.

All the dbus handling routines can be found in dbus-monitor.c. I have two different implementations of this:
1) A single threaded version. which comply to the qemu standard of not opening additional threads.
2) A multi threaded version which open an additional, single, thread

which

Quoted 1 line

handles all the DBus load. I actually believe this version is better as

it

Quoted 1 line

allows QEMU to continue execution of guest operations even when there

are

Quoted 2 lines

DBus methods/signals to handle, whereas in the first option, DBus is integrated into QEMU mainloop. Also this makes it possible to monitor

even

Quoted 9 lines

during long operations (like monitoring the progress of savevm)

Please comment both on the idea of management API and the proposed implementation.

Attached are:
RFC-QEMU-Dbus.patch - patch file including all necessary changes to

qemu.

Quoted 2 lines

was made against QEMU HEAD as of 23/9 morning. RFC-QEMU-Dbus-Interface.xml - the xml description of the DBus interface

that

Quoted 2 lines

I suggest.
dsrv.tar.gz.txt - the dbus server library.

I have no idea if this is useful. I would have tried the patch, but it does not apply to current CVS. Other comments:

When configure is invoked with --enable-dbus, it should check for DBUS libraries and abort if not found.

The coding style in monitor-dbus.c is different from what is commonly used in Qemu. Some long lines could be shortened.

Enabling of DEBUG_ACPI and other ACPI changes are probably not directly needed so they should be in separate patches.

Only commands are included, how about reading values and statistics?

Signature · 2 lines
Sincerly,
Yuval Kashtan
#3 lore raw

Hi,

At this point I am not interested in integrating it into QEMU as it is one more API level to maintain in addition to the command line monitor. However, I can change my mind if several projects insists to have a similar interface.

Regards,

Fabrice.

Quoted 128 lines · Yuval Kashtan

Some answers:
- If there is interest I can re-create the patch so it will work against
the current head. I thought to receive some comments about it first..
- thanks for the styling and configuration remarks, I will certainly fix
these. But before I invest more time in it, I would like to hear what ppl think in general of management API? How do you like DBus as the infrastructure for that? and what do you think of the proposed implementation?
- Currently only commands are implemented (with very few getters), but
of course this can be further extended to include values reading and statistics.
- This is very useful when you want to manage and control QEMU, for
instance developing a GUI to attach and detach usb devices or controlling more than one instance of QEMU from a single management point, receiving parameters externally and more.

On Dec 10, 2007 10:51 PM, Blue Swirl <[email protected] <mailto:[email protected]>> wrote:

On 12/10/07, Yuval Kashtan < [email protected] <mailto:[email protected]>> wrote:
> Hello All,
> Attached is a proposed patch which adds DBus support to QEMU.
DBus is a
> standard message bus for linux
> ( http://www.freedesktop.org/wiki/Software/dbus )
> The idea behind this is to allow for external programs such as
controlling
> GUI or HyperVisors to communicate and control QEMU, in a standard
manner.
> Although it is possible to connect to the monitor, an API is more
standard,
> theres no need to parse texts and error messages, no
internationalization
> problems and in general is a much better idea.
>
> Implementation:
> This is done by creating a DBus server from QEMU which raise
signals and act
> upon methods.
> Methods mainly implement same logic as the current command line
options and
> monitor does.
>
> How to use:
> To enable DBus support you'll have to add --enable-dbus when you
execure
> configure script.
> Then when you execute QEMU, you'll have to add -dbus-service
<service_name>
> where service_name follows the DBus naming convention (
xxx.xxx.xxx....)
> To support QEMU configuration through DBus, you'll also have to add > -dbus_configuration which will cause QEMU to wait until
ConfigDone is called
> through the DBus interface. this allows external programs time to
call DBus
> methods starting with Config_ which changes configuration (just
as the CLI
> does) thus enabling invocation of QEMU without parameters (beside
the DBus
> ones).
> With that, we have implemented a nice python script that reads VM's > configuration from INI file.
>
> To compile this you will also have to compile the attached
freedesktop.org <http://freedesktop.org>
> dsrv library (it is also attach for those who can't handle GIT) from:
> git://people.freedesktop.org/~shaharf/dsrv
>
> Features:
> Currently support was added to all important CLI configuration
and some
> online monitor functions (such as connecting and disconnecting
usb devices).
> configuration methods begins with Config_ prefix and monitor ones
with
> Monitor_.
> For a complete list you can just execute qemu and connect with
dbus-viewer
> to see what is supported.
>
>
> All the dbus handling routines can be found in dbus-monitor.c. > I have two different implementations of this:
> 1) A single threaded version. which comply to the qemu standard
of not
> opening additional threads.
> 2) A multi threaded version which open an additional, single,
thread which
> handles all the DBus load. I actually believe this version is
better as it
> allows QEMU to continue execution of guest operations even when
there are
> DBus methods/signals to handle, whereas in the first option, DBus is > integrated into QEMU mainloop. Also this makes it possible to
monitor even
> during long operations (like monitoring the progress of savevm) >
>
> Please comment both on the idea of management API and the proposed > implementation.
>
>
> Attached are:
> RFC-QEMU-Dbus.patch - patch file including all necessary changes
to qemu.
> was made against QEMU HEAD as of 23/9 morning.
> RFC-QEMU-Dbus-Interface.xml - the xml description of the DBus
interface that
> I suggest.
> dsrv.tar.gz.txt - the dbus server library.

I have no idea if this is useful. I would have tried the patch, but it does not apply to current CVS. Other comments:

When configure is invoked with --enable-dbus, it should check for DBUS libraries and abort if not found.

The coding style in monitor-dbus.c is different from what is commonly used in Qemu. Some long lines could be shortened.

Enabling of DEBUG_ACPI and other ACPI changes are probably not directly needed so they should be in separate patches.

Only commands are included, how about reading values and statistics?

Signature · 2 lines
Sincerly,
Yuval Kashtan
#4 lore raw
Quoted 1 line · Fabrice Bellard

Hi,

Hi,

Quoted 4 lines

At this point I am not interested in integrating it into QEMU as it is one more API level to maintain in addition to the command line monitor. However, I can change my mind if several projects insists to have a similar interface.

perhaps the DBUS interface can replace the command line monitor ? We have just to move the command line interface to a client speaking to qemu through the DBUS interface.

I guess Yuval will be very happy to make this work :-D

Regards,
laurent

Signature · 3 lines
------------- [email protected]  --------------
       "Any sufficiently advanced technology is
  indistinguishable from magic." - Arthur C. Clarke
#5 lore raw
Quoted 5 lines · Laurent Vivier
Quoted 1 line · Fabrice Bellard

Hi,

Hi,

Quoted 9 lines
Quoted 4 lines

At this point I am not interested in integrating it into QEMU as it is one more API level to maintain in addition to the command line monitor. However, I can change my mind if several projects insists to have a similar interface.

perhaps the DBUS interface can replace the command line monitor ? We have just to move the command line interface to a client speaking to qemu through the DBUS interface.

Nooooooooooooooooooooooooooooo!!!!!
The command line monitor is one of QEMU's greatest strengths! Don't replace it and for the love of Pete, don't force another library dependency on us!

Add an optional interface, sure.. but don't go making it mandatory.. pretty please with sugar!

--
"Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so." -- Douglas Adams

#6 lore raw
In reply to Laurent Vivier
Quoted 8 lines · Laurent Vivier
Quoted 2 lines · Fabrice Bellard

Hi,

Hi,

Quoted 8 lines
Quoted 2 lines

At this point I am not interested in integrating it into QEMU as it is one more API level to maintain in addition to the command line monitor. However, I can change my mind if several projects insists to have a similar interface.

perhaps the DBUS interface can replace the command line monitor ? We have just to move the command line interface to a client speaking to qemu through the DBUS interface.

This is a valid option but the problem is that local user will have to use another tool (client) to send commands. Another option is to have a common backend with machine & user interfaces. For example, if we use dbus as the backend, monitor commands will just be translated into dbus. The opposite option is also valid.

Anyway, the motivation behind a new interface is that the monitor interface is not good enough for automation:
There are not return status for commands, no option for async notifications, no option for parallel actions in case a command takes long time to complete (like snapshot).

So we either a new interface is added or the existing one will be enhanced.
Since Qemu/KVM will be used in production its highly important to have a reliable channel to connects with mgmt daemons. Dbus is a common practice for communication and used in Linux, libvirt, etc. The question is whether to add a dbus server to Qemu or a client is sufficient.

Regards,
Dor.

Quoted 5 lines

I guess Yuval will be very happy to make this work :-D

Regards,
laurent

#7 lore raw
Quoted 17 lines · Dor Laor
Quoted 8 lines · Laurent Vivier
Quoted 2 lines · Fabrice Bellard

Hi,

Hi,

Quoted 8 lines
Quoted 2 lines

At this point I am not interested in integrating it into QEMU as it is one more API level to maintain in addition to the command line monitor. However, I can change my mind if several projects insists to have a similar interface.

perhaps the DBUS interface can replace the command line monitor ? We have just to move the command line interface to a client speaking to qemu through the DBUS interface.

Quoted 8 lines

This is a valid option but the problem is that local user will have to use another tool (client) to send commands. Another option is to have a common backend with machine & user interfaces. For example, if we use dbus as the backend, monitor commands will just be translated into dbus. The opposite option is also valid.

Anyway, the motivation behind a new interface is that the monitor interface is not good enough for automation:
There are not return status for commands, no option for async notifications, no option for parallel actions in case a command takes long time to complete (like snapshot).

All of these are valid, and addressable. Return statuses can just be added to the beginning of the output of each command (similar to how POP3 works). Async notification can be made to work by add support to the monitor for a "select" command. Semantically, select would block the monitor and then output events. For this to work really well, you would have to support multiple simultaneous monitor sessions. The parallel options for long running commands is already address in KVM with the migration command. We just have to rework the snapshotting to be properly asynchronous.

Quoted 5 lines

So we either a new interface is added or the existing one will be enhanced.
Since Qemu/KVM will be used in production its highly important to have a reliable channel to connects with mgmt daemons. Dbus is a common practice for communication and used in Linux, libvirt, etc. The question is whether to add a dbus server to Qemu or a client is sufficient.

The main objection I have to dbus is that it's very heavy weight. It implies a rather fat infrastructure and it not very suitable for embedding. QEMU has very few dependencies and that is a strength ATM. People interested in embedding QEMU still want a good management interface so enhancing the monitor seems more preferable to me than adding a dbus dependency.

Regards,

Anthony Liguori

Quoted 8 lines

Regards,
Dor.

Quoted 5 lines

I guess Yuval will be very happy to make this work :-D

Regards,
laurent

#8 lore raw
Quoted 54 lines · Anthony Liguori
Quoted 28 lines · Dor Laor
Quoted 14 lines · Laurent Vivier
Quoted 2 lines · Fabrice Bellard

Hi,

Hi,

Quoted 5 lines

At this point I am not interested in integrating it into QEMU as it is one more API level to maintain in addition to the command line monitor. However, I can change my mind if several projects insists to have a similar interface.

Quoted 5 lines

perhaps the DBUS interface can replace the command line monitor ? We have just to move the command line interface to a client speaking to qemu through the DBUS interface.

This is a valid option but the problem is that local user will have to use another tool (client) to
send commands. Another option is to have a common backend with machine & user interfaces.
For example, if we use dbus as the backend, monitor commands will just be translated into dbus.
The opposite option is also valid.

Quoted 5 lines

Anyway, the motivation behind a new interface is that the monitor interface is not good enough for automation:
There are not return status for commands, no option for async notifications, no option for parallel actions in case
a command takes long time to complete (like snapshot).

All of these are valid, and addressable. Return statuses can just be added to the beginning of the output of each command (similar to how POP3 works). Async notification can be made to work by add support to the monitor for a "select" command. Semantically, select would block
the monitor and then output events. For this to work really well, you
would have to support multiple simultaneous monitor sessions. The parallel options for long running commands is already address in KVM with the migration command. We just have to rework the snapshotting to be properly asynchronous.

Quoted 8 lines

So we either a new interface is added or the existing one will be enhanced.
Since Qemu/KVM will be used in production its highly important to have a reliable channel to connects with mgmt daemons.
Dbus is a common practice for communication and used in Linux, libvirt, etc. The question is whether to add a dbus server to Qemu or a client is sufficient.

Quoted 6 lines

The main objection I have to dbus is that it's very heavy weight. It implies a rather fat infrastructure and it not very suitable for embedding. QEMU has very few dependencies and that is a strength ATM. People interested in embedding QEMU still want a good management interface so enhancing the monitor seems more preferable to me than adding a dbus dependency.

It is also not so easily portable to other OS like Windows & Mac OS, who will still be lacking a decent control API. As I mentioned in my other thread, embedding a DBus in each individual QEMU process is not the right way to write DBus services either. If you want DBus (which is questionable in itself), then you want to have a single service which manages all a QEMU VMs. This mandates that the DBus service be outside the context of the QEMU process itself.

Dan.

Signature · 4 lines
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 
#9 lore raw

As I can see,
There is HUGH interest in management API for QEMU.
seemly, DBus is NOT the right solution for direct integration into QEMU as it is not cross platform enough, pose extra dependency and (probably) not suitable for embedded systems.

Keeping only the "old" monitor interface with no formal interface will make QEMU harder to integrate with as it requires extra work

C API is not a complete solution as it does not define well enough how will you integrate with QEMU without changing or adding to the source.. But combined with AVI's idea of some plug-in mechanism, which will use this C API, it sounds like a complete and valid solution.

The monitor should be kept for backward compatibility, human interface and be implemented on top of that API as well, so there will also be a reference implementation of how to use the API and create a plug-in.

As of Daniel remarks regarding DBus:
- I actually have a newer version where commands are divided into different DBus interfaces. So (hopefully) that solves the methods naming problem.
- I had to pass the server name at the CLI, since I was executing multiple instances of QEMU.. Having an external server, raises again the question of how will that server communicate with each instance of QEMU?
- It was easier for my project to configure QEMU after it started and not through a file, that why there is a configuration method for each option. of course there could also be a bulk method which receive them all or even read them from a file (and actually with some extra work, many of them could be made dynamics)

Quoted 87 lines · Daniel P. Berrange
Quoted 11 lines · Anthony Liguori
Quoted 10 lines · Dor Laor
Quoted 9 lines · Laurent Vivier
Quoted 2 lines · Fabrice Bellard

Hi,

Hi,

Quoted 1 line

At this point I am not interested in integrating it into QEMU as it

is

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

one more API level to maintain in addition to the command line

monitor.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines

However, I can change my mind if several projects insists to have a similar interface.

perhaps the DBUS interface can replace the command line monitor ? We have just to move the command line interface to a client speaking

to

Quoted 36 lines
Quoted 11 lines
Quoted 3 lines

qemu through the DBUS interface.

This is a valid option but the problem is that local user will have to use another tool (client) to
send commands. Another option is to have a common backend with machine & user interfaces.
For example, if we use dbus as the backend, monitor commands will just be translated into dbus.
The opposite option is also valid.

Quoted 5 lines

Anyway, the motivation behind a new interface is that the monitor interface is not good enough for automation:
There are not return status for commands, no option for async notifications, no option for parallel actions in case
a command takes long time to complete (like snapshot).

All of these are valid, and addressable. Return statuses can just be added to the beginning of the output of each command (similar to how POP3 works). Async notification can be made to work by add support to the monitor for a "select" command. Semantically, select would block
the monitor and then output events. For this to work really well, you
would have to support multiple simultaneous monitor sessions. The parallel options for long running commands is already address in KVM with the migration command. We just have to rework the snapshotting to be properly asynchronous.

Quoted 8 lines

So we either a new interface is added or the existing one will be enhanced.
Since Qemu/KVM will be used in production its highly important to have a reliable channel to connects with mgmt daemons.
Dbus is a common practice for communication and used in Linux, libvirt, etc. The question is whether to add a dbus server to Qemu or a client is sufficient.

Quoted 6 lines

The main objection I have to dbus is that it's very heavy weight. It implies a rather fat infrastructure and it not very suitable for embedding. QEMU has very few dependencies and that is a strength ATM. People interested in embedding QEMU still want a good management interface so enhancing the monitor seems more preferable to me than adding a dbus dependency.

It is also not so easily portable to other OS like Windows & Mac OS, who will still be lacking a decent control API. As I mentioned in my other thread, embedding a DBus in each individual QEMU process is not the right way to write DBus services either. If you want DBus (which is questionable in itself), then you want to have a single service which manages all a QEMU
VMs. This mandates that the DBus service be outside the context of the QEMU
process itself.

Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=|

|=-           Perl modules: http://search.cpan.org/~danberr/<http://search.cpan.org/%7Edanberr/>             -=|
|=-               Projects: http://freshmeat.net/~danielpb/<http://freshmeat.net/%7Edanielpb/>              -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505
 -=|
Signature · 2 lines
Sincerly,
Yuval Kashtan
#10 lore raw
Quoted 8 lines · Yuval Kashtan

As I can see,
There is HUGH interest in management API for QEMU.
seemly, DBus is NOT the right solution for direct integration into QEMU as it is not cross platform enough, pose extra dependency and (probably) not suitable for embedded systems.

Keeping only the "old" monitor interface with no formal interface will make QEMU harder to integrate with as it requires extra work

The monitor does have an initial barrier to entry, but that can be addressed by providing a C API which sends & receives monitor commands. This does not require any intrusive modification of QEMU, at most incremental enhancements to make the monitor more complete.

Quoted 4 lines

C API is not a complete solution as it does not define well enough how will you integrate with QEMU without changing or adding to the source.. But combined with AVI's idea of some plug-in mechanism, which will use this C API, it sounds like a complete and valid solution.

You are now exposing the internals of QEMU as a stable ABI which has to be maintained indefinittely to avoid breaking these out-of-tree plugins. THis does not sound like a winning solution since it'll dramatically restrict the scope of future development of QEMU code.

Regards,
Dan.

Signature · 4 lines
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 
#11 lore raw
In reply to Yuval Kashtan
Quoted 5 lines · Yuval Kashtan

As I can see,
There is HUGH interest in management API for QEMU.
seemly, DBus is NOT the right solution for direct integration into QEMU as it is not cross platform enough, pose extra dependency and (probably) not suitable for embedded systems.

Keeping only the "old" monitor interface with no formal interface will make QEMU harder to integrate with as it requires extra work

Why can't we make the monitor interface a "formal" interface?

Regards,

Anthony Liguori

Quoted 129 lines

C API is not a complete solution as it does not define well enough how will you integrate with QEMU without changing or adding to the source.. But combined with AVI's idea of some plug-in mechanism, which will use this C API, it sounds like a complete and valid solution.

The monitor should be kept for backward compatibility, human interface and be implemented on top of that API as well, so there will also be a reference implementation of how to use the API and create a plug-in.

As of Daniel remarks regarding DBus:
- I actually have a newer version where commands are divided into
different DBus interfaces. So (hopefully) that solves the methods naming problem.
- I had to pass the server name at the CLI, since I was executing
multiple instances of QEMU.. Having an external server, raises again the question of how will that server communicate with each instance of QEMU?
- It was easier for my project to configure QEMU after it started and
not through a file, that why there is a configuration method for each option. of course there could also be a bulk method which receive them all or even read them from a file (and actually with some extra work, many of them could be made dynamics)

On Dec 11, 2007 5:00 PM, Daniel P. Berrange <[email protected] <mailto:[email protected]>> wrote:

On Tue, Dec 11, 2007 at 08:51:32AM -0600, Anthony Liguori wrote:
> Dor Laor wrote:
> >Laurent Vivier wrote:
> >>Le mardi 11 décembre 2007 à 10:10 +0100, Fabrice Bellard a écrit :
> >>
> >>>Hi,
> >>>
> >>
> >>Hi,
> >>
> >>
> >>>At this point I am not interested in integrating it into QEMU as it is
> >>>one more API level to maintain in addition to the command line monitor.
> >>>However, I can change my mind if several projects insists to have a
> >>>similar interface.
> >>>
> >>
> >>perhaps the DBUS interface can replace the command line monitor ? > >>We have just to move the command line interface to a client speaking to
> >>qemu through the DBUS interface.
> >>
> >>
> >This is a valid option but the problem is that local user will have to
> >use another tool (client) to
> >send commands. Another option is to have a common backend with machine
> >& user interfaces.
> >For example, if we use dbus as the backend, monitor commands will just
> >be translated into dbus.
> >The opposite option is also valid.
> >
> >Anyway, the motivation behind a new interface is that the monitor > >interface is not good enough for automation:
> >There are not return status for commands, no option for async > >notifications, no option for parallel actions in case
> >a command takes long time to complete (like snapshot). >
> All of these are valid, and addressable. Return statuses can just be
> added to the beginning of the output of each command (similar to how > POP3 works). Async notification can be made to work by add support to
> the monitor for a "select" command. Semantically, select would block
> the monitor and then output events. For this to work really
well, you
> would have to support multiple simultaneous monitor sessions. The > parallel options for long running commands is already address in KVM > with the migration command. We just have to rework the snapshotting to
> be properly asynchronous.
>
> >
> >So we either a new interface is added or the existing one will be > >enhanced.
> >Since Qemu/KVM will be used in production its highly important to have
> >a reliable channel to connects with mgmt daemons.
> >Dbus is a common practice for communication and used in Linux, > >libvirt, etc. The question is whether to add a dbus server to Qemu or
> >a client is sufficient.
>
> The main objection I have to dbus is that it's very heavy weight. It
> implies a rather fat infrastructure and it not very suitable for > embedding. QEMU has very few dependencies and that is a strength ATM.
> People interested in embedding QEMU still want a good management > interface so enhancing the monitor seems more preferable to me than > adding a dbus dependency.

It is also not so easily portable to other OS like Windows & Mac OS, who
will still be lacking a decent control API. As I mentioned in my other thread, embedding a DBus in each individual QEMU process is not the right
way to write DBus services either. If you want DBus (which is questionable
in itself), then you want to have a single service which manages all a QEMU
VMs. This mandates that the DBus service be outside the context of the QEMU
process itself.

Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=|
|=- Perl modules: http://search.cpan.org/~danberr/
<http://search.cpan.org/%7Edanberr/> -=|
|=- Projects: http://freshmeat.net/~danielpb/
<http://freshmeat.net/%7Edanielpb/> -=|
|=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742
7D3B 9505 -=|

Signature · 2 lines
Sincerly,
Yuval Kashtan 
#12 lore raw
Quoted 9 lines · Anthony Liguori
Quoted 5 lines · Yuval Kashtan

As I can see,
There is HUGH interest in management API for QEMU.
seemly, DBus is NOT the right solution for direct integration into QEMU as it is not cross platform enough, pose extra dependency and (probably) not suitable for embedded systems.

Keeping only the "old" monitor interface with no formal interface will make QEMU harder to integrate with as it requires extra work

Why can't we make the monitor interface a "formal" interface?

Because then fixing a type or extending the interface becomes a pain.

It's also much more difficult to specify a text-base interface completey, compared to a C api (where sometimes all you need is the header and a few comments).

Signature · 1 line
error compiling committee.c: too many arguments to function
#13 lore raw
Quoted 7 lines
Quoted 1 line

Why can't we make the monitor interface a "formal" interface?

Because then fixing a type or extending the interface becomes a pain.

It's also much more difficult to specify a text-base interface completey, compared to a C api (where sometimes all you need is the header and a few comments).

I disagree.

It's entirely possible to fully specify a text protocol, and it's just as easy to extend it in a backwards compatible way. A C API is about the most fixed interface you could possible use. A C API also requires that both sides of the interface be part of the same process on the same machine. A text protocol is trivial to implement over pretty much any transport you can think of.

IMHO we have two options:

- Integrate a GUI into qemu. This will be the only supported GUI. As different people want very different things this is unlikely to ever happen.

- Implement some sort of remote control protocol. Maybe based on the existing monitor comands, but definitely using based on a simple serial data link. This allows third party frontends to control qemu without having to integrate them into qemu itself.

If you want to implement a C library to implement the text protocol, then you can do so. If it's any good then maybe other people will also use it. However I bet a C API isn't going to be particularly pleasant, and people are going to want to talk to qemu from e.g. python and C++ without having to mess about going via your C API.

Paul

#14 lore raw
Quoted 4 lines · Paul Brook
Quoted 4 lines
Quoted 2 lines

Why can't we make the monitor interface a "formal" interface?

Because then fixing a type or extending the interface becomes a pain.

Quoted 8 lines
Quoted 4 lines

It's also much more difficult to specify a text-base interface completey, compared to a C api (where sometimes all you need is the header and a few comments).

I disagree.

It's entirely possible to fully specify a text protocol,

Of course it's possible; it has been done many times. I've printed out several pounds of http myself. It isn't easy, especially starting from something intended for human consumption.

Quoted 1 line

and it's just as easy to extend it in a backwards compatible way.

It's hard to correct a typo in a backwards compatible way. I think it's best to separate the human readable protocol from the machine readable protocol.

Quoted 1 line

A C API is about the most fixed interface you could possible use.

But it's easy to add things without breaking it.

Quoted 1 line

A C API also requires that both sides of the interface be part of the same process on the same machine.

My plan was for the library to connect to the managing process using a protocol of its choice. But I'm withdrawing it in favor of Dan Berrange's idea of having a client library.

If you prefer a dedicated machine readable protocol, then I think that's workable too. But it has to be decoupled from the human readable monitor protocol.

Signature · 1 line
error compiling committee.c: too many arguments to function
#15 lore raw
In reply to Anthony Liguori
Quoted 35 lines · Anthony Liguori
Quoted 28 lines · Dor Laor
Quoted 14 lines · Laurent Vivier
Quoted 2 lines · Fabrice Bellard

Hi,

Hi,

Quoted 5 lines

At this point I am not interested in integrating it into QEMU as it is one more API level to maintain in addition to the command line monitor. However, I can change my mind if several projects insists to have a similar interface.

Quoted 5 lines

perhaps the DBUS interface can replace the command line monitor ? We have just to move the command line interface to a client speaking to qemu through the DBUS interface.

This is a valid option but the problem is that local user will have to use another tool (client) to
send commands. Another option is to have a common backend with machine & user interfaces.
For example, if we use dbus as the backend, monitor commands will just be translated into dbus.
The opposite option is also valid.

Quoted 5 lines

Anyway, the motivation behind a new interface is that the monitor interface is not good enough for automation:
There are not return status for commands, no option for async notifications, no option for parallel actions in case
a command takes long time to complete (like snapshot).

Quoted 9 lines

All of these are valid, and addressable. Return statuses can just be added to the beginning of the output of each command (similar to how POP3 works). Async notification can be made to work by add support to the monitor for a "select" command. Semantically, select would block
the monitor and then output events. For this to work really well, you
would have to support multiple simultaneous monitor sessions. The parallel options for long running commands is already address in KVM with the migration command. We just have to rework the snapshotting to be properly asynchronous.

Or have 2 monitor interaction modes. One mode uses the command line style suitable for people / scripting languages. The other umode ses a binary XDR protocol for serializing the args & returns values for formal control APIs to use in a easy manner. It ought to be reasonably straightforward to add a binary serialization format for all existing commands

Dan.

Signature · 4 lines
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 
#16 lore raw
Quoted 34 lines · Daniel P. Berrange
Quoted 32 lines · Anthony Liguori
Quoted 30 lines · Dor Laor
Quoted 10 lines · Laurent Vivier
Quoted 3 lines · Fabrice Bellard

Hi,

Hi,

Quoted 9 lines
Quoted 3 lines

At this point I am not interested in integrating it into QEMU as it is one more API level to maintain in addition to the command line monitor. However, I can change my mind if several projects insists to have a similar interface.

perhaps the DBUS interface can replace the command line monitor ? We have just to move the command line interface to a client speaking to qemu through the DBUS interface.

This is a valid option but the problem is that local user will have to use another tool (client) to send commands. Another option is to have a common backend with machine & user interfaces. For example, if we use dbus as the backend, monitor commands will just be translated into dbus. The opposite option is also valid.

Anyway, the motivation behind a new interface is that the monitor interface is not good enough for automation:
There are not return status for commands, no option for async notifications, no option for parallel actions in case a command takes long time to complete (like snapshot).

Quoted 9 lines
Quoted 2 lines

All of these are valid, and addressable. Return statuses can just be added to the beginning of the output of each command (similar to how POP3 works). Async notification can be made to work by add support to the monitor for a "select" command. Semantically, select would block the monitor and then output events. For this to work really well, you would have to support multiple simultaneous monitor sessions. The parallel options for long running commands is already address in KVM with the migration command. We just have to rework the snapshotting to be properly asynchronous.

Or have 2 monitor interaction modes. One mode uses the command line style suitable for people / scripting languages. The other umode ses a binary XDR protocol for serializing the args & returns values for formal control APIs to use in a easy manner. It ought to be reasonably straightforward to add a binary serialization format for all existing commands

I don't think binary is inherently easier to parse than text provided that some thought is put into the format of the textual output.

I think we just want to levels of verbosity.

Regards,

Anthony Liguori

Quoted 2 lines

Dan.

#17 lore raw
Quoted 9 lines · Anthony Liguori
Quoted 6 lines · Daniel P. Berrange

Or have 2 monitor interaction modes. One mode uses the command line style suitable for people / scripting languages. The other umode ses a binary XDR protocol for serializing the args & returns values for formal control APIs to use in a easy manner. It ought to be reasonably straightforward to add a binary serialization format for all existing commands

I don't think binary is inherently easier to parse than text provided that some thought is put into the format of the textual output.

XDR (aka RFC 1014 & RFC 4506) does let you generate complex interfaces with relative ease. For example, here's the description of the remote protocol used by libvirt:

http://git.et.redhat.com/?p=libvirt.git;a=blob;f=qemud/remote_protocol.x;h=d409c74387c2642651896136aba9bc1e2b62b621;hb=HEAD

"Parsing" is done for you by stubs that are generated from the above file.

On the downside it turns out that it's not very well supported under Windows. For libvirt I had to basically port an XDR implementation by hand to MinGW and add extra functions from glibc to it.

Quoted 1 line

I think we just want to levels of verbosity.

This would work too.

On the point of controlling multiple qemu instances on a machine from a single place: Easiest way to do this would be to direct all the monitor sockets into a single known directory. Something along the lines of:

qemu -monitor unix:/var/lib/qemu-monitors/uuidgen,nowait

A control process can then just keep an eye on entries under that directory, and (unlike libvirtd) it's robust against the control process restarting.

Rich.

Signature · 4 lines
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903
#18 lore raw
Quoted 22 lines · Richard W.M. Jones
Quoted 9 lines · Anthony Liguori
Quoted 6 lines · Daniel P. Berrange

Or have 2 monitor interaction modes. One mode uses the command line style suitable for people / scripting languages. The other umode ses a binary XDR protocol for serializing the args & returns values for formal control APIs to use in a easy manner. It ought to be reasonably straightforward to add a binary serialization format for all existing commands

I don't think binary is inherently easier to parse than text provided that some thought is put into the format of the textual output.

XDR (aka RFC 1014 & RFC 4506) does let you generate complex interfaces with relative ease. For example, here's the description of the remote protocol used by libvirt:

http://git.et.redhat.com/?p=libvirt.git;a=blob;f=qemud/remote_protocol.x;h=d409c74387c2642651896136aba9bc1e2b62b621;hb=HEAD

"Parsing" is done for you by stubs that are generated from the above file.

On the downside it turns out that it's not very well supported under Windows. For libvirt I had to basically port an XDR implementation by hand to MinGW and add extra functions from glibc to it.

Quoted 1 line

I think we just want to levels of verbosity.

Quoted 7 lines

This would work too.

On the point of controlling multiple qemu instances on a machine from a single place: Easiest way to do this would be to direct all the monitor sockets into a single known directory. Something along the lines of:

qemu -monitor unix:/var/lib/qemu-monitors/uuidgen,nowait

A control process can then just keep an eye on entries under that directory, and (unlike libvirtd) it's robust against the control process restarting.

Actually, this was the original intention of the -name parameter. What a management tool would want to do is:

1) if -name is specified by user, generate one with uuidgen
2) pass -name <name> and -pidfile /path/to/well/known/location/name.pid

This will ensure uniqueness of name without requiring the creation tool to maintain any state (so no daemon is required). Right now, you would also have to store a monitor socket in that well known path. However, I'm working on a VNC tunnels patch right now that would allow the monitor to be tunneled through a VNC session. The idea here is that a management tool could just store a hint about the VNC location and then you can get at the rest of the character devices through the VNC session.

Otherwise, you end up with a bunch of temporary sockets for things like the monitor, serial devices, parallel devices, etc.

Regards,

Anthony Liguori

Quoted 2 lines

Rich.

#19 lore raw
Quoted 16 lines · Anthony Liguori

Richard W.M. Jones wrote:

Actually, this was the original intention of the -name parameter. What a management tool would want to do is:

1) if -name is specified by user, generate one with uuidgen
2) pass -name <name> and -pidfile /path/to/well/known/location/name.pid

This will ensure uniqueness of name without requiring the creation tool to maintain any state (so no daemon is required). Right now, you would also have to store a monitor socket in that well known path. However, I'm working on a VNC tunnels patch right now that would allow the monitor to be tunneled through a VNC session. The idea here is that a management tool could just store a hint about the VNC location and then you can get at the rest of the character devices through the VNC session.

Quoted 2 lines

Otherwise, you end up with a bunch of temporary sockets for things like the monitor, serial devices, parallel devices, etc.

Tunnelling things like the serial devices / parallel devices over VNC would be very useful, as using a pty/file isn't useful for remote management. Tunnelling the monitor over VNC is questionable though because it has very significant security implications - if you can connect to the VNC server, you essentially own the entire user account that the VM is running under since the monitor can be used to map arbitrary files into the guest VM. Now this may be useful in some cases, but for libvirt we really just want the monitor accessible locally via a well-known UNIX socket. Also, VNC ports are typically auto-allocated at startup so not neccessary a good predictable access method.

The reason libvirt use the PTY & direct PID ownership was because we stared off with QEMU 0.8.0. We should really just mandate use of QEMU 0.9.0 with libvirt now since its been around quite a while. Then we could just run with -daemonize, -pidfile and -monitor unix:/well/known/path.

Dan.

Signature · 4 lines
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 
#20 lore raw
Quoted 14 lines · Daniel P. Berrange
Quoted 11 lines · Anthony Liguori

Richard W.M. Jones wrote:

Actually, this was the original intention of the -name parameter. What a management tool would want to do is:

1) if -name is specified by user, generate one with uuidgen
2) pass -name <name> and -pidfile /path/to/well/known/location/name.pid

This will ensure uniqueness of name without requiring the creation tool to maintain any state (so no daemon is required). Right now, you would also have to store a monitor socket in that well known path. However, I'm working on a VNC tunnels patch right now that would allow the monitor to be tunneled through a VNC session. The idea here is that a management tool could just store a hint about the VNC location and then you can get at the rest of the character devices through the VNC session.

Otherwise, you end up with a bunch of temporary sockets for things like the monitor, serial devices, parallel devices, etc.

Quoted 11 lines

Tunnelling things like the serial devices / parallel devices over VNC would be very useful, as using a pty/file isn't useful for remote management. Tunnelling the monitor over VNC is questionable though because it has very significant security implications - if you can connect to the VNC server, you essentially own the entire user account that the VM is running under since the monitor can be used to map arbitrary files into the guest VM. Now this may be useful in some cases, but for libvirt we really just want the monitor accessible locally via a well-known UNIX socket. Also, VNC ports are typically auto-allocated at startup so not neccessary a good predictable access method.

The monitor is already tunneled through VNC ala a 'vc'. The tunnels extension I'm developing would just expose 'vc's as plain-text instead of rendered. If your management tools policy is to not make the monitor exposed over a 'vc', then it wouldn't be exposed via VNC tunneling either.

Quoted 5 lines

The reason libvirt use the PTY & direct PID ownership was because we stared off with QEMU 0.8.0. We should really just mandate use of QEMU 0.9.0 with libvirt now since its been around quite a while. Then we could just run with -daemonize, -pidfile and -monitor unix:/well/known/path.

Yeah, it would be very nice to eliminate the extra daemon.

Regards,

Anthony Liguori

Quoted 2 lines

Dan.

#21 lore raw
Quoted 35 lines · Anthony Liguori
Quoted 22 lines · Daniel P. Berrange
Quoted 16 lines · Anthony Liguori

Richard W.M. Jones wrote:

Actually, this was the original intention of the -name parameter. What a management tool would want to do is:

1) if -name is specified by user, generate one with uuidgen
2) pass -name <name> and -pidfile /path/to/well/known/location/name.pid

This will ensure uniqueness of name without requiring the creation tool to maintain any state (so no daemon is required). Right now, you would also have to store a monitor socket in that well known path. However, I'm working on a VNC tunnels patch right now that would allow the monitor to be tunneled through a VNC session. The idea here is that a management tool could just store a hint about the VNC location and then you can get at the rest of the character devices through the VNC session.

Quoted 3 lines

Otherwise, you end up with a bunch of temporary sockets for things like the monitor, serial devices, parallel devices, etc.

Quoted 11 lines

Tunnelling things like the serial devices / parallel devices over VNC would be very useful, as using a pty/file isn't useful for remote management. Tunnelling the monitor over VNC is questionable though because it has very significant security implications - if you can connect to the VNC server, you essentially own the entire user account that the VM is running under since the monitor can be used to map arbitrary files into the guest VM. Now this may be useful in some cases, but for libvirt we really just want the monitor accessible locally via a well-known UNIX socket. Also, VNC ports are typically auto-allocated at startup so not neccessary a good predictable access method.

Quoted 4 lines

The monitor is already tunneled through VNC ala a 'vc'. The tunnels extension I'm developing would just expose 'vc's as plain-text instead of rendered. If your management tools policy is to not make the monitor exposed over a 'vc', then it wouldn't be exposed via VNC tunneling either.

Ah, ok that makes alot more sense now. We already disable 'vc' for the monitor so that wouldn't be an issue.

Quoted 6 lines
Quoted 4 lines

The reason libvirt use the PTY & direct PID ownership was because we stared off with QEMU 0.8.0. We should really just mandate use of QEMU 0.9.0 with libvirt now since its been around quite a while. Then we could just run with -daemonize, -pidfile and -monitor unix:/well/known/path.

Yeah, it would be very nice to eliminate the extra daemon.

Of course libvirt daemon provides other things besides just managing the QEMU process, but yes fixing the hard parent-child relationship between the two would be good.

Dan.

Signature · 4 lines
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 
#22 lore raw
In reply to Anthony Liguori
Quoted 53 lines · Anthony Liguori
Quoted 12 lines · Richard W.M. Jones
Quoted 11 lines · Anthony Liguori
Quoted 9 lines · Daniel P. Berrange

Or have 2 monitor interaction modes. One mode uses the command line style
suitable for people / scripting languages. The other umode ses a binary XDR
protocol for serializing the args & returns values for formal control APIs to use in a easy manner. It ought to be reasonably straightforward to
add a binary serialization format for all existing commands

Quoted 8 lines
Quoted 2 lines

I don't think binary is inherently easier to parse than text provided that some thought is put into the format of the textual output.

XDR (aka RFC 1014 & RFC 4506) does let you generate complex interfaces with relative ease. For example, here's the description of the remote protocol used by libvirt:

http://git.et.redhat.com/?p=libvirt.git;a=blob;f=qemud/remote_protocol.x;h=d409c74387c2642651896136aba9bc1e2b62b621;hb=HEAD

Quoted 18 lines

"Parsing" is done for you by stubs that are generated from the above file.

On the downside it turns out that it's not very well supported under Windows. For libvirt I had to basically port an XDR implementation by hand to MinGW and add extra functions from glibc to it.

Quoted 1 line

I think we just want to levels of verbosity.

This would work too.

On the point of controlling multiple qemu instances on a machine from a single place: Easiest way to do this would be to direct all the monitor sockets into a single known directory. Something along the lines of:

Quoted 5 lines

qemu -monitor unix:/var/lib/qemu-monitors/uuidgen,nowait

A control process can then just keep an eye on entries under that directory, and (unlike libvirtd) it's robust against the control process restarting.

Actually, this was the original intention of the -name parameter. What a management tool would want to do is:

1) if -name is specified by user, generate one with uuidgen
2) pass -name <name> and -pidfile /path/to/well/known/location/name.pid

Quoted 8 lines

This will ensure uniqueness of name without requiring the creation tool to maintain any state (so no daemon is required). Right now, you would also have to store a monitor socket in that well known path. However, I'm working on a VNC tunnels patch right now that would allow the monitor to be tunneled through a VNC session. The idea here is that a management tool could just store a hint about the VNC location and then you can get at the rest of the character devices through the VNC session.

While this is good for home usage, it does not match product needs because you don't always want to allow the user of the VM to control it. For example, the user might hack memory values from the monitor and comprise his permission within the guest.

Quoted 4 lines

Otherwise, you end up with a bunch of temporary sockets for things like the monitor, serial devices, parallel devices, etc.

Actually this is what we do in Qumranet to run multiple VMs.
We just need to improve/replace the monitor. Maybe enhancing the current implementation as you suggested might be good enough, although library interface might be cleaner (no ugly return code for the user).
Thanks,
Dor.

Quoted 9 lines

Regards,

Anthony Liguori

Quoted 2 lines

Rich.

#23 lore raw
In reply to Anthony Liguori
Quoted 2 lines · Anthony Liguori

The main objection I have to dbus is that it's very heavy weight. It
implies a rather fat infrastructure and it not very suitable for embedding. QEMU has very few dependencies and that is a strength ATM. People interested in embedding QEMU still want a good management interface so enhancing the monitor seems more preferable to me than adding a dbus dependency.

I must object again that.

I use D-Bus on a very small processor (Analog Devices Blackfin BF-537) and it work very well. The library is around 200k on the target: this is very supportable for embedded device, especially when you take in account all the simplifications it allow in the code of each applications. The D-Bus library have very few and simple dependency.

D-Bus is a growing standard for the communication between applications. I expect that sooner or later, QEMU will be a D-Bus service.

Best regards,
--
Jean-Christian de Rivaz

#24 lore raw
Quoted 10 lines · Jean-Christian de Rivaz
Quoted 6 lines · Anthony Liguori

The main objection I have to dbus is that it's very heavy weight. It implies a rather fat infrastructure and it not very suitable for embedding. QEMU has very few dependencies and that is a strength ATM. People interested in embedding QEMU still want a good management interface so enhancing the monitor seems more preferable to me than adding a dbus dependency.

I must object again that.

Quoted 8 lines

I use D-Bus on a very small processor (Analog Devices Blackfin BF-537) and it work very well. The library is around 200k on the target: this is very supportable for embedded device, especially when you take in account all the simplifications it allow in the code of each applications. The D-Bus library have very few and simple dependency.

D-Bus is a growing standard for the communication between applications. I expect that sooner or later, QEMU will be a D-Bus service.

A DBus service for controlling QEMU, does not imply that QEMU needs to use DBus. It is perfectly possible to write DBus services for managing QEMU outside of the QEMU process. I've written 2 myself - the first exposed a DBus service for managing a collection of VMs, and communicated with QEMU via its monitor. The second, simply exposed the libvirt API over DBus which allows managing of QEMU, Xen, KVM, etc via the same interface.

Embedding DBus within QEMU is flawed because it neccessarily restricts you to only managing a single VM, and does not provide you any management capabilities when QEMU is not running.

Dan.

Signature · 4 lines
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 
#25 lore raw
In reply to Laurent Vivier

Am 11.12.2007 um 10:23 schrieb Laurent Vivier:

Quoted 3 lines

perhaps the DBUS interface can replace the command line monitor ? We have just to move the command line interface to a client speaking to qemu through the DBUS interface.

That would work for few platforms only!

Andreas

#26 lore raw
Quoted 8 lines · Andreas Färber

Am 11.12.2007 um 10:23 schrieb Laurent Vivier:

Quoted 4 lines

perhaps the DBUS interface can replace the command line monitor ? We have just to move the command line interface to a client speaking to
qemu through the DBUS interface.

That would work for few platforms only!

Linux, windows, freebsd, netbsd, macos...
And all platforms with a working GNOME (Solaris, HPUX, AIX, I guess too)

Laurent

Signature · 3 lines
------------- [email protected]  --------------
       "Any sufficiently advanced technology is
  indistinguishable from magic." - Arthur C. Clarke
#27 lore raw

Am 11.12.2007 um 11:29 schrieb Laurent Vivier:

Quoted 8 lines · Andreas Färber
Quoted 7 lines

Am 11.12.2007 um 10:23 schrieb Laurent Vivier:

Quoted 4 lines

perhaps the DBUS interface can replace the command line monitor ? We have just to move the command line interface to a client speaking to
qemu through the DBUS interface.

Quoted 4 lines
Quoted 1 line

That would work for few platforms only!

Linux, windows, freebsd, netbsd, macos...
And all platforms with a working GNOME (Solaris, HPUX, AIX, I guess too)

(Recent) Linux and Solaris certainly yes.
However, Windows is a fork in progress, and Mac OS X does not ship D-Bus to my knowledge. Requiring installation of such a system-level component, likely requiring administrative priviledges, does not seem like a good idea to me. I am okay with using it where it is available though.

Andreas

#28 lore raw
In reply to Laurent Vivier

Laurent Vivier kirjoitti:

Quoted 10 lines · Fabrice Bellard
Quoted 1 line

Hi,

Hi,

Quoted 1 line

At this point I am not interested in integrating it into QEMU as it is one more API level to maintain in addition to the command line monitor. However, I can change my mind if several projects insists to have a similar interface.

perhaps the DBUS interface can replace the command line monitor ? We have just to move the command line interface to a client speaking to qemu through the DBUS interface.

That would pretty much ruin the Mac OS X port and maybe others that haven't got dbus in a "default" installation.

-- Heikki Lindholm

#29 lore raw
In reply to Fabrice Bellard
Quoted 4 lines · Fabrice Bellard

Hi,

At this point I am not interested in integrating it into QEMU as it is one more API level to maintain in addition to the command line monitor. However, I can change my mind if several projects insists to have a similar interface.

I think that many projects now want to control qemu programatically. The monitor is not a good interface since it is text-based, hard to parse, and liable to change without notice when new features are added. However, I agree that having many similar constructs is not a good thing, and that we should retain the monitor for non-programmatic control.

What do you say to implementing the qemu interface as a plugin API, and implementing the monitor on top of this API? e.g.:

qemu loads /usr/local/lib/qemu/libmonitor.so, which uses the API to export the good old qemu monitor interface. If it finds /usr/local/lib/qemu/libdbus.so, it loads an additional dbus interface. If libvirt wants to drop a libvirtapi.so into that directory, it can control qemu through that.

Signature · 1 line
error compiling committee.c: too many arguments to function
#30 lore raw
Quoted 11 lines · Avi Kivity
Quoted 4 lines · Fabrice Bellard

Hi,

At this point I am not interested in integrating it into QEMU as it is one more API level to maintain in addition to the command line monitor. However, I can change my mind if several projects insists to have a similar interface.

I think that many projects now want to control qemu programatically. The monitor is not a good interface since it is text-based, hard to parse, and liable to change without notice when new features are added. However, I agree that having many similar constructs is not a good thing, and that we should retain the monitor for non-programmatic control.

What do you say to implementing the qemu interface as a plugin API, and implementing the monitor on top of this API? e.g.:

qemu loads /usr/local/lib/qemu/libmonitor.so, which uses the API to export the good old qemu monitor interface. If it finds /usr/local/lib/qemu/libdbus.so, it loads an additional dbus interface. If libvirt wants to drop a libvirtapi.so into that directory, it can control qemu through that.

Why not just improve the monitor interface? Half the internet is based on human-readable text protocols.

I don't think there would be a lot of objections to adding a status field with each monitor command. It could even be done in a way that was backwards compatible. For instance:

(qemu) info kqemu
kqemu support is not compiled in
(qemu) verbosity status
(qemu) info kqemu
-38: kqemu support is not compiled in

The other two things to add to the monitor are support for multiple simultaneous connections and some sort of select command.

Regards,

Anthony Liguori

#31 lore raw
In reply to Avi Kivity
Quoted 15 lines · Avi Kivity
Quoted 7 lines · Fabrice Bellard

Hi,

At this point I am not interested in integrating it into QEMU as it is one more API level to maintain in addition to the command line monitor. However, I can change my mind if several projects insists to have a similar interface.

I think that many projects now want to control qemu programatically. The monitor is not a good interface since it is text-based, hard to parse, and liable to change without notice when new features are added. However, I agree that having many similar constructs is not a good thing, and that we should retain the monitor for non-programmatic control.

Quoted 8 lines

What do you say to implementing the qemu interface as a plugin API, and implementing the monitor on top of this API? e.g.:

qemu loads /usr/local/lib/qemu/libmonitor.so, which uses the API to export the good old qemu monitor interface. If it finds /usr/local/lib/qemu/libdbus.so, it loads an additional dbus interface. If libvirt wants to drop a libvirtapi.so into that directory, it can control qemu through that.

To be honest this is overkill. IMHO, there should simply be a client side 'libqemumonitor.so' which provides a formal C API for applications to use. This C api would then talk to the QEMU monitor, thus isolating all the string parsing & formatting in one place. Behind the scenes I could imagine dropping in an alternative QEMU monitor impl which used an XDR serialization format for the args & reply to avoid the string parsing/formatting, but this is a minor detail, compared to the big picture, which is that applications would benefit from a simply C api implementing the monitor commands. I'd be interested in using such an API in libvirt, since I could remove the string parsing/formatting code I currently have. Having libvirt drop a custom .so into the QEMU process just feels horribly wrong.

Regards,
Dan.

Signature · 4 lines
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 
#32 lore raw
Quoted 11 lines · Daniel P. Berrange
Quoted 7 lines

I think that many projects now want to control qemu programatically. The monitor is not a good interface since it is text-based, hard to parse, and liable to change without notice when new features are added. However, I agree that having many similar constructs is not a good thing, and that we should retain the monitor for non-programmatic control.

What do you say to implementing the qemu interface as a plugin API, and implementing the monitor on top of this API? e.g.:

qemu loads /usr/local/lib/qemu/libmonitor.so, which uses the API to export the good old qemu monitor interface. If it finds /usr/local/lib/qemu/libdbus.so, it loads an additional dbus interface. If libvirt wants to drop a libvirtapi.so into that directory, it can control qemu through that.

To be honest this is overkill. IMHO, there should simply be a client side 'libqemumonitor.so' which provides a formal C API for applications to use.

libqemumonitor.so is an excellent idea. perhaps the libvirt code can be used as a base?

We should also provide bindings to the saner languages that management apps are typically written in.

Signature · 1 line
error compiling committee.c: too many arguments to function
#33 lore raw
Quoted 3 lines · Avi Kivity

libqemumonitor.so is an excellent idea. perhaps the libvirt code can be used as a base?

We should also provide bindings to the saner languages that management apps are typically written in.

Libvirt has most of the major languages covered now. The only language I'm aware of that we are missing (and people request) is PHP.

Rich.

Signature · 4 lines
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903
#34 lore raw
In reply to Yuval Kashtan
Quoted 4 lines · Yuval Kashtan

- This is very useful when you want to manage and control QEMU, for instance developing a GUI to attach and detach usb devices or controlling more than one instance of QEMU from a single management point, receiving parameters externally and more.

This capability is already possible using the monitor API. I've implemented it in libvirt, and in virt-manager and can easily hotplug/remove USB devices. So DBus is not required to do this and does not really make it any easier to use. DBus is very verbose to use from languages like C, so switching from the monitor to DBus API would not really help simplify my existing code. On the other hand, having a library providing a simple client side C API to send & receive monitor commands, would be beneficial

Dan.

Signature · 4 lines
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 
#35 lore raw
Quoted 6 lines · Daniel P. Berrange
Quoted 4 lines · Yuval Kashtan

- This is very useful when you want to manage and control QEMU, for instance developing a GUI to attach and detach usb devices or controlling more than one instance of QEMU from a single management point, receiving parameters externally and more.

Quoted 6 lines

This capability is already possible using the monitor API. I've implemented
it in libvirt, and in virt-manager and can easily hotplug/remove USB devices.
So DBus is not required to do this and does not really make it any easier
to use. DBus is very verbose to use from languages like C, so switching from
the monitor to DBus API would not really help simplify my existing code. On
the other hand, having a library providing a simple client side C API to send & receive monitor commands, would be beneficial

For the short term I think it is better as you said to rely on libvirt which already has some support for QEMU.

As it was suggested, improving the monitor seems the easiest, maybe with an additionnal mode to provide a standardized way to get a return value for each command. Providing an example client code to directly use the monitor seems a good idea too.

Regarding the configuration, I can assure there will be soon a QEMU configuration file. The question is whether it will be included before the next release is out !

Regards,

Fabrice.

#36 lore raw
In reply to Yuval Kashtan
Quoted 16 lines · Yuval Kashtan

Hello All,
Attached is a proposed patch which adds DBus support to QEMU. DBus is a standard message bus for linux (
http://www.freedesktop.org/wiki/Software/dbus )
The idea behind this is to allow for external programs such as controlling GUI or HyperVisors to communicate and control QEMU, in a standard manner. Although it is possible to connect to the monitor, an API is more standard, theres no need to parse texts and error messages, no internationalization problems and in general is a much better idea.

Implementation:
This is done by creating a DBus server from QEMU which raise signals and act upon methods.
Methods mainly implement same logic as the current command line options and monitor does.

Quoted 13 lines

How to use:
To enable DBus support you'll have to add --enable-dbus when you execure configure script.
Then when you execute QEMU, you'll have to add -dbus-service <service_name> where service_name follows the DBus naming convention ( xxx.xxx.xxx....) To support QEMU configuration through DBus, you'll also have to add -dbus_configuration which will cause QEMU to wait until ConfigDone is called through the DBus interface. this allows external programs time to call DBus methods starting with Config_ which changes configuration (just as the CLI does) thus enabling invocation of QEMU without parameters (beside the DBus ones).
With that, we have implemented a nice python script that reads VM's configuration from INI file.

Frankly this is complete & utter overkill. QEMU needs a configuration file for machines, but writing a configuration file in an external app and then sending that over DBus to QEMU is just insane, when QEMU can simply implement a config file directly. Spawning QEMU then just becomes 'qemu -config foo.cfg' instead of a mass of DBus calls. Having QEMU do the config file directly is also portable to all operating systems and simpler to maintain, and easier to deploy since it does not mandate a depedancy on a message bus.

Quoted 7 lines

Currently support was added to all important CLI configuration and some online monitor functions (such as connecting and disconnecting usb devices).

configuration methods begins with Config_ prefix and monitor ones with Monitor_.
For a complete list you can just execute qemu and connect with dbus-viewer to see what is supported.

The style of the DBus API does not make any sense & does not follow the common recommended approach for dbus services.

The idea of well-known bus names is that they are well-known. Passing in the DBus well-known name as a --service command line arg is non-sensical because then it ceases to be well-known since it can change at the whim of the app / admin running QEMU.

Simply exporting a single object having populating that with a flat set of methods mapping 1-1 onto the monitor commands is a bad idea. THis has been done before and is very much unliked & discouraged (eg the Skype dbus control API which maps DBus methods straight onto the SKype monitor). The idea with DBus is to provide a tree of objects mapping to objects managed within the application, and then provide contextually relevant methods.

So for a virtual machine management application you might have a main manager object (eg '/qemu/Manager') which provides a way to list virtual machines. Each virtual machine might then be its own object (eg '/qemu/Machines/<name>'). From a machine one might have methods to list devices, and add & remove devices. Each device though would be an object '/qemu/Machines/<name>/Devices/<device>'. The device objects would implement different interfaces depending on the type of device being managed. eg, you might have a qemu.Device.Disk interface, a qemu.Device.USB interface, etc, etc, and each interface would have methods relevant to that type of device.

Which dovetails into the next point - having a DBus API for a single VM is not really much use. To be generally useful it needs to have a single DBus service to control all virtual machines (ie QEMU instances). This implies that any DBus service doesn't belong in the QEMU process itself.

You're now back to square one - the DBus control service needs to spawn QEMU instances and talk to the QEMU monitor.

IMHO, the entire idea of bolting DBus into QEMU to provide a control API is just fundamentally flawed.

Looking at what you're trying to address I see two core problems

- Interacting with QEMU at runtime to change various configs
- Configuring QEMU at startup

For the first, we currently have the monitor. As you noted this is hard to interact with programatically since it involves parsing & formating strings. The way to deal with this problem is to provide a 'libqemumonitor.so' which exposes a formal C api for the various runtime control needs. Internally this library would talk to the monitor. This ensures that all the string parsing & formatting is isolated in a single source, trivially usable by any application. Such a library would be easily cross-OS portable and not impose unneccessary infrastructure on applications using it.

For the second problem of configuring QEMU, we're back at the often raised point of QEMU needing a configuration file so applications don't need to build up giant command line args. Once QEMU had a configuration file, one might want to provide a library API 'libqemuconfig.so' to let both QEMU itself, and applications using QEMU read and write the config files with well define APIs. Again this is portable and does not impose unneccessary infrastructure.

One might even combine the libqemuconfig & libqemumonitor into a single general purpose libqemucontrol.so library for apps to use.

Quoted 10 lines

All the dbus handling routines can be found in dbus-monitor.c. I have two different implementations of this:
1) A single threaded version. which comply to the qemu standard of not opening additional threads.
2) A multi threaded version which open an additional, single, thread which handles all the DBus load. I actually believe this version is better as it allows QEMU to continue execution of guest operations even when there are DBus methods/signals to handle, whereas in the first option, DBus is integrated into QEMU mainloop. Also this makes it possible to monitor even during long operations (like monitoring the progress of savevm)

The multi-threaded version will be very hard todo safely. Any monitor command would need to lock any data structures it touched from access by the main QEMU thread to avoid data integrity issues. Likewise operations in the main thread would need to lock data structures against the monitor. So you don't really solve the problem you think you do.

This question of single vs multi threaded again demonstrates to me that embedding DBus in QEMU is the wrong solution. If there is a need for a DBus control API for QEMU, it needs to be higher up the stack, in a separate QEMU management service independant of the main QEMU emulator processses. I've written such a DBus api in the past - see the 'perl-QEMU-Manager' RPM here which provides a DBus API for qemu written in Perl, and the 'qemu-admin' app which provides a python GUI using the DBus API:

http://people.redhat.com/berrange/olpc/sdk/SRPMS/

Since writing that code though, I came to the conclusion the idea was flawed in many ways. Using DBus was one flaw. Targetting only QEMU was the second. Instead I now work on libvirt which provides a formal C API for controlling virtual machines, one which is able to support QEMU, Xen, KVM, etc, etc. So any GUI management app can work with any virtualization technology.

Dan.

Signature · 4 lines
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=|