Re: [Qemu-devel] [PATCH 06/13] Add support for S390x system emulation

2009-11-25 Thread Paul Brook
> --- a/target-s390x/cpu.h > +++ b/target-s390x/cpu.h > @@ -30,8 +30,7 @@ > > #include "softfloat.h" > > -#define NB_MMU_MODES 2 // guess > -#define MMU_USER_IDX 0 // guess > +#define NB_MMU_MODES 2 The fact that you're modifying a file you added earlier in the same patch series gives me very

[Qemu-devel] Re: Live migration protocol, device features, ABIs and other beasts

2009-11-24 Thread Paul Brook
> > Reading in old state files is a whole lot easier (to write > > maintain, and stay sane) than producing state that is bug-compatible with > > previous versions. > > It seems to me that old->new and new->old migrations are > of about the same level of difficulty. > Supporting one of these but no

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

2009-11-24 Thread Paul Brook
On Tuesday 24 November 2009, Gerd Hoffmann wrote: > On 11/16/09 19:53, Paul Brook wrote: > > Capping the amount of memory required for a transfer *is* implemented, in > > both LSI and virtio-blk. The exception being SCSI passthrough where the > > kernel API makes it

Re: [Qemu-devel] Re: Re: Live migration protocol, device features, ABIs and other beasts

2009-11-24 Thread Paul Brook
> But it's easy to support migration to old qemu just > by discarding the INTx state, and this is not > at all harder, or worse, than migrating from old qemu > to new one. Do we really care about migrating to older versions? Migrating to a new version (backward compatibility) I see the use, it al

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] [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 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-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] 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 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] [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] 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
> > 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] [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] 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 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] [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 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 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] [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] 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] 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] 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] 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] [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] 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&

[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] [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

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 >

[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

[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? > >

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

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] 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] [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] [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] 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] 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] [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] [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: 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/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 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] 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] 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 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] 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] 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] [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

[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] 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

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] [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] 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: [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] 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: [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] [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] [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
> > 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] 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 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] [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] 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] 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-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] 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] 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

[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: 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

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] 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

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] 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] 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

[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

[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 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 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

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 Makefile.target

2008-02-01 Thread Paul Brook
CVSROOT:/sources/qemu Module name:qemu Changes by: Paul Brook 08/02/01 22:45:05 Modified files: . : Makefile.target Log message: Add missing dependencies on generated files (for parallel build). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs

Re: [kvm-devel] [Qemu-devel] Re: [PATCH 1/6] Use correct types to enable > 2G support

2008-02-01 Thread Paul Brook
> virtio could still be made to work with map cache. You would just have > to change it to be able to map more than one page contiguously. As I > mentioned though, it just starts getting ugly. That's why you should be using the cpu_physical_memory_rw routines :-) Anything that assume large line

Re: [Qemu-devel] 3D acceleration

2008-02-01 Thread Paul Brook
On Friday 01 February 2008, Johannes Schindelin wrote: > Hi, > > On Fri, 1 Feb 2008, Christian Laursen wrote: > > Gervase Lam <[EMAIL PROTECTED]> writes: > > >>>From my minimal understanding of what he is saying, it seems he would > > > > > > prefer there to be a BOCHS graphics adapter, which would

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

2008-02-01 Thread Paul Brook
> > I agree with the fact that ram_size should be 64 bit. Maybe each > > machine could test the value and emit an error message if it is too > > big. Maybe an uint64_t would be better though. > > uint64_t is probably more reasonable. I wouldn't begin to know what the > appropriate amount of ram wa

[Qemu-devel] Re: [PATCH 4/6] Tell BIOS about the number of CPUs

2008-01-31 Thread Paul Brook
> > Are the CMOS contents documented anywhere? > > No, but if you have a suggestion of where to document them, I'll add > documentation. I suggest in or with the BIOS sources. As we're using a common BIOS it seems a good idea to make sure this kind of things is coordinated. Paul

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

2008-01-31 Thread Paul Brook
> >> +#define PHYS_RAM_MAX_SIZE (2047 * 1024 * 1024 * 1024ULL) > > > > This seems fairly arbitrary. Why? Any limit is certainly target specific. > > On a 32-bit host, a 2GB limit is pretty reasonable since you're limited > in virtual address space. On a 64-bit host, there isn't this > fundamental

[Qemu-devel] Re: [PATCH 4/6] Tell BIOS about the number of CPUs

2008-01-31 Thread Paul Brook
> -cmos_init(ram_size, above_4g_mem_size, boot_device, hd); > +cmos_init(ram_size, above_4g_mem_size, boot_device, hd, smp_cpus); smp_cpus is a global variable. Why bother passing it around? Are the CMOS contents documented anywhere? Paul

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

2008-01-31 Thread Paul Brook
On Thursday 31 January 2008, Anthony Liguori wrote: > KVM supports more than 2GB of memory for x86_64 hosts. The following patch > fixes a number of type related issues where int's were being used when they > shouldn't have been. It also introduces CMOS support so the BIOS can build > the appropr

Re: [Qemu-devel] Merging KVM QEMU changes upstream

2008-01-25 Thread Paul Brook
> Is this a reasonable merge strategy? We won't introduce regressions but > I can't guarantee these new things will work cross-architecture. I think it depends to some extent whether things will need rewriting to be made cross-architecture. In particular if this requires interface changes. Thi

Re: [Qemu-devel] [PATCH] CPPFLAGS+= in Makefile.target

2008-01-25 Thread Paul Brook
> > Why don't you just put your custom flags in CFLAGS, not CPPFLAGS? > > The former is deliberately left for the user to override. > > Several (but not all AFAICT) of the target subdirectory Makefiles set > CFLAGS. Really? Which ones? Paul

Re: [Qemu-devel] [PATCH] CPPFLAGS+= in Makefile.target

2008-01-25 Thread Paul Brook
> Providing a definition in config-host.mak involves duplicating the > value, which can't be right. Huh? No it doesn't. config-host.mak contains CPPFLAGS= then Makefile.target contains CPPFLAGS+=whatever > If there's no other way to do it then > there should be a reference to USER_CPPFLAGS or

Re: [Qemu-devel] [PATCH] CPPFLAGS+= in Makefile.target

2008-01-25 Thread Paul Brook
On Friday 25 January 2008, Ian Jackson wrote: > Paul Brook writes ("Re: [Qemu-devel] [PATCH] CPPFLAGS+= in Makefile.target"): > > In that case you should always provide a definition in config-host.mak. > > Under some circumstances make may inherit initial values

Re: [Qemu-devel] [PATCH] CPPFLAGS+= in Makefile.target

2008-01-25 Thread Paul Brook
> What I mean is: if you want > for any reason to build qemu in a weird way then you're going to have > to edit config-host.mak (or somewhere similar) in any case. You > probably want to set some CPPFLAGS as well as various other things. > If you do this at the moment then you have to reproduce al

Re: [Qemu-devel] [PATCH] CPPFLAGS+= in Makefile.target

2008-01-25 Thread Paul Brook
> Saying CPPFLAGS+= is much more convenient if for any reason the > external build environment would like to pass unusual CPPFLAGS. No. This doesn't do what you thing it does. The most common way of overriding these variables is to pass them on the commandline, i.e. "make CPPFLAGS=-blah". This ov

Re: [Qemu-devel] threads on qemu

2008-01-21 Thread Paul Brook
On Monday 21 January 2008, C.W. Betts wrote: > I was thinking, maybe qemu could use threads for at least every processor > it emulates (on emulated smp computers) and, at the most, every single > device emulated. This would help users who have multiple cores, but it > might impact performance on t

Re: [Qemu-devel] WE NEED GCC 4 please

2008-01-21 Thread Paul Brook
> Well, what about adding a new backend phase to gcc generating what we > expect for our purpose? Ok, it is rather easy to have a branch in gcc, > harder to have it accepted in the main-stream gcc... :-) With a good > argumentation... IMHO (as a full time gcc developer) it's easier to just impleme

Re: [Qemu-devel] [PATCH 2 of 3] Optionally link against libuuid if present

2008-01-20 Thread Paul Brook
On Sunday 20 January 2008, Filip Navara wrote: > Hello, > > attached is a patch that implements the SMBIOS within the Bochs BIOS code. > Complete list of changes: This should be submitted to the Bochs list. Paul

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

2008-01-19 Thread Paul Brook
> In the absence of a global configuration file, a reasonably sane way to > support this configuration system wide is to use an environmental > variable. QEMU already uses a number of global variables for > configuring audio options. I'd really prefer we didn't do this, and preferably obsoleted/r

Re: [Qemu-devel] Re: [kvm-devel] [PATCH] e1000 emulation code

2008-01-10 Thread Paul Brook
> the next step would be to emulate LSI SCSI chips, eh? Qemu already does. Paul

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