Re: [Qemu-devel] [PATCH]: sh4 delay slot code update

2007-11-28 Thread Paul Mundt
On Thu, Nov 29, 2007 at 02:43:03PM +0900, Magnus Damm wrote: > On Nov 28, 2007 9:49 PM, Paul Mundt <[EMAIL PROTECTED]> wrote: > I was mainly wondering if I really needed to save the state of SR_T, > but I assumed so. So the code should be correct. And yes, I'm sure > there are quite a few slottable

Re: [Qemu-devel] [PATCH]: sh4 delay slot code update

2007-11-28 Thread Magnus Damm
Hi Paul, Thanks for your comments. On Nov 28, 2007 9:49 PM, Paul Mundt <[EMAIL PROTECTED]> wrote: > On Wed, Nov 28, 2007 at 06:54:20PM +0900, Magnus Damm wrote: > > +#define DELAY_SLOT_TRUE(1 << 2) > > +#define DELAY_SLOT_CLEARME (1 << 3) > > +/* The dynamic value of the DELAY_SLOT_TR

Re: [Qemu-devel] qemu hw/sun4m.c target-sparc/cpu.h target-sparc...

2007-11-28 Thread Robert Reif
Blue Swirl wrote: http://cvs.savannah.gnu.org/viewcvs/qemu/target-sparc/helper.c?cvsroot=qemu&r1=1.30&r2=1.31 Could you please set the mask to 0x7 for 512k proms.

[Qemu-devel] qemu hw/sun4m.c target-sparc/cpu.h target-sparc...

2007-11-28 Thread Blue Swirl
CVSROOT:/cvsroot/qemu Module name:qemu Changes by: Blue Swirl 07/11/28 20:54:33 Modified files: hw : sun4m.c target-sparc : cpu.h helper.c Log message: Use slavio base as boot prom address, rearrange sun4m init code CVSWeb URLs: http://cv

[Qemu-devel] [PATCH 5/5] qemu: piix_pci: remove 82371FB support

2007-11-28 Thread Carlo Marcelo Arenas Belon
This patch removes support for 82371FB Step A1 (AKA triton) chips as they are superseded by 82371SB and are currently dead code as all other references were removed already from ide.c since revision 1.57 Signed-off-by: Carlo Marcelo Arenas Belon <[EMAIL PROTECTED]> --- qemu/hw/piix_pci.c | 25 -

[Qemu-devel] [PATCH 4/5] qemu: ide INQUIRY and IDENTIFY DEVICE report DVD-ROM model

2007-11-28 Thread Carlo Marcelo Arenas Belon
This patch complements "Partial IDE DVD emulation" which was added in ide.c revision 1.66 so that the CD-ROM identifies itself as a DVD-ROM to "INQUIRY" and "IDENTIFY DEVICE" commands Signed-off-by: Carlo Marcelo Arenas Belon <[EMAIL PROTECTED]> --- qemu/hw/ide.c |4 ++-- 1 files changed, 2 i

[Qemu-devel] [PATCH 1/5] qemu: GET_CONFIGURATION fixes for MMC-6 DVD-ROM implementation

2007-11-28 Thread Carlo Marcelo Arenas Belon
The following patch complements "Partial IDE DVD emulation", added in ide.c revision 1.66 and that was generating the following timeouts for OpenSolaris guests when trying to access the ATAPI cdrom (during installation for example): WARNING: /[EMAIL PROTECTED],0/[EMAIL PROTECTED],1/[EMAIL PROTEC

[Qemu-devel] qemu/target-sparc exec.h op_helper.c

2007-11-28 Thread Blue Swirl
CVSROOT:/cvsroot/qemu Module name:qemu Changes by: Blue Swirl 07/11/28 18:08:29 Modified files: target-sparc : exec.h op_helper.c Log message: Fix compilation and warnings on PPC host CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/qemu/target-sparc/exec.h?

Re : [Qemu-devel] another patch against head

2007-11-28 Thread Sylvain Petreolle
Hi Johannes, - Message d'origine > De : Johannes Schindelin <[EMAIL PROTECTED]> > À : Hotmail <[EMAIL PROTECTED]> > Cc : qemu Devel > Envoyé le : Mercredi, 28 Novembre 2007, 13h49mn 34s > Objet : Re: [Qemu-devel] another patch against head > > Index: hw/adlib.c > > ===

Re: [Qemu-devel] another patch against head

2007-11-28 Thread Johannes Schindelin
On Wed, 28 Nov 2007, Hotmail wrote: > > But then, the answer to that riddle could be in the context. Since > > you did not use the unified diff format, I have no chance to know. > > How would I make a unified diff from a command line? cvs diff -u Hth, Dscho

Re: [Qemu-devel] another patch against head

2007-11-28 Thread Hotmail
- Original Message - From: "Johannes Schindelin" <[EMAIL PROTECTED]> To: "Hotmail" <[EMAIL PROTECTED]> Cc: "qemu Devel" Sent: Wednesday, November 28, 2007 5:49 AM Subject: Re: [Qemu-devel] another patch against head > Hi Hotmail, > Hello. Please call me C.W. > ... > > (patch to cocoa

Re: [Qemu-devel] [PATCH 0/2] Open disk images with O_DIRECT

2007-11-28 Thread Samuel Thibault
Daniel P. Berrange, le Wed 28 Nov 2007 15:08:20 +, a écrit : > > sometimes it is not because the guest is not so i/o friendly > > and hence using the host page/buffer cache is useful. > > I don't buy that - all OS already do I/O caching because its useful even > on baremetal. Well, I can see

Re: [Qemu-devel] [PATCH 0/2] Open disk images with O_DIRECT

2007-11-28 Thread Daniel P. Berrange
On Wed, Nov 28, 2007 at 02:34:02PM +, Samuel Thibault wrote: > Daniel P. Berrange, le Wed 28 Nov 2007 14:27:39 +, a écrit : > > On Wed, Nov 28, 2007 at 03:02:50PM +0100, Laurent Vivier wrote: > > > These patches allow to open file using O_DIRECT and bypass the host I/O > > > cache. > > > >

Re: [Qemu-devel] [PATCH 1/2] Add "directio" parameter to "-drive"

2007-11-28 Thread Samuel Thibault
Laurent Vivier, le Wed 28 Nov 2007 16:00:17 +0100, a écrit : > Le mercredi 28 novembre 2007 à 14:24 +, Samuel Thibault a écrit : > > Laurent Vivier, le Wed 28 Nov 2007 15:02:50 +0100, a écrit : > > > +ret = posix_memalign((void**)&buf, 0x200, 512); > > > > For making this more easily porta

Re: [Qemu-devel] [PATCH 1/2] Add "directio" parameter to "-drive"

2007-11-28 Thread Laurent Vivier
Le mercredi 28 novembre 2007 à 14:24 +, Samuel Thibault a écrit : > Hi, > > Laurent Vivier, le Wed 28 Nov 2007 15:02:50 +0100, a écrit : > > +ret = posix_memalign((void**)&buf, 0x200, 512); > > For making this more easily portable, maybe it should be a new > qemu_memalign() function? Als

Re: [Qemu-devel] [PATCH 0/2] Open disk images with O_DIRECT

2007-11-28 Thread Anthony Liguori
Samuel Thibault wrote: Daniel P. Berrange, le Wed 28 Nov 2007 14:27:39 +, a écrit : On Wed, Nov 28, 2007 at 03:02:50PM +0100, Laurent Vivier wrote: These patches allow to open file using O_DIRECT and bypass the host I/O cache. [PATCH 1/2] Add "directio" parameter to "-drive" U

Re: [Qemu-devel] another patch against head

2007-11-28 Thread Johannes Schindelin
Hi, On Wed, 28 Nov 2007, Samuel Thibault wrote: > Johannes Schindelin, le Wed 28 Nov 2007 14:01:21 +, a ?crit : > > On Wed, 28 Nov 2007, Samuel Thibault wrote: > > > > > Johannes Schindelin, le Wed 28 Nov 2007 12:49:34 +, a ?crit : > > > > On Tue, 27 Nov 2007, Hotmail wrote: > > > > > >

Re: [Qemu-devel] [PATCH 0/2] Open disk images with O_DIRECT

2007-11-28 Thread Samuel Thibault
Daniel P. Berrange, le Wed 28 Nov 2007 14:27:39 +, a écrit : > On Wed, Nov 28, 2007 at 03:02:50PM +0100, Laurent Vivier wrote: > > These patches allow to open file using O_DIRECT and bypass the host I/O > > cache. > > > > [PATCH 1/2] Add "directio" parameter to "-drive" > > > > Using "dir

Re: [Qemu-devel] [PATCH 0/2] Open disk images with O_DIRECT

2007-11-28 Thread Daniel P. Berrange
On Wed, Nov 28, 2007 at 03:02:50PM +0100, Laurent Vivier wrote: > These patches allow to open file using O_DIRECT and bypass the host I/O cache. > > [PATCH 1/2] Add "directio" parameter to "-drive" > > Using "directio=on" with "-drive" will open the disk image > file using "O_DIRECT". I

Re: [Qemu-devel] [PATCH 1/2] Add "directio" parameter to "-drive"

2007-11-28 Thread Samuel Thibault
Hi, Laurent Vivier, le Wed 28 Nov 2007 15:02:50 +0100, a écrit : > +ret = posix_memalign((void**)&buf, 0x200, 512); For making this more easily portable, maybe it should be a new qemu_memalign() function? Also, the alignment may probably be better as a global macro, since the alignment requi

Re: [Qemu-devel] another patch against head

2007-11-28 Thread Samuel Thibault
Johannes Schindelin, le Wed 28 Nov 2007 14:01:21 +, a écrit : > On Wed, 28 Nov 2007, Samuel Thibault wrote: > > > Johannes Schindelin, le Wed 28 Nov 2007 12:49:34 +, a ?crit : > > > On Tue, 27 Nov 2007, Hotmail wrote: > > > > > > > The following is another patch against the head that lets

[Qemu-devel] [PATCH 2/2] Direct IDE I/O

2007-11-28 Thread Laurent Vivier
This patch enhances the "-drive ,directio=on" mode with IDE drive emulation by removing the buffer used in the IDE emulation. --- block.c | 10 +++ block.h |2 block_int.h |1 cpu-all.h |1 exec.c | 19 ++ hw/ide.c| 176 ++

[Qemu-devel] [PATCH 1/2] Add "directio" parameter to "-drive"

2007-11-28 Thread Laurent Vivier
This patch add a new parameter to "-drive" Using "directio=on" with "-drive" will open the disk image file using "O_DIRECT". By default, "directio" is set to "off". example: "-drive file=my_disk.qcow2,directio=on" --- block-raw.c|4 block.c|2 +- block.h|1

[Qemu-devel] [PATCH 0/2] Open disk images with O_DIRECT

2007-11-28 Thread Laurent Vivier
These patches allow to open file using O_DIRECT and bypass the host I/O cache. [PATCH 1/2] Add "directio" parameter to "-drive" Using "directio=on" with "-drive" will open the disk image file using "O_DIRECT". [PATCH 2/2] Direct IDE I/O This patch enhances the "-drive ,directio=on

Re: [Qemu-devel] another patch against head

2007-11-28 Thread Johannes Schindelin
Hi, On Wed, 28 Nov 2007, Samuel Thibault wrote: > Johannes Schindelin, le Wed 28 Nov 2007 12:49:34 +, a ?crit : > > On Tue, 27 Nov 2007, Hotmail wrote: > > > > > The following is another patch against the head that lets me build it on > > > Windows, as well as makes the adlib.c file debugga

Re: [Qemu-devel] another patch against head

2007-11-28 Thread Samuel Thibault
Johannes Schindelin, le Wed 28 Nov 2007 12:49:34 +, a écrit : > On Tue, 27 Nov 2007, Hotmail wrote: > > > The following is another patch against the head that lets me build it on > > Windows, as well as makes the adlib.c file debuggable. > > > > Index: Makefile > > ==

[Qemu-devel] [PATCH 2/3] SG support (Asynchronous Read/Write)

2007-11-28 Thread Laurent Vivier
This patch modifies scsi_read_data() and scsi_write_data() to use asynchronous I/O whith SCSI Generic. block-raw.s has been modified to define the number of bytes to transfer instead of the number of blocks: if nb_sectors is less than zero the nb_sectors is a number of bytes. --- block-raw.c

[Qemu-devel] [PATCH 3/3] SG support (Asynchronous Send Command)

2007-11-28 Thread Laurent Vivier
This patch modifies scsi_send_command() to use asynchronous I/O with SCSI Generic. This allows to use command with data transfers that are not immediate. Old behavior can generate softlockup in the guest kernel. hw/lsi53c895a.c has been modified to manage this new behavior. --- hw/lsi53c895a.c

[Qemu-devel] [PATCH 1/3] SG support (Synchronous I/O)

2007-11-28 Thread Laurent Vivier
This patch allows to connect the virtual SCSI interface of Qemu to a real SCSI device of the host. Using the devices /dev/sg, it allows to send the SCSI command from the virtual SCSI interface to the real device. This patch uses synchronous SCSI I/O. block-raw.c has been modified to disable the

[Qemu-devel] [PATCH 0/3] Real SCSI device passthrough

2007-11-28 Thread Laurent Vivier
This series of patches allows to connect real SCSI device to the virtual SCSI controller of Qemu using the SCSI Generic interface (/dev/sg) for instance: qemu -hda my_disk.qcow2 -drive file=/dev/sg3,if=scsi [PATCH 1/3] SG support (Synchronous I/O) This patch allows to connect the virtual S

Re: [Qemu-devel] another patch against head

2007-11-28 Thread Johannes Schindelin
Hi Hotmail, On Tue, 27 Nov 2007, Hotmail wrote: > The following is another patch against the head that lets me build it on > Windows, as well as makes the adlib.c file debuggable. > > Index: Makefile > === > RCS file: /sources/qemu

Re: [Qemu-devel] [PATCH]: sh4 delay slot code update

2007-11-28 Thread Paul Mundt
On Wed, Nov 28, 2007 at 06:54:20PM +0900, Magnus Damm wrote: > +#define DELAY_SLOT_TRUE(1 << 2) > +#define DELAY_SLOT_CLEARME (1 << 3) > +/* The dynamic value of the DELAY_SLOT_TRUE flag determines whether the jump > + * after the delay slot should be taken or not. It is calculated from

Re: [Qemu-devel] PATCH: fix Makefile issue with make 3.79

2007-11-28 Thread Tristan Gingold
On Nov 28, 2007, at 11:24 AM, Mike Frysinger wrote: On Monday 26 November 2007, Tristan Gingold wrote: $^ is all dependencies (ie the .c and .h files in dyngen case). Because there is only one .c file to compile, this patch will work in all cases. why not simply upgrade your make to somethin

Re: [Qemu-devel] PATCH: fix Makefile issue with make 3.79

2007-11-28 Thread Mike Frysinger
On Monday 26 November 2007, Tristan Gingold wrote: > $^ is all dependencies (ie the .c and .h files in dyngen case). > Because there is only one .c file to compile, this patch will work in > all cases. why not simply upgrade your make to something that is not known to be broken and something that

[Qemu-devel] [PATCH]: sh4 delay slot code update

2007-11-28 Thread Magnus Damm
Hi everyone, This patch updates the delay slot handling for the sh4 target. The main feature is that delay slot flags now are stored in the tlb. This is needed for signal emulation and interrupts. There are also some correctness fixes included in this patch - with this patch applied i'm able to r