Greetings, I'm seeing warnings when compiling KVM-87 on 64-bit jaunty. Make and make install seem to complete and the module loads but networking fails on VMs. ~$ uname -a Linux tank 2.6.28-13-server #45-Ubuntu SMP Tue Jun 30 22:56:18 UTC 2009 x86_64 GNU/Linux MAKE OUTPUT: CC qemu-nbd.o CC qemu-tool.o CC tool-osdep.o CC cutils.o CC cache-utils.o CC qemu-malloc.o CC qemu-option.o CC module.o CC block/cow.o block/cow.c: In function ‘cow_create’: block/cow.c:251: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result block/cow.c:253: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result CC block/qcow.o block/qcow.c: In function ‘qcow_create’: block/qcow.c:804: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result block/qcow.c:806: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result block/qcow.c:811: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result CC aes.o CC block/vmdk.o block/vmdk.c: In function ‘vmdk_snapshot_create’: block/vmdk.c:236: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result block/vmdk.c: In function ‘vmdk_create’: block/vmdk.c:774: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result block/vmdk.c:775: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result block/vmdk.c:777: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result block/vmdk.c:783: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result block/vmdk.c:789: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result block/vmdk.c:806: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result CC block/cloop.o CC block/dmg.o CC block/bochs.o block/bochs.c: In function ‘seek_to_sector’: block/bochs.c:202: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result CC block/vpc.o CC block/vvfat.o block/vvfat.c: In function ‘commit_one_file’: block/vvfat.c:2259: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result CC block/qcow2.o block/qcow2.c: In function ‘qcow_create2’: block/qcow2.c:745: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result block/qcow2.c:754: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result block/qcow2.c:755: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result block/qcow2.c:757: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result block/qcow2.c:760: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result block/qcow2.c:765: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result block/qcow2.c:768: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result block/qcow2.c:771: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result CC block/qcow2-refcount.o CC block/qcow2-cluster.o CC block/qcow2-snapshot.o CC block/parallels.o CC block/nbd.o CC nbd.o CC block.o block.c: In function ‘bdrv_open2’: block.c:374: warning: ignoring return value of ‘realpath’, declared with attribute warn_unused_result CC aio.o CC posix-aio-compat.o CC block/raw-posix.o block/raw-posix.c: In function ‘raw_create’: block/raw-posix.c:851: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result CC compatfd.o LINK qemu-nbd CC qemu-io.o CC cmd.o LINK qemu-io GEN qemu-img-cmds.h CC qemu-img.o LINK qemu-img CC libhw64/virtio.o CC libhw64/virtio-pci.o CC libhw64/fw_cfg.o CC libhw64/watchdog.o CC libhw64/nand.o CC libhw64/ecc.o CC libhw64/m48t59.o CC libhw64/escc.o CC libhw64/lsi53c895a.o CC libhw64/esp.o CC libhw64/dma-helpers.o CC libhw64/sysbus.o AR libhw64/libqemuhw64.a CC readline.o CC console.o CC irq.o CC ptimer.o CC i2c.o CC smbus.o CC smbus_eeprom.o CC max7310.o CC max111x.o CC wm8750.o CC ssd0303.o CC ssd0323.o CC ads7846.o CC stellaris_input.o CC twl92230.o CC tmp105.o CC lm832x.o CC eeprom93xx.o CC tsc2005.o CC scsi-disk.o CC cdrom.o CC scsi-generic.o CC usb.o CC usb-hub.o CC usb-linux.o usb-linux.c: In function ‘usb_host_read_file’: usb-linux.c:1162: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result CC usb-hid.o CC usb-msd.o CC usb-wacom.o CC usb-serial.o CC usb-net.o CC sd.o CC ssi-sd.o CC bt.o CC bt-host.o CC bt-vhci.o CC bt-l2cap.o CC bt-sdp.o CC bt-hci.o CC bt-hid.o CC usb-bt.o CC bt-hci-csr.o CC buffered_file.o CC migration.o CC migration-tcp.o CC net.o CC qemu-sockets.o CC qemu-char.o CC net-checksum.o CC savevm.o CC msmouse.o CC ps2.o CC qdev.o CC ssi.o CC migration-exec.o CC audio/audio.o CC audio/noaudio.o CC audio/wavaudio.o CC audio/mixeng.o CC audio/sdlaudio.o CC audio/ossaudio.o CC audio/wavcapture.o CC keymaps.o CC sdl.o CC x_keymap.o CC curses.o CC vnc.o CC acl.o CC d3des.o CC vnc-tls.o CC vnc-auth-vencrypt.o CC slirp/cksum.o CC slirp/if.o CC slirp/ip_icmp.o CC slirp/ip_input.o CC slirp/ip_output.o CC slirp/slirp.o CC slirp/mbuf.o CC slirp/misc.o slirp/misc.c: In function ‘fork_exec’: slirp/misc.c:368: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result CC slirp/sbuf.o CC slirp/socket.o CC slirp/tcp_input.o CC slirp/tcp_output.o CC slirp/tcp_subr.o CC slirp/tcp_timer.o CC slirp/udp.o CC slirp/bootp.o CC slirp/debug.o CC slirp/tftp.o AR libqemu_common.a GEN x86_64-softmmu/qemu-options.h CC x86_64-softmmu/vl.o /usr/local/src/kvm-87/vl.c: In function ‘qemu_event_increment’: /usr/local/src/kvm-87/vl.c:3777: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result /usr/local/src/kvm-87/vl.c: In function ‘main’: /usr/local/src/kvm-87/vl.c:5928: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result /usr/local/src/kvm-87/vl.c:6373: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result /usr/local/src/kvm-87/vl.c:6392: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result CC x86_64-softmmu/osdep.o GEN x86_64-softmmu/qemu-monitor.h CC x86_64-softmmu/monitor.o CC x86_64-softmmu/pci.o CC x86_64-softmmu/loader.o CC x86_64-softmmu/isa_mmio.o CC x86_64-softmmu/machine.o CC x86_64-softmmu/gdbstub.o GEN x86_64-softmmu/gdbstub-xml.c CC x86_64-softmmu/gdbstub-xml.o CC x86_64-softmmu/virtio-blk.o CC x86_64-softmmu/virtio-balloon.o CC x86_64-softmmu/virtio-net.o CC x86_64-softmmu/virtio-console.o CC x86_64-softmmu/usb-ohci.o CC x86_64-softmmu/eepro100.o CC x86_64-softmmu/ne2000.o CC x86_64-softmmu/pcnet.o CC x86_64-softmmu/rtl8139.o CC x86_64-softmmu/e1000.o CC x86_64-softmmu/wdt_ib700.o CC x86_64-softmmu/wdt_i6300esb.o CC x86_64-softmmu/ide.o CC x86_64-softmmu/pckbd.o CC x86_64-softmmu/vga.o CC x86_64-softmmu/sb16.o CC x86_64-softmmu/es1370.o CC x86_64-softmmu/ac97.o CC x86_64-softmmu/dma.o CC x86_64-softmmu/fdc.o CC x86_64-softmmu/mc146818rtc.o CC x86_64-softmmu/serial.o CC x86_64-softmmu/i8259.o CC x86_64-softmmu/i8254.o CC x86_64-softmmu/pcspk.o CC x86_64-softmmu/pc.o CC x86_64-softmmu/cirrus_vga.o CC x86_64-softmmu/apic.o CC x86_64-softmmu/ioapic.o CC x86_64-softmmu/parallel.o CC x86_64-softmmu/acpi.o CC x86_64-softmmu/piix_pci.o CC x86_64-softmmu/usb-uhci.o CC x86_64-softmmu/vmmouse.o CC x86_64-softmmu/vmport.o CC x86_64-softmmu/vmware_vga.o CC x86_64-softmmu/hpet.o CC x86_64-softmmu/device-hotplug.o CC x86_64-softmmu/pci-hotplug.o /usr/local/src/kvm-87/hw/pci-hotplug.c: In function ‘pci_device_hot_remove_success’: /usr/local/src/kvm-87/hw/pci-hotplug.c:248: warning: unused variable ‘adev’ CC x86_64-softmmu/smbios.o CC x86_64-softmmu/extboot.o CC x86_64-softmmu/i8254-kvm.o CC x86_64-softmmu/exec.o /usr/local/src/kvm-87/exec.c: In function ‘file_ram_alloc’: /usr/local/src/kvm-87/exec.c:2547: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result CC x86_64-softmmu/translate-all.o CC x86_64-softmmu/cpu-exec.o CC x86_64-softmmu/translate.o CC x86_64-softmmu/host-utils.o CC x86_64-softmmu/tcg/tcg.o CC x86_64-softmmu/tcg/tcg-runtime.o CC x86_64-softmmu/qemu-kvm.o /usr/local/src/kvm-87/qemu-kvm.c: In function ‘ap_main_loop’: /usr/local/src/kvm-87/qemu-kvm.c:1965: warning: unused variable ‘data’ /usr/local/src/kvm-87/qemu-kvm.c: At top level: /usr/local/src/kvm-87/qemu-kvm.c:67: warning: ‘ioperm_head’ defined but not used In function ‘memset’, inlined from ‘kvm_get_phys_ram_page_bitmap’ at /usr/local/src/kvm-87/qemu-kvm.c:2822: /usr/include/bits/string3.h:82: warning: call to ‘__warn_memset_zero_len’ declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters CC x86_64-softmmu/fpu/softfloat-native.o CC x86_64-softmmu/op_helper.o CC x86_64-softmmu/helper.o CC x86_64-softmmu/qemu-kvm-x86.o /usr/local/src/kvm-87/qemu-kvm-x86.c:1535: warning: no previous prototype for ‘kvm_arch_do_ioperm’ CC x86_64-softmmu/kvm-tpr-opt.o gcc -I. -I.. -I/usr/local/src/kvm-87/target-i386 -I/usr/local/src/kvm-87 -MMD -MT qemu-kvm-helper.o -MP -DNEED_CPU_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D__user= -I/usr/local/src/kvm-87/tcg -I/usr/local/src/kvm-87/tcg/x86_64 -I/usr/local/src/kvm-87/fpu -DHAS_AUDIO -DHAS_AUDIO_CHOICE -I/usr/local/src/kvm-87/slirp -g -fno-strict-aliasing -O2 -Wall -Wundef -Wendif-labels -Wwrite-strings -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -m64 -I/usr/local/src/kvm-87/kvm/include -I/usr/local/src/kvm-87/kvm/include/x86 -c -o qemu-kvm-helper.o /usr/local/src/kvm-87/qemu-kvm-helper.c CC x86_64-softmmu/disas.o CC x86_64-softmmu/i386-dis.o AR x86_64-softmmu/libqemu.a LINK x86_64-softmmu/qemu-system-x86_64 libqemu.a(qemu-kvm.o): In function `memset': /usr/include/bits/string3.h:82: warning: memset used with constant zero length parameter; this could be due to transposed parameters make -C /lib/modules/2.6.28-13-server/build M=`pwd` \ LINUXINCLUDE="-I`pwd`/include -Iinclude \ -Iarch/x86/include -I`pwd`/include-compat \ -include include/linux/autoconf.h \ -include `pwd`/x86/external-module-compat.h " \ "$@" Building modules, stage 2. MODPOST 3 modules make -C kvm/extboot make[1]: Entering directory `/usr/local/src/kvm-87/kvm/extboot' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/usr/local/src/kvm-87/kvm/extboot' if ! [ -f pc-bios/extboot.bin ] \ || ! cmp -s pc-bios/extboot.bin kvm/extboot/extboot.bin; then \ cp kvm/extboot/extboot.bin pc-bios/extboot.bin; \ fi END MAKE OUTPUT Guest command: /usr/local/kvm/bin/qemu-system-x86_64 -name keymaster -vnc localhost:22 -pidfile /var/run/kvmctl/keymaster.pid -serial mon:unix:/var/run/kvmctl/keymaster.socket,server,nowait -daemonize -M pc -m 512 -smp 1 -localtime -drive index=0,media=disk,if=ide,file=/vm/shared/keymaster/root.qcow2 -drive index=1,media=disk,if=ide,file=/vm/shared/keymaster/swap.qcow2 -boot c -net nic,macaddr=52:54:00:01:16:01,vlan=0 -net tap,script=/etc/kvmctl/scripts/kvm-ifup-test,vlan=0 -- Randy Smith http://www.vuser.org/ http://perlstalker.blogspot.com/
Attachment:
signature.asc
Description: OpenPGP digital signature