Re: [Qemu-devel] TCG

2008-02-01 Thread Paul Brook
> I made minimal modifications in each target so that they can still work > by using TCG and legacy "dyngen" micro operations. More work will be > needed to convert each target to TCG, but it can be done progressively. > Only the x86 and x86_64 targets have been significantly modified to use > TCG.

[Qemu-devel] qemu configure

2008-02-03 Thread Paul Brook
CVSROOT:/sources/qemu Module name:qemu Changes by: Paul Brook 08/02/03 16:27:13 Modified files: . : configure Log message: Use ARCH_CFLAGS in configure tests. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/qemu/configure?cvsroot=qemu&r1=1

[Qemu-devel] qemu exec-all.h

2008-02-03 Thread Paul Brook
CVSROOT:/sources/qemu Module name:qemu Changes by: Paul Brook 08/02/03 17:35:41 Modified files: . : exec-all.h Log message: Fix opparam_buf size estimate. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/qemu/exec-all.h?cvsroot=qemu&r1=1.7

[Qemu-devel] qemu configure

2008-02-03 Thread Paul Brook
CVSROOT:/sources/qemu Module name:qemu Changes by: Paul Brook 08/02/03 19:20:13 Modified files: . : configure Log message: Robustify source directory check. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/qemu/configure?cvsroot=qemu&r1=1

[Qemu-devel] qemu target-i386/translate.c tcg/tcg-op.h tcg/t...

2008-02-03 Thread Paul Brook
CVSROOT:/sources/qemu Module name:qemu Changes by: Paul Brook 08/02/03 19:56:34 Modified files: target-i386: translate.c tcg: tcg-op.h tcg.c tcg.h Log message: Add TCG variable opaque type. CVSWeb URLs: http://cvs.savannah.gnu.org

Re: [Qemu-devel] Making qemu use 10.0.3.x not 10.0.2.x

2008-02-05 Thread Paul Brook
> > but make > > it configurable on the command line. That way, there are no surprises > > ever. The rare people like me with an issue can just pass a command-line > > parameter in. > > The point I was trying to make is that qemu could easily arbitrate the > guest network based on how the host is

Re: [Qemu-devel] Making qemu use 10.0.3.x not 10.0.2.x

2008-02-05 Thread Paul Brook
On Wednesday 06 February 2008, Jamie Lokier wrote: > Paul Brook wrote: > > > > but make > > > > it configurable on the command line. That way, there are no > > > > surprises ever. The rare people like me with an issue can just pass > > > > a com

Re: [Qemu-devel] What does code_copy_enabled do?

2008-02-07 Thread Paul Brook
On Friday 08 February 2008, Rob Landley wrote: > Grepping through the source code, I can find 3 places where this global > variable is set (it's initialized to a default value of 1, there's > a "no-code-copy" command line option that sets it to zero, and then it > shows up in the test suite once).

Re: [Qemu-devel] Kernel memory allocation debugging with Qemu

2008-02-08 Thread Paul Brook
On Friday 08 February 2008, Blue Swirl wrote: > On 2/8/08, Paul Brook <[EMAIL PROTECTED]> wrote: > > > The patch takes a half of the memory and slows down the system. I > > > think Qemu could be used instead. A channel (IO/MMIO) is created > > > between the m

Re: [Qemu-devel] Kernel memory allocation debugging with Qemu

2008-02-08 Thread Paul Brook
> The patch takes a half of the memory and slows down the system. I > think Qemu could be used instead. A channel (IO/MMIO) is created > between the memory allocator in target kernel and Qemu running in the > host. Memory allocator tells the allocated area to Qemu using the > channel. Qemu changes

[Qemu-devel] qemu translate-all.c tcg/tcg.c tcg/tcg.h

2008-02-09 Thread Paul Brook
CVSROOT:/sources/qemu Module name:qemu Changes by: Paul Brook 08/02/10 02:41:15 Modified files: . : translate-all.c tcg: tcg.c tcg.h Log message: Fix TCG relocation bug (exposed by fault after brcond op). Add FIXME for

Re: [Qemu-devel] Re: 2.6.24 says "serial8250: too much work for irq4" a lot.

2008-02-10 Thread Paul Brook
On Sunday 10 February 2008, Blue Swirl wrote: > On 2/9/08, H. Peter Anvin <[EMAIL PROTECTED]> wrote: > > Blue Swirl wrote: > > >> If you look at the patch, there are no timing dependencies; the only > > >> parameter is the depth of the virtual queue. The exhaustion is > > >> completely controlled

[Qemu-devel] qemu translate-all.c tcg/tcg.c tcg/tcg.h tcg/i3...

2008-02-10 Thread Paul Brook
CVSROOT:/sources/qemu Module name:qemu Changes by: Paul Brook 08/02/10 14:09:09 Modified files: . : translate-all.c tcg: tcg.c tcg.h tcg/i386 : tcg-target.c tcg/x86_64 : tcg-target.c Log message

Re: [Qemu-devel] Re: [PATCH 2/6] Use correct types to enable > 2G support (v2)

2008-02-10 Thread Paul Brook
> > as far as i remember it was used to address something with > > cpu_physical_memory_rw() probably related to &TARGET_PAGE_SIZE > > or ~TARGET_PAGE_SIZE, > > > > the fact is that i dont know if it ever fixed anything > > It fixes TARGET_PAGE_MASK, defined one line downscreen. That doesn't reall

Re: [Qemu-devel] Re: [PATCH 2/6] Use correct types to enable > 2G support (v2)

2008-02-10 Thread Paul Brook
On Sunday 10 February 2008, Avi Kivity wrote: > Paul Brook wrote: > >>> as far as i remember it was used to address something with > >>> cpu_physical_memory_rw() probably related to &TARGET_PAGE_SIZE > >>> or ~TARGET_PAGE_SIZE, > >>> >

Re: [Qemu-devel] [PATCH] Allow default network type to be determined from an environmental variable

2008-02-11 Thread Paul Brook
> I think Paul Brook was concerned about a situation where a user > reports a problem saying FOO is not working when running "qemu -hda ..." > and suddenly the number of things that may have triggered the bug has > grown by the size of the environment. Even if you manage

Re: [Qemu-devel] [PATCH] Allow default network type to be determined from an environmental variable

2008-02-11 Thread Paul Brook
On Tuesday 12 February 2008, Rob Landley wrote: > On Saturday 19 January 2008 15:10:09 Paul Brook wrote: > > > In the absence of a global configuration file, a reasonably sane way to > > > support this configuration system wide is to use an environmental > > > variabl

Re: [Qemu-devel] What does code_copy_enabled do?

2008-02-11 Thread Paul Brook
> > Any news on the possible cvs->svn migration? > > To be perfectly honest, IMO there is little point moving an existing > project from CVS to SVN. I disagree. CVS has several fairly fundamental flaws (no global revision IDs, unable to move files, and more subtle problems with branches/tags). S

Re: [Qemu-devel] [PATCH] Allow default network type to be determined from an environmental variable

2008-02-12 Thread Paul Brook
> If people don't like using environmental variables, I can accept that. > Let's not pretend though that the reason is that we're protecting the > end users :-) It's more protecting me from end users :-) I should have said part of the reason. I'll admit a large part is personal preference. Paul

Re: [Qemu-devel] Patch for compiling with GCC 4

2008-02-16 Thread Paul Brook
On Saturday 16 February 2008, Christian Roue wrote: > Hi all, > I tried to compile qemu cvs head on my x86_64 linux with gcc 4.1.2 using > --disable-gcc-check, I found compile fails as stated in configure before i > disabled gcc check.. > Error message, points to a problem of dyngen not correctly d

Re: [Qemu-devel] qemu-system-sparc and Solaris 1.1.2 / SunOS 4.1.4

2008-02-18 Thread Paul Brook
> SunOS might run in TME (http://people.csail.mit.edu/fredette/tme/). I > don't think anything other than Linux runs in QEMU's Sun emulation (or > for that matter, any of the non-PC QEMU emulators). While linux is certainly the most most widely tested, I'm fairly sure both vxWorks and SymbianOS h

Re: [Qemu-devel] [PATCH] bdrv_flush error handling

2008-02-20 Thread Paul Brook
> > Finally, it would perhaps be best if the block device emulators wrote > > to the qemu console to complain if they give write errors. Otherwise > > the errno value and other important information will be lost, which > > makes debugging hard. > > If by 'qemu console' you mean stderr, then fine,

Re: [Qemu-devel] [PATCH] bdrv_flush error handling

2008-02-20 Thread Paul Brook
> Write errors for non-raw formats can easily be caused by a disk full > situation on the host. Killing the guest hard is unfriendly for that > situation. Disk full is a fundamentally unfriendly situation to be in. There is no good answer. Reporting errors back to the host has its own set of pro

Re: [Qemu-devel] [PATCH] bdrv_flush error handling

2008-02-20 Thread Paul Brook
> Is savevm-upon-disk-full a realistic prospect? Not particularly useful. If you're run out of disk space, chances are that savevm will also fail. Paul

Re: [Qemu-devel] Qemu emulation for PXA320 based board

2008-02-21 Thread Paul Brook
On Thursday 21 February 2008, Arabinda Verma wrote: > Hello Paul, > > Thanks for your reply. > > Please recommend some document or pointer on how to implement emulation of > hardware. Theere isn't any, just what's in the source. It's mostly fairly straightforward once you get your head round it.

Re: [Qemu-devel] TCG code in qemu has broken PPC host support .... anyone working on this?

2008-02-21 Thread Paul Brook
On Thursday 21 February 2008, Jerone Young wrote: > The recent TCG code to replace dyngen code in qemu cvs has broken > PowerPC host support (or from what is appears...anyone else who is not > x86 or x86-64). Is anyone working to fix this ? Is there a plan to fix > all the other hosts? As far as p

Re: [kvm-ppc-devel] [Qemu-devel] TCG code in qemu has broken PPC host support .... anyone working on this?

2008-02-21 Thread Paul Brook
> I'm not really familiar with the qemu development process; is this > usually how it works? People are free to break things and assume others > will fix it? Not really. However this is fairly exceptional circumstances. The gcc3 dependency means it's getting harder and harder to build qemu at al

Re: [Qemu-devel] Re: [PATCH, RFC, WIP] TCG for Qemu target Sparc32/64

2008-02-23 Thread Paul Brook
> Another point is that you should define TCG globals for each SPARC GPR. > It was not done for i386 because I feared performance regressions when > accessing to 16 bit or 8 bit sub-registers. On SPARC you do not have > this issue. How would these be kept consistent with CPUState? Paul

Re: [Qemu-devel] [PATCH 4/9] AppleSMC device

2008-02-25 Thread Paul Brook
On Monday 25 February 2008, Rob Landley wrote: > On Tuesday 08 January 2008 09:22:49 Alexander Graf wrote: > > Apples hardware dongle sits withing the fan control. To get Mac OS X up > > and running, this control device needs to be emulated and given the > > correct dongle key. This key has to be g

Re: [Qemu-devel] Still compile problems with TCG

2008-02-27 Thread Paul Brook
> I still have problems (Pentium M, gcc (GCC) 4.1.2 20061115 (prerelease) gcc4 isn't supposed to work. Paul

Re: [Qemu-devel] Still compile problems with TCG

2008-02-27 Thread Paul Brook
On Wednesday 27 February 2008, Andreas Färber wrote: > Am 27.02.2008 um 17:14 schrieb Paul Brook: > >> I still have problems (Pentium M, gcc (GCC) 4.1.2 20061115 > >> (prerelease) > > > > gcc4 isn't supposed to work. > > And I thought that was the wh

[Qemu-devel] qemu/tcg tcg-op.h

2008-03-04 Thread Paul Brook
CVSROOT:/sources/qemu Module name:qemu Changes by: Paul Brook 08/03/04 23:52:48 Modified files: tcg: tcg-op.h Log message: 32-bit host sign extension fix (Juergen Lock). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/qemu/tcg/tcg-op.h?cvsroot

Re: [Qemu-devel] [PATCH] mipsnet incorrect device ID fix

2008-03-12 Thread Paul Brook
> That's the '&' which is wrong here. The string can be accessed with > *((uint32_t *)devid). So you can simply use: > > ret = le32_to_cpu(*((uint32_t *)devid)) No you can't. Even ignoring the aliasing violation, devid might not be sufficiently aligned. Paul

Re: [Qemu-devel] CVS build error

2008-03-13 Thread Paul Brook
> gcc (GCC) 4.1.2 (Gentoo 4.1.2 p1.0.2) Which part of "gcc 4.x is not supported" didn't you understand? Paul

Re: [Qemu-devel] build failure on x86, any suggestions?

2008-03-15 Thread Paul Brook
On Saturday 15 March 2008, Peter Volkov wrote: > Hello. > > I just wanted to point developers attention to the following bug: > bugs.gentoo.org/212351 , comment #11 and further. The problem is that > qemu does not compile any more on x86. I've tried recent snapshot > (2008-03-15_05) and the problem

Re: [Qemu-devel] [PATCH 0/2] port over extboot from kvm

2009-11-09 Thread Paul Brook
On Tuesday 08 September 2009, Anthony Liguori wrote: > Gerd Hoffmann wrote: > > $subject says pretty much everything. > > > > extboot.[cS] are a straight copy from the kvm tree. The windup in vl,c > > and hw/pc.c is done slightly different, I've added a function to lookup > > the boot drive instea

Re: [Qemu-devel] Re: [PATCH 05/26] Unexport ticks_per_sec variable. Create get_ticks_per_sec() function

2009-11-09 Thread Paul Brook
On Friday 11 September 2009, Anthony Liguori wrote: > malc wrote: > > And generalizations are always true. Anyhow, i'm explicitly against the > > patch, so first obtain the express acknowledgment from the leaders, > > otherwise i'll revert it should it go in. > > I'm adding the following patch to

Re: [Qemu-devel] [PATCH] gdbstub: x86: Switch 64/32 bit registers dynamically

2009-11-10 Thread Paul Brook
> No question, this is a gdb issue. But, as it was confirmed in several > discusssions with gdb people, it is a non-trivial thing to fix. So until > qemu finds a gdb version attach with a rework x86 support, we have to > work around it by switching the register layout as the guest switches > its ex

Re: [Qemu-devel] [PATCH 1/3] tcg: add ext{8,16,32}u_i{32,64} TCG ops

2009-11-10 Thread Paul Brook
On Wednesday 30 September 2009, Aurelien Jarno wrote: > Currently zero extensions ops are implemented by a and op with a > constant. This is then catched in some backend, and replaced by > a zero extension instruction. While this works well on RISC > machines, this adds a useless register move on n

Re: [Qemu-devel] [PATCH 00/16] Add a -netdev option

2009-11-10 Thread Paul Brook
On Thursday 08 October 2009, Mark McLoughlin wrote: > Hi, > Here's a series of patches which gets the ball rolling on adding > a -netdev option. >... > The idea is to de-emphasise the vlan support, and instead make > a nic directly connected to a host backend the default and recomme

Re: [Qemu-devel] PATCH: Qemu user-mode - fork - exec -

2009-11-10 Thread Paul Brook
On Monday 12 October 2009, Toni wrote: > Hi guys, > I found a solution for the problems with the fork and the exec under qemu > user-mode. > With the fork I enabled the NPTL and now it seems to work fine. > For the exec the problem was that it was execute natively, and so the qemu > process was kil

Re: [Qemu-devel] [PATCH 00/18] target-arm cleanup

2009-11-10 Thread Paul Brook
> > Some of the generated tcg code is not very optimal, for example a > > single vld4.8 instruction can generate over 250 tcg ops. I did some > > optimizations and got it under 200 but do you think it could be an > > issue that a single instruction can expand to so many tcg ops? I mean > > besides

Re: [Qemu-devel] [PATCH 00/18] target-arm cleanup

2009-11-10 Thread Paul Brook
> On the code itself, I don't really like the remaining, new_tmp(), > dead_tmp(), and even more the fact that some functions can allocate > (e.g load_reg) or free (e.g. store_reg) some TCG variables implicitely. > This is a way to make errors by reallocating or forgetting to free some > > variable

Re: [Qemu-devel] Re: [PATCH 01/12] TCG "sync" op

2009-11-10 Thread Paul Brook
On Thursday 22 October 2009, Aurelien Jarno wrote: > On Wed, Oct 21, 2009 at 03:52:22PM +0200, Ulrich Hecht wrote: > > sync allows concurrent accesses to locations in memory through different > > TCG variables. This comes in handy when you are emulating CPU registers > > that can be used as either

Re: [Qemu-devel] net packet storms with multiple NICs

2009-11-10 Thread Paul Brook
> I immediately reproduced the problem locally. It turns out that > kvm reflects packets coming from one guest NIC on another guest > NIC, and since both are connected to the same bridge we're getting > endless packet storm. To a level when kvm process becomes 100% > busy and does not respond to

Re: [Qemu-devel] [PATCH] qemu/virtio: make wmb compiler barrier + comments

2009-11-10 Thread Paul Brook
On Monday 26 October 2009, Michael S. Tsirkin wrote: > wmb must be at least a compiler barrier, even without SMP. Why? Paul

Re: [Qemu-devel] [PATCH 0/4] megaraid_sas HBA emulation

2009-11-10 Thread Paul Brook
> But I certainly do _not_ want to update the SCSI disk > emulation, as this is really quite tied to the SCSI parallel > interface used by the old lsi53c895a.c. This is completely untrue. scsi-disk.c contains no transport-specific code. It is deliberately designed to be independent of both the tr

Re: [Qemu-devel] Re: [PATCH 0/2] Build fixes

2009-11-10 Thread Paul Brook
On Thursday 05 November 2009, Juan Quintela wrote: > Daniel Jacobowitz wrote: > > On Thu, Nov 05, 2009 at 05:17:46PM +0100, Juan Quintela wrote: > >> How are you compiling? > >> It works for me compiling in-tree with make -j3 (only 2 cores) > > > > I can reliably reproduce it by building all my QE

Re: [Qemu-devel] [sneak preview] major scsi overhaul

2009-11-10 Thread Paul Brook
On Friday 06 November 2009, Gerd Hoffmann wrote: >Hi, > > http://repo.or.cz/w/qemu/kraxel.git/shortlog/refs/heads/scsi.v6 > > What is in there? > (3) New interface for HBA <=> SCSIDevice interaction: > * building on the new SCSIRequest struct. > * the silly read_data/write_data

Re: [Qemu-devel] [PATCH V3 0/3] usb-gotemp: USB thermometer emulation

2009-11-10 Thread Paul Brook
On Wednesday 11 November 2009, Scott Tsai wrote: > I reworked the second patch in this series to add generic monitor commands > to change the temperature reported from thermometers. > Thermometer devices can now include "sensor.h" and call > 'qemu_add_therm_temp_handler' to register themselves. T

[Qemu-devel] Re: [PATCH] qemu/virtio: make wmb compiler barrier + comments

2009-11-11 Thread Paul Brook
On Wednesday 11 November 2009, Michael S. Tsirkin wrote: > On Wed, Nov 11, 2009 at 01:34:12AM +0000, Paul Brook wrote: > > On Monday 26 October 2009, Michael S. Tsirkin wrote: > > > wmb must be at least a compiler barrier, even without SMP. > > > > Why? > >

[Qemu-devel] Re: [PATCH] qemu/virtio: make wmb compiler barrier + comments

2009-11-11 Thread Paul Brook
> > > > > wmb must be at least a compiler barrier, even without SMP. > > > > > > > > Why? > > > > > > Because virtio code might run on a separate thread from guest. > > > If compiler reorders writes, guest might see inconsistent data. > > > > If you've got threads running in parallel (which may be

Re: [Qemu-devel] [PATCH 0/2] port over extboot from kvm

2009-11-11 Thread Paul Brook
On Wednesday 11 November 2009, Anthony Liguori wrote: > Hannes Reinecke wrote: > > But why? Why do we have to emulate the entire HBA for the BIOS? > > The HBA is emulated, too, and just uses the bdrv interface > > internally anyway. > > So IMHO it makes far more sense to skip the HBA emulation in >

Re: [Qemu-devel] [sneak preview] major scsi overhaul

2009-11-11 Thread Paul Brook
> The current qemu code *does* cache the response. scsi-disk caps the > buffer at 128k (which is big enough for any request I've seen in my > testing). scsi-generic has no cap. That cap is important. For scsi-generic you probably don't have a choice because of the way the kernel interface works

[Qemu-devel] Re: [PATCH] qemu/virtio: make wmb compiler barrier + comments

2009-11-11 Thread Paul Brook
On Wednesday 11 November 2009, Michael S. Tsirkin wrote: > On Wed, Nov 11, 2009 at 01:45:35PM +0000, Paul Brook wrote: > > If you don't need real barriers, then why does the kvm code have them? > > We need real barriers but AFAIK kvm does not have them :( > IOW: virtio i

Re: [Qemu-devel] Re: [PATCH] qemu/virtio: make wmb compiler barrier + comments

2009-11-11 Thread Paul Brook
On Wednesday 11 November 2009, Michael S. Tsirkin wrote: > On Wed, Nov 11, 2009 at 02:16:00PM +0000, Paul Brook wrote: > > On Wednesday 11 November 2009, Michael S. Tsirkin wrote: > > > On Wed, Nov 11, 2009 at 01:45:35PM +, Paul Brook wrote: > > > > If you don&

Re: [Qemu-devel] [sneak preview] major scsi overhaul

2009-11-11 Thread Paul Brook
>> That cap is important. >> For scsi-generic you probably don't have a choice because of the way the >> kernel interface works. > >Exactly. And why is the cap important for scsi-disk if scsi-generic >does fine without? With scsi-generic you're at the mercy of what the kernel API gives you, and i

Re: [Qemu-devel] arm, mips and mipsel broken

2009-11-11 Thread Paul Brook
On Tuesday 10 November 2009, Aurelien Jarno wrote: > On Tue, Nov 10, 2009 at 11:19:40PM +0200, Blue Swirl wrote: > > On Tue, Nov 10, 2009 at 10:50 PM, Aurelien Jarno wrote: > > > Please note that at least qemu-system-arm, qemu-system-mips and > > > qemu-system-mipsel are broken by this commit: >

Re: [Qemu-devel] arm, mips and mipsel broken

2009-11-11 Thread Paul Brook
> > This is latent breakage introduced by 45a50b1. > > See commits 97fe84f5 (makes breakage obvious) and f2d7497 (fixed ARM). > > MIPS still needs fixing. > > I can't find 97fe84f5 or f2d7497, what commits are those? http://git.savannah.gnu.org/cgit/qemu.git/commit/?id=97fe84f5 http://git.savanna

Re: [Qemu-devel] virtio-rng

2009-11-11 Thread Paul Brook
> I'm writing a virtio-rng host-side driver for qemu-kvm, and I've got > something up and running that works, and will pass data gathered from a > char device on the host through to the virtio-rng driver on a guest copy > of linux. Why do you need a special device? Isn't a regular serial data stre

Re: [Qemu-devel] Re: [PATCH 01/12] TCG "sync" op

2009-11-16 Thread Paul Brook
> > While sync appears attractive as a quick hack to achieve this, I think it > > is liable to be abused, and cause us serious pain long-term. If you need > > an easy solution then use ld/st (as with ARM VFP registers). If you want > > a good solution then fix whichever bit of TCG makes accessing a

Re: [Qemu-devel] [sneak preview] major scsi overhaul

2009-11-16 Thread Paul Brook
On Monday 16 November 2009, Gerd Hoffmann wrote: > On 11/11/09 17:38, Paul Brook wrote: > >>> That cap is important. > >>> For scsi-generic you probably don't have a choice because of the way > >>> the kernel interface works. > >> > >>

Re: [Qemu-devel] [PATCH 0/2] extboot reloaded.

2009-11-17 Thread Paul Brook
> >> It would require a mechanism to do enumeration and identification > >> though. > > > > Huh? Do you want export *all* block devices via extboot? Will IDE > > drives show up twice then? > > No, because SeaBIOS already has an ATA driver so we wouldn't want to > expose IDE on the extboot bus.

Re: [Qemu-devel] [PATCH 05/15] scsi: move scsi command from SCSIGenericReq to SCSIRequest.

2009-11-17 Thread Paul Brook
> move scsi command from SCSIGenericReq to SCSIRequest. Why? AFAICS This has precisely one user, and more importantly it is not populated by scsi-disk.c. Sharing common code is good. Implementing shared fields inconsistently or putting implementation specific fields in common structures. Paul

Re: [Qemu-devel] [PATCH 11/15] scsi: add xfer mode

2009-11-17 Thread Paul Brook
> add xfer mode This should also be used by scsi-disc.c Paul

Re: [Qemu-devel] [PATCH 03/15] scsi: move request lists to QTAILQ.

2009-11-17 Thread Paul Brook
On Tuesday 17 November 2009, Gerd Hoffmann wrote: > Changes: > * Move from open-coded lists to QTAILQ macros. > * Move the struct elements to the common data structures >(SCSIDevice + SCSIRequest). > * Fix request cleanup in the destroy callback. This feels like the abstraction boundaries w

Re: [Qemu-devel] QEMU redesigned for MPI (Message Passing Interface)

2009-11-17 Thread Paul Brook
> > The practical example below will explain it completely: > > > > 1) we take 4 common modern computers - CoreQuad + 8 GB Memory. > > 2) we assemble a standard Linux cluster with 16 cores and 32G memory. > > 3) and now - we run the only one virtual guest system, but give it ALL > > available resou

Re: [Qemu-devel] [PATCH 09/15] scsi: move scsi request parsing into generic code.

2009-11-17 Thread Paul Brook
On Tuesday 17 November 2009, Christoph Hellwig wrote: > The subject is a bit confusing - it's not the full request parsing but > just some helpers. This is a good example of a patch with an insufficient commit message. Given the way GIT treats the first line of the commit mesaage, my advice is to

Re: [Qemu-devel] [PATCH 0/2] extboot reloaded.

2009-11-17 Thread Paul Brook
> > In fact I'd much prefer to see extboot rewritten to just virtio-block. > > Hmm, I'd prefer something which is *not* used by the guest OS, so it is > a pure bootloader thing. When using it to boot from scsi you don't want > to have the disk show up twice (as virtio and scsi) in the guest. You

Re: [Qemu-devel] OPT_SIZE parsing

2009-11-17 Thread Paul Brook
On Tuesday 17 November 2009, Ian Molton wrote: > Hi, > > Qemu currently is making a bit of a hash of parsing suffixes, > > Right now, it has: > > T, G, M, and K which are multiples of 1024 bytes - fair enough > > but it also has: > > k - 1024 (should be 1000) > > and b: > > Byte (also wron

Re: [Qemu-devel] [PATCH 0/2] extboot reloaded.

2009-11-17 Thread Paul Brook
On Tuesday 17 November 2009, Gerd Hoffmann wrote: > On 11/17/09 13:36, Paul Brook wrote: > >>> In fact I'd much prefer to see extboot rewritten to just virtio-block. > >> > >> Hmm, I'd prefer something which is *not* used by the guest OS, so it is >

Re: [Qemu-devel] [PATCH 09/15] scsi: move scsi request parsing into generic code.

2009-11-17 Thread Paul Brook
> > Why aren't you also using this function in scsi- disc.c? Surely that's the > > whole point of moving it into common code. > > Same as with the command move: next patch series will rework scsi-disk > to put the new fields and functions into use. Hmm, maybe you need to rethink your patch sequen

Re: [Qemu-devel] Re: [PATCH 01/12] TCG "sync" op

2009-11-18 Thread Paul Brook
> > That's an option, basically keeping the list (or only one ?) of aliased > > TCG variables for each of them, and freeing the others before using one. > > Yeah, only one. I don't think this should be getting overengineered (and > thus slow) :-). > Doesn't really sound hard, does it? Any TCG magi

Re: [Qemu-devel] [PATCH 1/9] chardev: add greeting

2009-11-20 Thread Paul Brook
On Tuesday 17 November 2009, Gerd Hoffmann wrote: > Add a greeting string to CharDriverState which is printed after > initialization. Used to have the qemu vc consoles labeled. This > way we can avoid walking all the chardevs a second time after > initialization just to print the greeting. I thi

Re: [Qemu-devel] [PATCH 1/9] chardev: add greeting

2009-11-23 Thread Paul Brook
On Monday 23 November 2009, Gerd Hoffmann wrote: > On 11/20/09 18:41, Paul Brook wrote: > > On Tuesday 17 November 2009, Gerd Hoffmann wrote: > >> Add a greeting string to CharDriverState which is printed after > >> initialization. Used to have the qemu vc consoles lab

Re: [Qemu-devel] [PATCH 1/9] chardev: add greeting

2009-11-23 Thread Paul Brook
On Monday 23 November 2009, Gerd Hoffmann wrote: > On 11/23/09 14:26, Paul Brook wrote: > > I thinking more that this should be done by the character backend itself. > > For example, the "graphical" consoles should probably be putting this as > > part of the wind

Re: [Qemu-devel] [PATCH] Makefile: Add missing rule for config-devices.mak

2009-11-23 Thread Paul Brook
On Sunday 22 November 2009, Stefan Weil wrote: > All files config-devices.mak are copies from files in > directory default-configs. See commit a992fe3, specifically "make defconfig". Paul

Re: [Qemu-devel]Debian for arm

2007-04-13 Thread Paul Brook
On Friday 13 April 2007 14:21, Maxime Tierrie wrote: > Hi all, > > I would like to build Debian for an ARM target and simulate it with qemu. > I tried the following command: > qemu-system-arm -M versatilepb -cdrom debian-31r5-arm-netinst.iso -hda > hda.img -boot d > Obviously, it doesn't work (it a

Re: [Qemu-devel]Debian for arm

2007-04-13 Thread Paul Brook
> > http://www.aurel32.net/info/debian_arm_qemu.php > > > > Paul > > Thank you Paul. Unfortunately, I have already tried it few days ago and > it didn't work. That's why I asked for a net-install. This is a network install. Paul

[Qemu-devel] sparc64 gdb

2007-04-13 Thread Paul Brook
I'm currently reqriting bits of the qemu gdb stub to take advantage of new GDB target description mechanisms, and have come accross what looks like a bug in the sparc64 code. My understanding is that gdb considers sparc64 to have 48 "registers". The first 32 are the same as sparc32, the last 1

[Qemu-devel] Re: sparc64 gdb

2007-04-13 Thread Paul Brook
> By my reading this get f0 and f1 the wrong way round on little-endian > hosts. Should this be(omitting uint32 *casts for clarity): > > tmp = env->fpr[i]; > tmp |= env->fpr[i + 1]; > registers[i/2 + 32] = tswap64(tmp) Argh. What I meant was: tmp = env->fpr[i] << 32; tmp |= env->fpr[i +

Re: [Qemu-devel] FDC and M48T59 save/reset methods

2007-04-13 Thread Paul Brook
> I'd like to commit the attached FDC and M48T59 device save and reset > methods. After this change, all Sparc32 devices can be saved. > > Any comments? Do you also need to save the state of the attached drives? Paul

[Qemu-devel] qemu gdbstub.c

2007-04-14 Thread Paul Brook
CVSROOT:/sources/qemu Module name:qemu Changes by: Paul Brook 07/04/14 22:35:50 Modified files: . : gdbstub.c Log message: Fix format specified for watchpoint address. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/qemu/gdbstub.c?cvsroot=qemu

Re: [Qemu-devel] Determine simulated pc during an exception

2007-04-14 Thread Paul Brook
> Can anyone point me to the place in the code where the simulated program > counter is determined after an exception? cpu_restore_state Paul

Re: [Qemu-devel] 16-bit (and 8-bit) emulation

2007-04-15 Thread Paul Brook
On Sunday 15 April 2007 12:33, Stuart Brady wrote: > On Sun, Apr 15, 2007 at 11:08:56AM +0100, Nigel Horne wrote: > > Can qemu emulate 16-bit machines (286?)? > > None that I'm aware of. Is there any particular need for 286 emulation? > OTOH, it might be interesting to see some m68k system emulati

Re: [Qemu-devel] 16-bit (and 8-bit) emulation

2007-04-15 Thread Paul Brook
On Sunday 15 April 2007 13:08, Nigel Horne wrote: > Stuart Brady wrote: > > On Sun, Apr 15, 2007 at 11:08:56AM +0100, Nigel Horne wrote: > >> Can qemu emulate 16-bit machines (286?)? > > > > None that I'm aware of. Is there any particular need for 286 emulation? > > To test my code on machines whe

Re: [Qemu-devel] 16-bit (and 8-bit) emulation

2007-04-15 Thread Paul Brook
> > Modern x86 are backwards compatible[*], so you should be able to do that > > anyway. > > Care to share with us how I do that? Is it an option to gcc? gcc does not support 16-bit mode. My point is that pretty much anything that runs on a 286 should also run on any subsequent x86 processor. If

Re: [Qemu-devel] 16-bit (and 8-bit) emulation

2007-04-15 Thread Paul Brook
> > My point is that pretty much anything that runs on a 286 should also run > > on any subsequent x86 processor. If you want to test 16-bit x86 > > software/systems you don't need an actual 286. A 386 is just as good for > > almost all purposes. > > How does that address my issue? You wanted a 28

Re: [Qemu-devel] 16-bit (and 8-bit) emulation

2007-04-15 Thread Paul Brook
On Sunday 15 April 2007 14:46, Nigel Horne wrote: > Let me approach this in a different way in the hope that I'll get an answer > to my question: will Qemu run a 286 guest O/S? Yes. Paul

Re: [Qemu-devel] [Patch] Makefile.target

2007-04-15 Thread Paul Brook
On Sunday 15 April 2007 14:57, Stefan Weil wrote: > This small patch for Makefile.target fixes a very special build issue: > > make distclean # (only needed to remove files left from earlier builds) > ./configure > make -C i386-softmmu # (or any other system emulation) > > will try to build the mis

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

2007-04-15 Thread Paul Brook
CVSROOT:/sources/qemu Module name:qemu Changes by: Paul Brook 07/04/15 14:13:11 Modified files: linux-user : flatload.c Log message: bFLT loader alignment fix. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/qemu/linux-user/flatload.c?cvsroot=qemu&am

Re: [Qemu-devel] qemu/pc-bios README openbios-sparc32 openbios-s...

2007-04-15 Thread Paul Brook
On Sunday 15 April 2007 16:03, Blue Swirl wrote: > On 4/15/07, Stefan Weil <[EMAIL PROTECTED]> wrote: > > The Sparc64 image is much larger than the Sparc32 image, > > but the size command displays a much smaller text and data size > > (about the same size as for the Sparc32 image). > > > > Maybe it

Re: [Qemu-devel] qemu/pc-bios README openbios-sparc32 openbios-s...

2007-04-15 Thread Paul Brook
On Sunday 15 April 2007 20:11, Blue Swirl wrote: > > Probably the linker is making sure the file offset and VMA are the same > > modulo the page size. > > But that would be one huge file, as the VMA is near 2TB: I said *modulo the pace size* :-) Lets say ld thinks the page size for your system is

Re: [Qemu-devel] [Patch] Makefile.target

2007-04-15 Thread Paul Brook
> But nevertheless, sometimes it happens that I "do that", > and then I'm always happy when I get a clear error > message. Or even better, when something works as > expected even when I did something unexpected. > You are lucky if you never experienced such situations. > > In my case, even a simple

[Qemu-devel] qemu/hw acpi.c

2007-04-15 Thread Paul Brook
CVSROOT:/sources/qemu Module name:qemu Changes by: Paul Brook 07/04/15 23:54:20 Modified files: hw : acpi.c Log message: Remove unused variable. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/qemu/hw/acpi.c?cvsroot=qemu&r1=1.9&r2=1.10

Re: [Qemu-devel] time inside qemu

2007-04-16 Thread Paul Brook
On Monday 16 April 2007 15:41, Marius Monton wrote: > > Any benchmark/performance measurements you make inside qemu are > > meaningless. qemu performance bears no relation whatsoever to the > > performance characteristics of real hardware. > > That's true, and I don't care about it. I'd like to get

Re: [Qemu-devel] time inside qemu

2007-04-17 Thread Paul Brook
> code (a) : for (int i = 0; i< 100; i++) c[i] = a[i] * b[i]; > > code (b) : for (int i = 0; i< 1000; i++) for(int j = 0; j < b[i]; j++) > c[i] += a[i]; > > code (c) : for (int i = 0; i< 1000; i++) c[i] = HW_MUL(a[i], b[i]); > > I'm sure that code (b) will execute much longer that code (a) ins

Re: [Qemu-devel] how to choose arm's type

2007-04-18 Thread Paul Brook
On Wednesday 18 April 2007 16:19, tang peilei wrote: > in qemu's doc, i found it support some arm integrator/cp board and arm926e > or arm1026e cpu. > but if i can choose to use arm926e cpu or arm1026e cpu ??? Use the -cpu commandline option. > when i build a linux kernel image, i let it run on q

Re: [Qemu-devel] qemu/hw pckbd.c

2007-04-18 Thread Paul Brook
> > If you're interressed in such a feature, you may take a look of what > > I've done in hw/ppc405_uc.c. There are some device sharing the same > > memory page on those microcontrollers so I introduced a fake device > > called mmio that allow to register multiple devices into a single page > > in

Re: [Qemu-devel] qemu/hw pckbd.c

2007-04-19 Thread Paul Brook
> > While you're fixing this, it would be good to fix overlapping devices as > > well ;-) Currently if you (temporarily) have overlapping regions then > > remove one of them you end up with unmapped memory. > > What is the correct behavior in such a case ? What device would you > actually see ? May

<    2   3   4   5   6   7   8   9   10   11   >