Re: [Qemu-devel] Comment for Solaris fix for the HPTC

2007-09-16 Thread Ben Taylor

 Johannes Schindelin [EMAIL PROTECTED] wrote: 
 Hi Ben,
 
 On Sat, 15 Sep 2007, Ben Taylor wrote:
 
  +#ifdef __sun__
  +/* Have to define this for Solaris as ULONG_LONG_MAX is not defined
  +   anywhere.  ULONG_MAX is correct only on _LP64 systems */
  +#define ULONG_LONG_MAX 18446744073709551615UL
  +#endif
  +
 
 These constants are always defined, right?  So why not #ifndef 
 ULONG_LONG_MAX?

I fear I may not have explained this well.

On the Solaris systems I have access to, I find no system include file
that defines ULONG_LONG_MAX.

There are defines for ULONG_MAX which is equivilent to the value that
ULONG_LONG_MAX is, but only when the system is being compiled on
an _LP64 (ie x86_64) system.  When the system is 32-bit, ULONG_MAX
defaults to a typical max value for a 32-bit unsigned int.

That help?

Ben




Re: [Qemu-devel] Re: about NICs

2007-09-16 Thread Filip Navara
Both of these cards have implementations for QEMU. The PCnet one is in the
CVS for quite some time and the e1000 emulation was discussed on the mailing
list some time ago, but wasn't merged (yet?).

Best regards, Filip Navara

On 9/15/07, Ben Pfaff [EMAIL PROTECTED] wrote:

 Christian MICHON [EMAIL PROTECTED] writes:

  Look at the other virtualizers/emulators:
  Realtek RTL8139 is the standard eth0 for MS VirtualPC 2007
 
  I have not checked Parallels for ages but I believe it was the case too.

 VMware has pcnet32 (older versions) and e1000 (newer versions)
 NICs.
 --
 Ben Pfaff
 http://benpfaff.org






Re: [Qemu-devel] Comment for Solaris fix for the HPTC

2007-09-16 Thread Andreas Schwab
Ben Taylor [EMAIL PROTECTED] writes:

  Johannes Schindelin [EMAIL PROTECTED] wrote: 
 Hi Ben,
 
 On Sat, 15 Sep 2007, Ben Taylor wrote:
 
  +#ifdef __sun__
  +/* Have to define this for Solaris as ULONG_LONG_MAX is not defined
  +   anywhere.  ULONG_MAX is correct only on _LP64 systems */
  +#define ULONG_LONG_MAX 18446744073709551615UL
  +#endif
  +
 
 These constants are always defined, right?  So why not #ifndef 
 ULONG_LONG_MAX?

 I fear I may not have explained this well.

 On the Solaris systems I have access to, I find no system include file
 that defines ULONG_LONG_MAX.

 There are defines for ULONG_MAX which is equivilent to the value that
 ULONG_LONG_MAX is, but only when the system is being compiled on
 an _LP64 (ie x86_64) system.  When the system is 32-bit, ULONG_MAX
 defaults to a typical max value for a 32-bit unsigned int.

Your reference to ULONG_MAX is a red herring.  ULONG_MAX is the limit
for unsigned long, and ULONG_LONG_MAX is the limit for unsigned long
long.  If your compiler does not support the long long type then
ULONG_LONG_MAX should not be defined either.  Instead, vl.c should use
UINT64_MAX.

Andreas.

-- 
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.




Re: [Qemu-devel] Comment for Solaris fix for the HPTC

2007-09-16 Thread Johannes Schindelin
Hi,

On Sun, 16 Sep 2007, Ben Taylor wrote:

  Johannes Schindelin [EMAIL PROTECTED] wrote: 
 
  On Sat, 15 Sep 2007, Ben Taylor wrote:
  
   +#ifdef __sun__
   +/* Have to define this for Solaris as ULONG_LONG_MAX is not defined
   +   anywhere.  ULONG_MAX is correct only on _LP64 systems */
   +#define ULONG_LONG_MAX 18446744073709551615UL
   +#endif
   +
  
  These constants are always defined, right?  So why not #ifndef 
  ULONG_LONG_MAX?
 
 I fear I may not have explained this well.

I fear _I_ may not have made myself very clear.  What I meant was: why not 
check if ULONG_LONG_MAX is undefined, instead of checking if __sun__ is 
defined?  That way, more than one platform might benefit from this change.

Just an idea,
Dscho




[Qemu-devel] qemu vl.c

2007-09-16 Thread Thiemo Seufer
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Thiemo Seufer ths 07/09/16 19:53:43

Modified files:
.  : vl.c 

Log message:
Use UINT64_MAX instead of ULONG_LONG_MAX, suggested by Andreas Schwab.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/vl.c?cvsroot=qemur1=1.337r2=1.338




[Qemu-devel] qemu vl.c hpet.h

2007-09-16 Thread Thiemo Seufer
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Thiemo Seufer ths 07/09/16 20:03:23

Modified files:
.  : vl.c 
Added files:
.  : hpet.h 

Log message:
Add a local copy of hpet.h.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/vl.c?cvsroot=qemur1=1.338r2=1.339
http://cvs.savannah.gnu.org/viewcvs/qemu/hpet.h?cvsroot=qemurev=1.1




[Qemu-devel] qemu Changelog Makefile Makefile.target TODO ae...

2007-09-16 Thread Thiemo Seufer
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Thiemo Seufer ths 07/09/16 21:08:06

Modified files:
.  : Changelog Makefile Makefile.target TODO aes.c 
 alpha-dis.c arm-dis.c arm-semi.c block-bochs.c 
 block-cloop.c block-cow.c block-dmg.c 
 block-qcow.c block-qcow2.c block-raw.c 
 block-vmdk.c block-vpc.c block-vvfat.c block.c 
 block_int.h bswap.h cocoa.m configure console.c 
 cpu-all.h cpu-defs.h cpu-exec.c cutils.c 
 dis-asm.h disas.c dyngen-exec.h dyngen.c 
 dyngen.h elf.h elf_ops.h exec-all.h exec.c 
 gdbstub.c keymaps.c kqemu.c kqemu.h loader.c 
 m68k-dis.c m68k-semi.c mips-dis.c monitor.c 
 osdep.c ppc-dis.c qemu-doc.texi qemu-img.c 
 qemu-img.texi qemu-tech.texi readline.c 
 s390-dis.c sdl.c sh4-dis.c softmmu-semi.h 
 softmmu_header.h softmmu_template.h sparc-dis.c 
 tap-win32.c texi2pod.pl thunk.c thunk.h 
 translate-all.c translate-op.c usb-linux.c vl.c 
 vl.h vnc.c vnchextile.h 
darwin-user: syscall.c 
fpu: softfloat-native.c 
hw : acpi.c adb.c alpha_palcode.c an5206.c apb_pci.c 
 apic.c arm_boot.c arm_gic.c arm_pic.c arm_pic.h 
 arm_sysctl.c arm_timer.c cdrom.c cirrus_vga.c 
 cirrus_vga_rop.h cirrus_vga_rop2.h cuda.c 
 eepro100.c esp.c fdc.c grackle_pci.c gt64xxx.c 
 heathrow_pic.c i2c.c i8254.c i8259.c ide.c 
 integratorcp.c iommu.c irq.c isa_mmio.c 
 jazz_led.c lsi53c895a.c m48t59.c mc146818rtc.c 
 mcf5206.c mcf5208.c mcf_fec.c mcf_intc.c 
 mcf_uart.c mips_malta.c mips_r4k.c nand.c 
 ne2000.c omap.h omap_lcd_template.h openpic.c 
 parallel.c pc.c pci.c pci_host.h pckbd.c 
 pcnet.c pflash_cfi02.c piix_pci.c pl011.c 
 pl050.c pl080.c pl110.c pl110_template.h 
 pl181.c pl190.c ppc.c ppc405.h ppc405_boards.c 
 ppc405_uc.c ppc_chrp.c ppc_prep.c prep_pci.c 
 ps2.c ptimer.c pxa2xx_gpio.c pxa2xx_template.h 
 realview.c rtl8139.c sd.c sd.h serial.c 
 sh7750.c sh7750_regs.h shix.c slavio_intctl.c 
 slavio_misc.c slavio_serial.c slavio_timer.c 
 smbus.c smbus.h smbus_eeprom.c smc91c111.c 
 sparc32_dma.c sun4m.c sun4u.c tcx.c unin_pci.c 
 usb-hid.c usb-hub.c usb-msd.c usb-uhci.c 
 usb-wacom.c usb.c usb.h versatile_pci.c 
 versatilepb.c vga.c vga_int.h vga_template.h 
 vmmouse.c 
keymaps: common de-ch et fr is modifiers nl sv 
linux-user : elfload.c flat.h flatload.c linuxload.c 
 m68k-sim.c main.c mmap.c qemu.h signal.c 
 syscall.c syscall_defs.h syscall_types.h vm86.c 
linux-user/alpha: syscall_nr.h 
linux-user/ppc : syscall.h 
linux-user/ppc64: syscall.h 
linux-user/sh4 : termbits.h 
linux-user/sparc: termbits.h 
linux-user/sparc64: termbits.h 
linux-user/x86_64: syscall_nr.h 
slirp  : COPYRIGHT bootp.c cksum.c debug.c debug.h if.c 
 if.h ip_icmp.c ip_input.c ip_output.c 
 libslirp.h main.h mbuf.c mbuf.h misc.c misc.h 
 sbuf.c sbuf.h slirp.c socket.c socket.h 
 tcp_input.c tcp_output.c tcp_subr.c tcp_timer.c 
 tftp.c tftp.h udp.c udp.h 
target-alpha   : cpu.h exec.h helper.c op.c op_helper.c 
 op_helper.h op_helper_mem.h op_mem.h 
 op_template.h translate.c 
target-arm : cpu.h exec.h helper.c op.c op_helper.c 
 op_iwmmxt.c op_template.h translate.c 
target-arm/nwfpe: double_cpdo.c extended_cpdo.c fpa11.c fpa11.h 
  fpa11_cpdo.c fpa11_cpdt.c fpa11_cprt.c 
  fpopcode.c fpopcode.h fpsr.h single_cpdo.c 
target-i386: cpu.h exec.h helper.c helper2.c op.c 
 opreg_template.h ops_sse.h ops_template.h 
 ops_template_mem.h translate-copy.c translate.c 
target-m68k: cpu.h exec.h helper.c op.c op_helper.c 
 translate.c 

[Qemu-devel] qemu/linux-user syscall.c

2007-09-16 Thread Thiemo Seufer
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Thiemo Seufer ths 07/09/16 21:39:48

Modified files:
linux-user : syscall.c 

Log message:
Add some missing checks for host syscalls.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/linux-user/syscall.c?cvsroot=qemur1=1.119r2=1.120




[Qemu-devel] qemu block-qcow.c block-qcow2.c block-vmdk.c bl...

2007-09-16 Thread Thiemo Seufer
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Thiemo Seufer ths 07/09/16 21:59:02

Modified files:
.  : block-qcow.c block-qcow2.c block-vmdk.c 
 block_int.h qemu-img.c qemu-img.texi 

Log message:
vmdk compatibility level 6 images, by Soren Hansen.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/block-qcow.c?cvsroot=qemur1=1.12r2=1.13
http://cvs.savannah.gnu.org/viewcvs/qemu/block-qcow2.c?cvsroot=qemur1=1.7r2=1.8
http://cvs.savannah.gnu.org/viewcvs/qemu/block-vmdk.c?cvsroot=qemur1=1.14r2=1.15
http://cvs.savannah.gnu.org/viewcvs/qemu/block_int.h?cvsroot=qemur1=1.11r2=1.12
http://cvs.savannah.gnu.org/viewcvs/qemu/qemu-img.c?cvsroot=qemur1=1.19r2=1.20
http://cvs.savannah.gnu.org/viewcvs/qemu/qemu-img.texi?cvsroot=qemur1=1.5r2=1.6




Re: [Qemu-devel] Current CVS build errors on RH9

2007-09-16 Thread Thiemo Seufer
Robert Reif wrote:
 It's been a few months since I comipled from source so I
 just tried with current CVS and got these errors on RH9:

 /home/wine/qemu/linux-user/syscall.c: In function `sys_tgkill':
 /home/wine/qemu/linux-user/syscall.c:170: `__NR_tgkill' undeclared (first 
 use in this function)
 /home/wine/qemu/linux-user/syscall.c:170: (Each undeclared identifier is 
 reported only once
 /home/wine/qemu/linux-user/syscall.c:170: for each function it appears in.)

It missed some ifdefs to disable use of those syscalls.

 in various subdirectories and:

 /home/wine/qemu/vl.c:59:24: linux/hpet.h: No such file or directory
 /home/wine/qemu/vl.c: In function `hpet_start_timer':
 /home/wine/qemu/vl.c:1222: storage size of `info' isn't known
 /home/wine/qemu/vl.c:1230: `HPET_IRQFREQ' undeclared (first use in this 
 function)
 /home/wine/qemu/vl.c:1230: (Each undeclared identifier is reported only 
 once
 /home/wine/qemu/vl.c:1230: for each function it appears in.)
 /home/wine/qemu/vl.c:1239: `HPET_INFO' undeclared (first use in this 
 function)
 /home/wine/qemu/vl.c:1244: `HPET_EPI' undeclared (first use in this 
 function)
 /home/wine/qemu/vl.c:1249: `HPET_IE_ON' undeclared (first use in this 
 function)
 /home/wine/qemu/vl.c:1222: warning: unused variable `info'

Both should be fixed now.


Thiemo




[Qemu-devel] qemu configure

2007-09-16 Thread Thiemo Seufer
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Thiemo Seufer ths 07/09/16 22:12:40

Modified files:
.  : configure 

Log message:
Solaris x86_64 configure patch, by Ben Taylor.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/configure?cvsroot=qemur1=1.154r2=1.155