Re: [Qemu-devel] [PATCH][UPDATED] Fix path mangling in linux-user/path.c

2007-05-22 Thread Lauri Leukkunen

On 5/22/07, Kirill A. Shutemov <[EMAIL PROTECTED]> wrote:

On [Tue, 22.05.2007 02:22], Lauri Leukkunen wrote:
> Attached patch fixes the linux-user path mangling code for use with
> real target root filesystems that have nasty symlinks and lots of
> files. The old code is terribly slow and can easily end up going
> through the entire host system /usr hierarchy in a recursive loop.
>
> Compared to the previous version of this patch, fixes an issue with
> attempting to free() a pointer returned by GNU basename().

My patch to solve same problems attached


The added complexity of my version comes from preventing leaking out
of the "chroot" through symlinks or "../.." elements. If we have

$HOME/buildroot/usr/lib/libfoo.so.1 -> /usr/lib/libfoo.so.1.2 ->
/usr/lib/libfoo.so.1.2.3

and if the buildroot and host system have different versions of the
library, realpath can't be used. It gets a little messy, I agree. I
had to do similar logic in scratchbox2 to maintain the fake chroot.

regards, Lauri




[Qemu-devel] DetaolB: a small linux distro developed for qemu

2007-05-22 Thread Christian MICHON

Hi qemu list,

this is a small "donation" for a x86/32bits small distro I'm toying with.
it's reached a small 1st step (bootable and stable enough): v0.1

lots of kudos and credits to:
- linux developers
- qemu developers
- busybox developers
- and soon uclibc developers
- of course, Rob Landley who's in direct cc of this
(look Ma!: signature...)

my target was to have a small bootable iso, even if I do not use
kqemu. sorry, I do not intend yet to support other architectures.

I'll try to keep it small, but feature suggestions are welcome, until
detaolb becomes bloated...

http://zitu.hostarea.org

--
Christian
--
 << There's a symlink from awk to gawk, if you're using gawk!
If you're not using gawk, there's no symlink from gawk to awk!
Use the standard names, _please_! >> - Rob Landley




[Qemu-devel] qemu Makefile.target vl.h hw/acpi.c hw/pc.c hw/...

2007-05-22 Thread Paul Brook
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Paul Brook  07/05/23 00:03:59

Modified files:
.  : Makefile.target vl.h 
hw : acpi.c pc.c smbus.h smbus_eeprom.c 
Added files:
hw : i2c.c i2c.h smbus.c 

Log message:
I2C/SMBus framework.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/Makefile.target?cvsroot=qemu&r1=1.170&r2=1.171
http://cvs.savannah.gnu.org/viewcvs/qemu/vl.h?cvsroot=qemu&r1=1.235&r2=1.236
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/acpi.c?cvsroot=qemu&r1=1.10&r2=1.11
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/pc.c?cvsroot=qemu&r1=1.76&r2=1.77
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/smbus.h?cvsroot=qemu&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/smbus_eeprom.c?cvsroot=qemu&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/i2c.c?cvsroot=qemu&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/i2c.h?cvsroot=qemu&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/smbus.c?cvsroot=qemu&rev=1.1




[Qemu-devel] qemu vl.c hw/arm_timer.c hw/ptimer.c

2007-05-22 Thread Paul Brook
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Paul Brook  07/05/23 00:06:54

Modified files:
.  : vl.c 
hw : arm_timer.c 
Added files:
hw : ptimer.c 

Log message:
Add periodic timer implementation.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/vl.c?cvsroot=qemu&r1=1.296&r2=1.297
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/arm_timer.c?cvsroot=qemu&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/ptimer.c?cvsroot=qemu&rev=1.1




[Qemu-devel] Timers

2007-05-22 Thread Paul Brook
I get fed up of having to re-implement a simple countdown timer for every new 
board, so I've added a simple periodic timer implementation to cvs 
(ptimer.c). Currently only the Arm PrimeCell based boards use this, but I've 
a few other uses in the pipeline.

Paul




Re: [Qemu-devel] Timers

2007-05-22 Thread George G. Davis
On Wed, May 23, 2007 at 01:06:59AM +0100, Paul Brook wrote:
> I get fed up of having to re-implement a simple countdown timer for every new 
> board, so I've added a simple periodic timer implementation to cvs 
> (ptimer.c). Currently only the Arm PrimeCell based boards use this, but I've 
> a few other uses in the pipeline.

.../qemu/hw/arm_timer.c:25: syntax error before "ptimer_state"
.../qemu/hw/arm_timer.c:25: warning: no semicolon at end of struct or union

Current CVS is missing definition for ptimer_state.


-- 
Regards,
George

_   __o   George G. Davis - Software Engineer   (o>
----\<,   MontaVista Sofware - Platform to Innovate //\
 -- ( )/ ( )  www.mvista.comV_/_
~




[Qemu-devel] detaolb is now in sourceforge.net

2007-05-22 Thread Christian MICHON

actually, it's been registered by myself in 2005 ;)

Detaolb aims to be a "much-less-than-a-floppy" linux distro.
It's been thought and built in/for qemu all along. Only recently
I started using colinux to speed up some dev ( cofs in
colinux is a killer feature over samba inside qemu, btw... ).

the correct home for this small distro should be from now on:

http://detaolb.sf.net

you can discard the previous location (too pointy on including
ads). it'll stay as the original release and will not be updated.

the sf.net page will be updated, and is properly connected to
my email. it was really painful to set up the web interface
of sf.net...

--
Christian




[Qemu-devel] qemu Makefile.target vl.h

2007-05-22 Thread Paul Brook
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Paul Brook  07/05/23 01:13:57

Modified files:
.  : Makefile.target vl.h 

Log message:
Add ptimer.c function declarations and makefile rule.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/Makefile.target?cvsroot=qemu&r1=1.171&r2=1.172
http://cvs.savannah.gnu.org/viewcvs/qemu/vl.h?cvsroot=qemu&r1=1.236&r2=1.237




Re: [Qemu-devel] Timers

2007-05-22 Thread Paul Brook
> .../qemu/hw/arm_timer.c:25: syntax error before "ptimer_state"
> .../qemu/hw/arm_timer.c:25: warning: no semicolon at end of struct or union
>
> Current CVS is missing definition for ptimer_state.

Oops, sorry. Should be fixed now.

Paul





Re: [Qemu-devel] Timers

2007-05-22 Thread George G. Davis
On Wed, May 23, 2007 at 02:14:02AM +0100, Paul Brook wrote:
> > .../qemu/hw/arm_timer.c:25: syntax error before "ptimer_state"
> > .../qemu/hw/arm_timer.c:25: warning: no semicolon at end of struct or union
> >
> > Current CVS is missing definition for ptimer_state.
> 
> Oops, sorry. Should be fixed now.

Works for me now, thanks!

-- 
Regards,
George




[Qemu-devel] Re: qemu/kvm seems to take ALSA all for itself?

2007-05-22 Thread David Abrahams

on Mon May 21 2007, Avi Kivity  
wrote:

> David Abrahams wrote:
>> When I have windows XP running under kvm, I get 
>>
>>   [EMAIL PROTECTED]:/tmp$ aplay /usr/share/sounds/gaim/receive.wav 
>>   ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
>>   aplay: main:550: audio open error: Device or resource busy
>>
>> As soon as I shut down my VM, though, it works perfectly.  Is this
>> expected behavior?
>>   
>
> I think you have to set up a mixer or something.  But I'd rather be deaf 
> than have to wade through all the pseudo-documentation in order to find 
> out how.

Maybe I wasn't sufficiently clear.  Sound in the VM works fine; it
just seems to kill sound in the host... or is the mixer somehow
supposed to cure that?

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com





[Qemu-devel] [PATCH] Remove cscope files on `make clean`

2007-05-22 Thread George G. Davis
Remove cscope files on `make clean`.

---
Index: qemu/Makefile
===
RCS file: /sources/qemu/qemu/Makefile,v
retrieving revision 1.119
diff -u -r1.119 Makefile
--- qemu/Makefile   20 May 2007 10:54:50 -  1.119
+++ qemu/Makefile   23 May 2007 03:19:24 -
@@ -42,6 +42,7 @@
 # avoid old build problems by removing potentially incorrect old files
rm -f config.mak config.h op-i386.h opc-i386.h gen-op-i386.h op-arm.h 
opc-arm.h gen-op-arm.h 
rm -f *.o *.a $(TOOLS) dyngen$(EXESUF) TAGS *.pod *~ */*~
+   rm -f cscope.*
$(MAKE) -C tests clean
for d in $(TARGET_DIRS); do \
$(MAKE) -C $$d $@ || exit 1 ; \


--
Regards,
George