From: Sander Eikelenboom Subject: Upstream qemu-xen, log verbosity and compile errors when enabling debug, filenaming Date: Thu, 6 Dec 2012 17:54:54 +0100 Message-ID: <272767244.20121206175454@eikelenboom.it> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel Cc: Anthony PERARD , Jiang Yunhong , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Hi All, Yesterday I have tried building and using upstream qemu and seabios. Config.mk: QEMU_UPSTREAM_URL ?= git://git.qemu.org/qemu.git QEMU_UPSTREAM_REVISION ?= master SEABIOS_UPSTREAM_URL ?= git://git.qemu.org/seabios.git SEABIOS_UPSTREAM_TAG ?= master And i'm happy to say that it works quite ok, even with (secondary pci) pci-passthrough ( using an ATI gfx adapter and windows7 as guest os) :-). But it seems to have an issue with a USB controller which is trying to use msi-X interrupts, which makes xl dmesg report: (XEN) [2012-12-06 16:07:24] vmsi.c:108:d32767 Unsupported delivery mode 3 and when "pci_msitranslate=0" is set the error still occurs, only this time the correct domain number is reported, instead of the 32767. However, when trying to debug, i noticed although making a debug build (make debug=y && make debug=y install), qemu-dm-.log stays almost empty. It seems all the defines related to debugging are not set. - Would it be appropriated to enable them all when making a debug build ? - Would it be wise to also have some more verbose logging when not running a debug build ? - And if yes, what would be the nicest way to set the defines ? - Should the naming of the debug defines be made more consistent ? When enabling these debug defines by hand: xen-all.c #define DEBUG_XEN xen-mapcache.c #define MAPCACHE_DEBUG hw/xen-host-pci-device.c #define XEN_HOST_PCI_DEVICE_DEBUG hw/xen_platform.c #define DEBUG_PLATFORM hw/xen_pt.h #define XEN_PT_LOGGING_ENABLED #define XEN_PT_DEBUG_PCI_CONFIG_ACCESS I get a lot of compile errors related to wrong types in the debug printf's. Another thing that occurred to me was that the file naming doesn't seem to be overly consistent: xen-all.c xen-mapcache.c xen-mapcache.h xen-stub.c xen_apic.c hw/xen_backend.c hw/xen_backend.h hw/xen_blkif.h hw/xen_common.h hw/xen_console.c hw/xen_devconfig.c hw/xen_disk.c hw/xen_domainbuild.c hw/xen_domainbuild.h hw/xenfb.c hw/xen.h hw/xen-host-pci-device.c hw/xen-host-pci-device.h hw/xen_machine_pv.c hw/xen_nic.c hw/xen_platform.c hw/xen_pt.c hw/xen_pt_config_init.c hw/xen_pt.h hw/xen_pt_msi.c Would it be worthwhile to make it: - consistent all underscore or all minus ? - allways xen_ (or xen- depending on the above) ? -- Sander