]> xenbits.xensource.com Git - qemu-xen-4.0-testing.git/log
qemu-xen-4.0-testing.git
16 years agoCopy hw/pass-through.[ch] from xen-unstable 17647:f12724194ec6
Ian Jackson [Fri, 23 May 2008 17:23:48 +0000 (18:23 +0100)]
Copy hw/pass-through.[ch] from xen-unstable 17647:f12724194ec6

16 years agoCopy hw/tpm_tis.c from xen-unstable 17647:f12724194ec6
Ian Jackson [Fri, 23 May 2008 17:22:48 +0000 (18:22 +0100)]
Copy hw/tpm_tis.c from xen-unstable 17647:f12724194ec6

16 years agoMerge changes from xen-unstable 17647 with relevant upstream changes.
Ian Jackson [Fri, 23 May 2008 17:20:55 +0000 (18:20 +0100)]
Merge changes from xen-unstable 17647 with relevant upstream changes.

Now we consider ourselves up to date with
 (a) upstream as recorded by git
 (b) xen-unstable 17647:f12724194ec6

This was achieved by copying these files
   console.c
   console.h
   hw/cirrus_vga.c
   hw/cirrus_vga_rop.h
   hw/cirrus_vga_rop2.h
   hw/vga.c
   hw/vga_int.h
verbatim from the crazy branch vga-reverse-merge, current head
commit cc011fdf74a616fec9ab6841026c5e7121c0dce3.

We have effectively overwritten these files from qemu with those
from xen-unstable and then cherry-picked changes from qemu mainline.

16 years agoMerge changes from xen-unstable, up to 17647:f12724194ec6.
Ian Jackson [Thu, 22 May 2008 16:30:34 +0000 (17:30 +0100)]
Merge changes from xen-unstable, up to 17647:f12724194ec6.

Done with diff and patch.  Outstanding issues:

 pci.c irq save/restore change (xen-unstable hg c/s 17518)
 pci passthrough - files just copied across, not integrated
 build system
 VGA subsystem

16 years agopcnet: Allow save/restore of multiple NICs
Ian Jackson [Wed, 14 May 2008 15:58:20 +0000 (16:58 +0100)]
pcnet: Allow save/restore of multiple NICs

Change imported from xen-unstable.  From the logs it's likely to have
been this changeset:

    changeset:   14651:f06535a8ae9fd43e3d4147dbab335a8d4827d9f6
    user:        Tim Deegan <Tim.Deegan@xensource.com>
    date:        Thu Mar 29 15:30:01 2007 +0000
    files:       tools/ioemu/hw/ne2000.c tools/ioemu/hw/pcnet.c tools/ioemu/hw/rtl8139.c
    description:
    [HVM] Save/restore: Allow save/restore of multiple NICs
Signed-off-by: Tim Deegan <Tim.Deegan@xenource.com>
16 years agoDo not kill ioemu if undefined LSI-SCI registers are read.
Ian Jackson [Wed, 14 May 2008 15:55:37 +0000 (16:55 +0100)]
Do not kill ioemu if undefined LSI-SCI registers are read.

Imported changeset from xen-unstable:

    changeset:   14902:a7bd11fd5b1b6f4a82135db09dfe654e8966fabe
    user:        kfraser@localhost.localdomain
    date:        Tue Apr 24 12:12:48 2007 +0100
    files:       tools/ioemu/hw/lsi53c895a.c
    description:
    qemu: Do not kill ioemu if undefined LSI-SCI registers are read. Just
    return zeroes. This path is triggered by ASPI8DOS.SYS in DRDOS.
Signed-off-by: Keir Fraser <keir@xensource.com>
However, this behaviour change was inexplicably made conditional on
CONFIG_DM.  I have removed the conditionality.

16 years agodma.c merged from xen-unstable 17318:b5fea3aeb04b
Ian Jackson [Wed, 14 May 2008 15:51:53 +0000 (16:51 +0100)]
dma.c merged from xen-unstable 17318:b5fea3aeb04b

changesets included:

    changeset:   14912:c1d3f4fbfacf7ea8eab9549823787f13efa2d976
    user:        Christian Limpach <Christian.Limpach@xensource.com>
    date:        Tue Apr 24 17:02:10 2007 +0100
    files:       tools/ioemu/hw/dma.c
    description:
    [qemu-dm] Check for null pointer in dma handler function pointer.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
    changeset:   16936:3daab9b636c121bc9d957568ea135b2f40776ca5
    user:        Keir Fraser <keir.fraser@citrix.com>
    date:        Wed Jan 30 09:33:26 2008 +0000
    files:       tools/ioemu/hw/dma.c tools/ioemu/hw/sb16.c
    description:
    ioemu: Better fix for SB16 infinite looping.

    Qemu upstream solves "Fix an infinite loop in the emulated SB16
    device" issue differently as stated in [2]

    [1] http://xenbits.xensource.com/xen-3.1-testing.hg?rev/4b22d472bda6
    [2] http://lists.gnu.org/archive/html/qemu-devel/2008-01/msg00709.html

Signed-off-by: S. Caglar Onur <caglar@pardus.org.tr>
16 years agoadd registration of bdrv_vbd for stubdom
Ian Jackson [Wed, 14 May 2008 15:47:50 +0000 (16:47 +0100)]
add registration of bdrv_vbd for stubdom

16 years agoStubdom changes to exec-all.h.
Ian Jackson [Wed, 14 May 2008 15:39:43 +0000 (16:39 +0100)]
Stubdom changes to exec-all.h.

16 years agoide: Add PCI subsystem ID to emulated devices.
Ian Jackson [Wed, 14 May 2008 15:18:35 +0000 (16:18 +0100)]
ide: Add PCI subsystem ID to emulated devices.

Merge into qemu git of this change to hw/ide.c from xen-unstable:

    changeset:   13821:6e1b380947ee72e300ce038cbeade628f347ac6a
    user:        kfraser@localhost.localdomain
    date:        Wed Feb 07 16:08:47 2007 +0000
    files:       tools/ioemu/hw/cirrus_vga.c tools/ioemu/hw/ide.c tools/ioemu/hw/rtl8139.c
    description:
    hvm: Add PCI subsystem ID to emulated devices.

    This patch adds the PCI Subsystem ID 5853:0001 to the virtual
    devices emulated by qemu (ide, nic, vga).

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
16 years agoAccelerate IDE PIO on HVM/IA64
Ian Jackson [Wed, 14 May 2008 15:16:31 +0000 (16:16 +0100)]
Accelerate IDE PIO on HVM/IA64

Merge of this:

    changeset:   14151:b0f663e668d9e25c9c577f7a2100d9b3286101cd
    user:        kfraser@localhost.localdomain
    date:        Tue Feb 27 15:33:25 2007 +0000
    files:       tools/ioemu/hw/ide.c tools/ioemu/vl.c xen/include/public/hvm/ioreq.h
    description:
    Accelerate IDE PIO on HVM/IA64 [1/3]

    Add a bufferring mechanism for IDE PIO in qemu.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
and associated gubbins.

16 years agoMerge branch 'master' into xen
Ian Jackson [Wed, 14 May 2008 15:06:15 +0000 (16:06 +0100)]
Merge branch 'master' into xen

Conflicts:

hw/ide.c
hw/pc.c
hw/serial.c
hw/usb-hid.c
loader.c
sysemu.h
vl.c

Merge was relatively straightforward.  Specific comments follow:

hw/serial.c
Have kept the Xen rate limiting rather than
the qemu version.  The Xen version does an overall
rate limit but doesn't adjust according to the
baud rate.  The qemu version is just a maximum
burst (so no overall capacity limit) but does
depend on the baud rate.

vl.c
Several dummy functions helpfully moved into
target-* directories; I put them in a new
i386-dm/machine.c for now.

16 years agoMerge branch 'origin'
Ian Jackson [Wed, 14 May 2008 13:45:40 +0000 (14:45 +0100)]
Merge branch 'origin'

Conflicts:
hw/ide.c
hw/pc.c
loader.c
osdep.c
osdep.h
qemu-common.h
(All easily resolved.)

16 years agoFix loading of binary ROMs
blueswir1 [Tue, 13 May 2008 15:44:10 +0000 (15:44 +0000)]
Fix loading of binary ROMs

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4452 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoFix compiler warning.
ths [Tue, 13 May 2008 14:35:34 +0000 (14:35 +0000)]
Fix compiler warning.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4451 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoCRIS: Improve TLB management and handle delayslots at page boundaries.
edgar_igl [Tue, 13 May 2008 10:59:14 +0000 (10:59 +0000)]
CRIS: Improve TLB management and handle delayslots at page boundaries.
* Dont flush the entire qemu tlb when the $pid changes. Instead we go through
  the guests TLB and choose entries that need to be flushed.
* Add env->dslot and handle delayslots at pageboundaries.
* Remove some unused code.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4450 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agocompilation fix
bellard [Mon, 12 May 2008 22:55:35 +0000 (22:55 +0000)]
compilation fix

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4449 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agouse new helper name
bellard [Mon, 12 May 2008 22:05:33 +0000 (22:05 +0000)]
use new helper name

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4448 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoconverted more helpers to TCG
bellard [Mon, 12 May 2008 22:05:13 +0000 (22:05 +0000)]
converted more helpers to TCG

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4447 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoremoved unused code
bellard [Mon, 12 May 2008 22:03:14 +0000 (22:03 +0000)]
removed unused code

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4446 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoFPU fixes
bellard [Mon, 12 May 2008 20:30:28 +0000 (20:30 +0000)]
FPU fixes

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4445 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoconverted x87 FPU ops to TCG
bellard [Mon, 12 May 2008 19:10:44 +0000 (19:10 +0000)]
converted x87 FPU ops to TCG

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4444 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoMove prototype back to avoid a compiler warning
blueswir1 [Mon, 12 May 2008 17:59:14 +0000 (17:59 +0000)]
Move prototype back to avoid a compiler warning

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4443 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoRemove most uses of phys_ram_base (initial patch by Ian Jackson)
blueswir1 [Mon, 12 May 2008 17:22:13 +0000 (17:22 +0000)]
Remove most uses of phys_ram_base (initial patch by Ian Jackson)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4442 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoconverted SSE/MMX ops to TCG
bellard [Mon, 12 May 2008 16:47:36 +0000 (16:47 +0000)]
converted SSE/MMX ops to TCG

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4441 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoWrap long lines
blueswir1 [Mon, 12 May 2008 16:13:33 +0000 (16:13 +0000)]
Wrap long lines

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4440 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agouse TCG for MMX/SSE memory accesses
bellard [Mon, 12 May 2008 13:55:27 +0000 (13:55 +0000)]
use TCG for MMX/SSE memory accesses

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4439 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agotemporary hack to handle register shortage with dyngen for qemu_st64()
bellard [Mon, 12 May 2008 13:49:14 +0000 (13:49 +0000)]
temporary hack to handle register shortage with dyngen for qemu_st64()

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4438 c046a42c-6fe2-441c-8c8c-71466251a162

16 years ago2.6 kernels make int 5 a trap gate
bellard [Mon, 12 May 2008 12:23:31 +0000 (12:23 +0000)]
2.6 kernels make int 5 a trap gate

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4437 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agochar is only for strings
bellard [Mon, 12 May 2008 12:08:29 +0000 (12:08 +0000)]
char is only for strings

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4436 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agothe double/triple fault handling was not tested in user mode.
bellard [Mon, 12 May 2008 12:04:40 +0000 (12:04 +0000)]
the double/triple fault handling was not tested in user mode.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4435 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoremoved unused code
bellard [Mon, 12 May 2008 12:00:46 +0000 (12:00 +0000)]
removed unused code

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4434 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agousb-uhci: correctly deal with interrupt in asynchronous completion
Ian Jackson [Fri, 9 May 2008 16:18:55 +0000 (17:18 +0100)]
usb-uhci: correctly deal with interrupt in asynchronous completion

This is the result of merging the remaining changes from:

    changeset:   12775:60bbcf799384d779c2a561b9d9ba30f28e31d970
    user:        kfraser@localhost.localdomain
    date:        Thu Dec 07 11:52:26 2006 +0000
    files:       tools/ioemu/hw/usb-hid.c tools/ioemu/hw/usb-uhci.c
    description:
    [HVM] qemu mouse: Adds support for USB mouse/tablet status check and
    restricts Universal Host Controller interrupt generating when received
    NAK in interrupt transfer.

    According to usb spec, USB mouse/tablet device returns NAK to host
    controller if its status does not alter in interrupt transfer.
    And UHC should leave a TD active when receiving NAK and execute this
    incompleted TD in a subseqent frame. UHC only generates an interrupt
    on complete after the TD with ICO bit is completed.

    This patch make UHC & USB mouse/tablet behave consistently with spec.

Signed-off-by: Xinmei Huang <xinmei.huang@intel.com>
The tablet NAK support was already done in qemu, but there was still
what Xinmei Huang tell us is a spurious interrupt in the case of
submission for asynchronous completion.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
16 years agoClear TD status field explicitly when it's fetched.
Ian Jackson [Fri, 9 May 2008 16:07:37 +0000 (17:07 +0100)]
Clear TD status field explicitly when it's fetched.

changeset:   13574:b064775fba7d838c99bcf11ca4fec6127e0e8792
user:        kfraser@localhost.localdomain
date:        Wed Jan 24 10:44:32 2007 +0000
files:       tools/ioemu/hw/usb-uhci.c
description:
[QEMU] Clear TD status field explicitly when it's fetched.

In current Qemu-dm, UHC will set some status bits of TD in status
updating stage, but never process the status bit if relevant condition
does not occur, leaving it as it is. When a TD is fetched with some
status bits are set to 1, it will return to Guest OS with these bits
set to 1 even this TD is executed successfully. Some Windows OS,
e.g. Windows 2000, will check status bits of TD in UHC interrupt
routine, treat it as a unsuccessful one if some status bits are set to
1 and discard the data. Other Windows OS just check USBSTS of UHC,
ignoring status field of TD unless the value of USBSTS indicates
occurrence of error.

With this patch, USB mouse/tablet in Windows 2000 works correctly.

Signed-off-by: Xinmei Huang <xinmei.huang@intel.com>
16 years agoQueue some mouse events.
Ian Jackson [Fri, 9 May 2008 14:50:33 +0000 (15:50 +0100)]
Queue some mouse events.

Inspired by xen-unstable changeset, but entirely rewritten:

  changeset:   17003:96b418cf047e6d869740efd3660ab175303a3148
  user:        Keir Fraser <keir.fraser@citrix.com>
  date:        Mon Feb 11 09:57:38 2008 +0000
  files:       tools/ioemu/hw/usb-hid.c tools/ioemu/sdl.c
  description:
  qemu: Queue mouse clicks.

  qemu doesn't enqueue mouse events, just records the latest mouse
  state. This can cause some lost mouse double clicks if the events are
  not processed fast enought. This patch implements a simple queue for
  left mouse click events.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
16 years agomerge from in xen-unstable tip (17318:b5fea3aeb04b): hw/rtl8139.c
Ian Jackson [Wed, 7 May 2008 17:44:26 +0000 (18:44 +0100)]
merge from in xen-unstable tip (17318:b5fea3aeb04b): hw/rtl8139.c

merge this changeset from xen-unstable:

changeset:   12482:075f4ffdbbce5527ba525a515abe320703d17a0e
user:        kfraser@localhost.localdomain
date:        Fri Nov 17 10:34:08 2006 +0000
files:       tools/ioemu/hw/rtl8139.c
description:
[QEMU] rtl8139: Disallow chaining above 64K

As it stands the 8139C+ TX chaining is only bounded by realloc failure.
This is contrary to how the real hardware operates.  It also has DoS
potential when ioemu runs in dom0.

This patch makes any attempt to chain a frame beyond 64K fail
immediately.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
16 years agomerge from in xen-unstable tip (17318:b5fea3aeb04b): hw/rtl8139.c
Ian Jackson [Wed, 7 May 2008 17:43:30 +0000 (18:43 +0100)]
merge from in xen-unstable tip (17318:b5fea3aeb04b): hw/rtl8139.c

merge this changeset from xen-unstable:

changeset:   13821:6e1b380947ee72e300ce038cbeade628f347ac6a
user:        kfraser@localhost.localdomain
date:        Wed Feb 07 16:08:47 2007 +0000
files:       tools/ioemu/hw/cirrus_vga.c tools/ioemu/hw/ide.c tools/ioemu/hw/rtl8139.c
description:
hvm: Add PCI subsystem ID to emulated devices.

This patch adds the PCI Subsystem ID 5853:0001 to the virtual
devices emulated by qemu (ide, nic, vga).

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
16 years agomerge from in xen-unstable tip (17318:b5fea3aeb04b): hw/rtl8139.c
Ian Jackson [Wed, 7 May 2008 17:41:27 +0000 (18:41 +0100)]
merge from in xen-unstable tip (17318:b5fea3aeb04b): hw/rtl8139.c

merge this changeset from xen-unstable:

changeset:   14651:f06535a8ae9fd43e3d4147dbab335a8d4827d9f6
user:        Tim Deegan <Tim.Deegan@xensource.com>
date:        Thu Mar 29 15:30:01 2007 +0000
files:       tools/ioemu/hw/ne2000.c tools/ioemu/hw/pcnet.c tools/ioemu/hw/rtl8139.c
description:
[HVM] Save/restore: Allow save/restore of multiple NICs
Signed-off-by: Tim Deegan <Tim.Deegan@xenource.com>
16 years agomerge from in xen-unstable tip (17318:b5fea3aeb04b): hw/serial.c. Main stuff: 16550A...
Ian Jackson [Wed, 7 May 2008 16:58:47 +0000 (17:58 +0100)]
merge from in xen-unstable tip (17318:b5fea3aeb04b): hw/serial.c. Main stuff: 16550A support from Xen; loopback and IRQ changes from Qemu

16 years agomerge from in xen-unstable tip (17318:b5fea3aeb04b): hw/pci.c: e100; PCI hotplug
Ian Jackson [Wed, 7 May 2008 15:29:53 +0000 (16:29 +0100)]
merge from in xen-unstable tip (17318:b5fea3aeb04b): hw/pci.c: e100; PCI hotplug

16 years agomerge from in xen-unstable tip (17318:b5fea3aeb04b): hw/ne2000: security fixes and...
Ian Jackson [Wed, 7 May 2008 15:20:46 +0000 (16:20 +0100)]
merge from in xen-unstable tip (17318:b5fea3aeb04b): hw/ne2000: security fixes and ability to load/save multiple NICs

16 years agomerge from in xen-unstable tip (17318:b5fea3aeb04b): hw/iommu: PAGE_SHIFT is 14 on...
Ian Jackson [Wed, 7 May 2008 14:53:28 +0000 (15:53 +0100)]
merge from in xen-unstable tip (17318:b5fea3aeb04b): hw/iommu: PAGE_SHIFT is 14 on ia64

16 years agomerge from in xen-unstable tip (17318:b5fea3aeb04b): merge keymap changes in xen...
Ian Jackson [Wed, 7 May 2008 14:14:55 +0000 (15:14 +0100)]
merge from in xen-unstable tip (17318:b5fea3aeb04b): merge keymap changes in xen-unstable since qemu 0.9.0

16 years agomerge from in xen-unstable tip (17318:b5fea3aeb04b): record whether keys are shift...
Ian Jackson [Wed, 7 May 2008 14:11:07 +0000 (15:11 +0100)]
merge from in xen-unstable tip (17318:b5fea3aeb04b): record whether keys are shift as well as numlock, for the benefit of some fancier keymaps

16 years agomerge from in qemu upstream: "BSD portability fixes"
Ian Jackson [Tue, 6 May 2008 14:41:22 +0000 (15:41 +0100)]
merge from in qemu upstream: "BSD portability fixes"

From xen-unstable:

 changeset:   15970:04cc0e22a20a0bdf6ceefb016185175ee094ed30
 user:        Keir Fraser <keir@xensource.com>
 date:        Thu Sep 27 16:36:23 2007 +0100
 files:       tools/ioemu/audio/audio.c tools/ioemu/audio/mixeng.c tools/ioemu/audio/ossaudio.c tools/ioemu/block-raw.c tools/ioemu/block-vvfat.c tools/ioemu/bswap.h tools/ioemu/cutils.c tools/ioemu/monitor.c tools/ioemu/osdep.h tools/ioemu/target-i386-dm/exec-dm.c tools/ioemu/usb-linux.c tools/ioemu/vl.c tools/ioemu/vl.h tools/ioemu/vnc.c
 description:
 ioemu: Fixes for BSD.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Mostly merged.  Dropped the ctype.h casts since we have those already,
and also a few things that looked wrong.

16 years agomerge from in qemu upstream: "Attempt to fix incorrect colours on some BGR displays...
Ian Jackson [Tue, 6 May 2008 11:13:58 +0000 (12:13 +0100)]
merge from in qemu upstream: "Attempt to fix incorrect colours on some BGR displays"; slightly better determination of ds->bgr

16 years agomerge from in qemu upstream: start a possibly-paused VM on SDL_QUIT
Ian Jackson [Tue, 6 May 2008 11:09:27 +0000 (12:09 +0100)]
merge from in qemu upstream: start a possibly-paused VM on SDL_QUIT

16 years agomerge from in qemu upstream: break mistakenly concatenated lines near SDLK_DELETE
Ian Jackson [Tue, 6 May 2008 11:08:47 +0000 (12:08 +0100)]
merge from in qemu upstream: break mistakenly concatenated lines near SDLK_DELETE

16 years agomerge from in qemu upstream: show right cursor when ungrabbing, by clearing gui_grab...
Ian Jackson [Tue, 6 May 2008 11:07:44 +0000 (12:07 +0100)]
merge from in qemu upstream: show right cursor when ungrabbing, by clearing gui_grab before calling sdl_show_cursor

16 years agomerge from in qemu upstream: do not obey sdl_{show,hide}_cursor if !cursor_hide aka...
Ian Jackson [Tue, 6 May 2008 11:06:46 +0000 (12:06 +0100)]
merge from in qemu upstream: do not obey sdl_{show,hide}_cursor if !cursor_hide aka QEMU_OPTION_show_cursor

16 years agomerge from in qemu upstream: support alt_grab
Ian Jackson [Tue, 6 May 2008 11:05:18 +0000 (12:05 +0100)]
merge from in qemu upstream: support alt_grab

16 years agomerge from in qemu upstream: support no_frame aka gui_noframe
Ian Jackson [Tue, 6 May 2008 11:00:37 +0000 (12:00 +0100)]
merge from in qemu upstream: support no_frame aka gui_noframe

16 years agomerge from in qemu upstream: revised header organisation
Ian Jackson [Tue, 6 May 2008 10:58:07 +0000 (11:58 +0100)]
merge from in qemu upstream: revised header organisation

16 years agoCopy across sdl* from xen-unstable 17318:b5fea3aeb04b; not yet edited to merge
Ian Jackson [Tue, 6 May 2008 10:56:54 +0000 (11:56 +0100)]
Copy across sdl* from xen-unstable 17318:b5fea3aeb04b; not yet edited to merge

16 years agovga_hw_update in vnc_listen_read as in qemu upstream
Ian Jackson [Thu, 1 May 2008 13:29:01 +0000 (14:29 +0100)]
vga_hw_update in vnc_listen_read as in qemu upstream

16 years agotrack capslock state as in qemu upstream
Ian Jackson [Thu, 1 May 2008 13:12:19 +0000 (14:12 +0100)]
track capslock state as in qemu upstream

16 years agoabolish vnc_dpy_refresh as in qemu upstream
Ian Jackson [Thu, 1 May 2008 13:07:19 +0000 (14:07 +0100)]
abolish vnc_dpy_refresh as in qemu upstream

16 years agoCopy across vnc* from xen-unstable 17318:b5fea3aeb04b; not yet edited to merge
Ian Jackson [Thu, 1 May 2008 09:59:32 +0000 (10:59 +0100)]
Copy across vnc* from xen-unstable 17318:b5fea3aeb04b; not yet edited to merge

16 years agoimprove DMA transfers by increasing the size of DMA buffers.
Ian Jackson [Fri, 28 Mar 2008 16:20:45 +0000 (16:20 +0000)]
improve DMA transfers by increasing the size of DMA buffers.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Cross-ported from xen-unstable f4a92f0db20fda98a633c149e3396c005a759a77

16 years agoSet subsystem vendor/device for ne2k device model.
Kamala Narasimhan [Fri, 28 Mar 2008 16:11:11 +0000 (16:11 +0000)]
Set subsystem vendor/device for ne2k device model.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Cross-ported from xen-unstable changeset
 8cc1ed987d5f726c4a57325b03e71f4b18b52525

16 years agoUse ioemu block drivers through blktap; import other Xen-specific files.
Ian Jackson [Fri, 28 Mar 2008 16:10:30 +0000 (16:10 +0000)]
Use ioemu block drivers through blktap; import other Xen-specific files.

Add support for a tap:ioemu pseudo driver. Devices using this driver
won't use tapdisk (containing the code duplication) any more, but will
connect to the qemu-dm of the domain. In this way no working
configuration should be broken right now as you can still choose to
use the tapdisk drivers.

Signed-off-by: Kevin Wolf <kwolf@suse.de>
Also, import and update various Xen-specific files from xen-unstable
tip 17307:b667e220e556.

16 years agoFix L1 table endianess of qcow images created by tapdisk
Ian Jackson [Fri, 28 Mar 2008 14:47:12 +0000 (14:47 +0000)]
Fix L1 table endianess of qcow images created by tapdisk

The qemu/ioemu implementation of the qcow format uses a big endian L1
table. tapdisk omits the necessary conversion, so qcow images have the
wrong endianess and cannot be read by correct implementations of qcow.

This patch detects broken tapdisk images and converts their L1 tables
to big endian when the image file is opened in ioemu for the first
time. The fixed image has a new flag EXTHDR_L1_BIG_ENDIAN set in the
extended header.

Note that a converted image cannot be opened by tapdisk again.

Signed-off-by: Kevin Wolf <kwolf@suse.de>
 Patch cross-ported to qemu xen from hg commit
  c02deeae743221cbe9a1ac9769d21c292e267601

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
16 years agoMake DMA buffers depend on stubdom max request size.
Ian Jackson [Wed, 26 Mar 2008 16:39:34 +0000 (16:39 +0000)]
Make DMA buffers depend on stubdom max request size.

This is the second half of hg changeset
 f4a92f0db20fda98a633c149e3396c005a759a77
the first half of which is in git changeset
 4eaa19458262cce92f0b891c51433ccee0a19b79

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
16 years agoWIP merge with xen-unstable
Ian Jackson [Wed, 19 Mar 2008 17:08:21 +0000 (17:08 +0000)]
WIP merge with xen-unstable

Includes new i8259.c, more or less completely merged pc.c, acpi
adjustments, and various build system fixes.

16 years agoRemove most uses of phys_ram_base in hw/pc.c
Ian Jackson [Mon, 17 Mar 2008 15:48:42 +0000 (15:48 +0000)]
Remove most uses of phys_ram_base in hw/pc.c

In this patch, I remove all the direct uses of phys_ram_base
from hw/pc.c, except for those presently needed to construct the
arguments to the vga init functions.

This involved:
 * Getting rid of various additions and subtractions of phys_ram_base
 * Changing the types of the guest physical addresses in load_linux
   from uint8_t* to target_phys_addr_t
 * Replacing calls to memcpy and pstrcpy with
   cpu_physical_memory_write (and a new pstrcpy_targphys function)
 * Replacing most calls to fread with a new fread_targphys function
 * Deprecating load_image in favour of a new load_image_targphys
 * Removing (rather than fixing up) the unused function load_kernel

I noticed that load_image doesn't take a buffer size argument - it
just overwrites the destination buffer with file data, extending as
long as the file happens to be.  In most cases this is probably not an
exploitable vulnerability, but it seems poor practice.  Hence
load_image_targphys's extra argument.

16 years agoAdd another file from xen-unstable 17192:59b8768d0d0d
Ian Jackson [Thu, 13 Mar 2008 18:07:37 +0000 (18:07 +0000)]
Add another file from xen-unstable 17192:59b8768d0d0d

16 years agomerge different piix_pci versions; get rid of special Xen file
Ian Jackson [Thu, 13 Mar 2008 17:51:59 +0000 (17:51 +0000)]
merge different piix_pci versions; get rid of special Xen file

16 years agoBetter organisation of Makefile.target faff
Ian Jackson [Wed, 12 Mar 2008 12:03:58 +0000 (12:03 +0000)]
Better organisation of Makefile.target faff

16 years agoMake vl.c compile. Still very WIP
Ian Jackson [Tue, 11 Mar 2008 18:01:25 +0000 (18:01 +0000)]
Make vl.c compile. Still very WIP

16 years agoMore files imported from xen-unstable 17192:59b8768d0d0d
Ian Jackson [Tue, 11 Mar 2008 18:00:54 +0000 (18:00 +0000)]
More files imported from xen-unstable 17192:59b8768d0d0d

16 years agoWIP make xen compile
Ian Jackson [Fri, 7 Mar 2008 16:31:16 +0000 (16:31 +0000)]
WIP make xen compile

16 years agowip xen landing from xen-unstable 17192:59b8768d0d0d
Ian Jackson [Wed, 5 Mar 2008 18:10:39 +0000 (18:10 +0000)]
wip xen landing from xen-unstable 17192:59b8768d0d0d

16 years agoDo not duplicate prefix on SCSI write flush failures.
Ian Jackson [Wed, 2 Apr 2008 16:28:22 +0000 (17:28 +0100)]
Do not duplicate prefix on SCSI write flush failures.

BADF adds scsi-disk so we should not add scsi-disc.

16 years agoide write_cache disablement implemented using bdrv_aio_flush
Ian Jackson [Wed, 2 Apr 2008 16:23:13 +0000 (17:23 +0100)]
ide write_cache disablement implemented using bdrv_aio_flush

Previously our implementation of the cache flush for ide disks with
write_cache disabled was synchronous.  This is less than ideal.

16 years agoadvertise write cache enabled when it is
Ian Jackson [Wed, 2 Apr 2008 15:28:10 +0000 (16:28 +0100)]
advertise write cache enabled when it is

Advertise device status word 85 bit 5 (write cache enabled) only when
it is.  Adapted from a related patch for xen-unstable from Samuel
Thibault.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
16 years agoSCSI FLUSH CACHE: make asynchronous and handle errors
Ian Jackson [Tue, 1 Apr 2008 17:12:56 +0000 (18:12 +0100)]
SCSI FLUSH CACHE: make asynchronous and handle errors

16 years agoMove raw_aio_flush to where it gets compiled.
Ian Jackson [Tue, 1 Apr 2008 17:11:58 +0000 (18:11 +0100)]
Move raw_aio_flush to where it gets compiled.

16 years agoide write_cache saving compile fixes
Ian Jackson [Tue, 1 Apr 2008 17:03:37 +0000 (18:03 +0100)]
ide write_cache saving compile fixes

The qemu branch of this code has slightly different saving arrangments
to xen-unstable so we have to do things this way to make it compile.

16 years agoPerform emulated IDE flushes asynchronously.
Ian Jackson [Fri, 28 Mar 2008 16:54:09 +0000 (16:54 +0000)]
Perform emulated IDE flushes asynchronously.

We arrange for the WIN_FLUSH_CACHE and WIN_FLUSH_CACHE_EXT
commands to use a new bdrv_aio_flush facility.

If there is an error, the ATA-7 spec says that we are supposed to know
which is the first block whose flush failed and leave that in the
block offset registers.  However since we are using f(data)sync that's
not possible for us.  There is sadly no way for us to report the error
which won't encourage the guest to try to understand what went wrong
and then do the flush again expecting the remaining blocks to be
written (as specified by ATA-7).

So if the asynchronous flush fails, we kill the disk by detaching
->bs.  This makes it vanish: we don't generate any more interrupts,
leave status set to busy, and ignore future commands (and discard any
in-flight IO).  Alan Cox reports that this will probably induce the
best available behaviour in guests (retry for a while and then give
up).  Fine-grained error reporting is available if the guest turns off
the write cache.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Modified-by: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
16 years agoMove WIN_SETFEATURES 0x02 and 0x82 write_cache manipulation to correct place
Ian Jackson [Fri, 28 Mar 2008 09:36:36 +0000 (09:36 +0000)]
Move WIN_SETFEATURES 0x02 and 0x82 write_cache manipulation to correct place

Thanks to Paul Brook for spotting the problem, which was introduced by
me when I merged these changes from xen-unstable.

16 years agomake write cacheing controllable by guest
Ian Jackson [Thu, 27 Mar 2008 17:58:45 +0000 (17:58 +0000)]
make write cacheing controllable by guest

This patch implements the ATA write cache feature.  This enables a
guest to control, in the standard way, whether disk writes are
immediately committed to disk before the IDE command completes, or may
be buffered in the host.

In this patch, by default buffering is off, which provides better
reliability but may have a performance impact.  It would be
straightforward to change the default, or perhaps offer a command-line
option, if that would be preferred.

This patch is derived from one which was originally submitted to the
Xen tree by Rik van Riel <riel@redhat.com> and includes code to save
the write_cache setting from Samuel Thibault.

From: Rik van Riel <riel@redhat.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
16 years agoImprove DMA transfers by increasing the size of DMA buffers.
Ian Jackson [Wed, 26 Mar 2008 16:09:35 +0000 (16:09 +0000)]
Improve DMA transfers by increasing the size of DMA buffers.

This involves a new constant IDE_DMA_BUF_SIZE which is separate from
MAX_MULT_SECTORS.

Cross-ported from xen-unstable
 17267:f4a92f0db20fda98a633c149e3396c005a759a77

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
16 years agoAdd .gitignore, copied mainly from .cvsignore
Ian Jackson [Mon, 25 Feb 2008 11:21:16 +0000 (11:21 +0000)]
Add .gitignore, copied mainly from .cvsignore

16 years agoUse new CTYPE macro for <ctype.h>
Ian Jackson [Wed, 20 Feb 2008 16:30:05 +0000 (16:30 +0000)]
Use new CTYPE macro for <ctype.h>

This avoids passing a negative int to isfoobar,
which is not allowed

16 years agomake bdrv_flush pay attention to errors
Ian Jackson [Wed, 20 Feb 2008 15:54:23 +0000 (15:54 +0000)]
make bdrv_flush pay attention to errors

16 years agoActually check read/write errors when doing IDE DMA and IDE PIO writes
Ian Jackson [Wed, 20 Feb 2008 15:24:14 +0000 (15:24 +0000)]
Actually check read/write errors when doing IDE DMA and IDE PIO writes

16 years agoFix some more LIST_ => QEMU_LIST_...
Ian Jackson [Fri, 15 Feb 2008 14:32:40 +0000 (14:32 +0000)]
Fix some more LIST_ => QEMU_LIST_...

16 years agocheck return value from read() and write() properly
Ian Jackson [Wed, 13 Feb 2008 16:24:30 +0000 (16:24 +0000)]
check return value from read() and write() properly

The system calls read and write may return less than the whole amount
requested for a number of reasons.  So the idioms
   if (read(fd, &object, sizeof(object)) != sizeof(object)) goto fail;
and even worse
   if (read(fd, &object, sizeof(object)) < 0) goto fail;
are wrong.  Additionally, read and write may sometimes return EINTR on
some systems so interruption is not desired or expected a loop is
needed.

16 years agoRemove clone-and-hack qemu_malloc et al.
Ian Jackson [Wed, 13 Feb 2008 16:20:09 +0000 (16:20 +0000)]
Remove clone-and-hack qemu_malloc et al.

qemu-img.c has copies of qemu_malloc et al, which are already provided
in osdep.c.  The attached patch removes these from qemu-img.c and
adds osdep.o to BLOCK_OBJS.

16 years agoMake it possible to disable AF_UNIX (unix-domain) sockets
Ian Jackson [Wed, 13 Feb 2008 16:18:49 +0000 (16:18 +0000)]
Make it possible to disable AF_UNIX (unix-domain) sockets

The patch below makes it possible to disable AF_UNIX (unix-domain)
sockets in host environments which do not define _WIN32, by adding
-DNO_UNIX_SOCKETS to the compiler flags.  This is useful in the
effectively-embedded qemu host which are going to be using for device
emulation in Xen.

16 years agoqemu's audio subdirectory contains a copy of BSD's sys-queue.h, which
Ian Jackson [Wed, 13 Feb 2008 16:17:54 +0000 (16:17 +0000)]
qemu's audio subdirectory contains a copy of BSD's sys-queue.h, which

defines a bunch of LIST_ macros.  This makes it difficult to build a
program made partly out of qemu and partly out of the Linux kernel,
since Linux has a different set of LIST_ macros.  It might also cause
trouble when mixing with BSD-derived code.

Under the circumstances it's probably best to rename the versions in
qemu.  The attached patch does this.

16 years agoCRIS: Remove some old dyngen T0/T1 fiddle. More usage of the results from the x flag...
edgar_igl [Mon, 12 May 2008 07:57:23 +0000 (07:57 +0000)]
CRIS: Remove some old dyngen T0/T1 fiddle. More usage of the results from the x flag liveness analysis.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4433 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoDebugger single step without interrupts (Jason Wessel).
edgar_igl [Mon, 12 May 2008 07:44:23 +0000 (07:44 +0000)]
Debugger single step without interrupts (Jason Wessel).

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4432 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoRemove someexplicit alignment checks (initial patch by Fabrice Bellard)
blueswir1 [Sun, 11 May 2008 19:24:10 +0000 (19:24 +0000)]
Remove someexplicit alignment checks (initial patch by Fabrice Bellard)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4431 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoUpdate the etrax machine.
edgar_igl [Sun, 11 May 2008 15:07:19 +0000 (15:07 +0000)]
Update the etrax machine.
* Use CFI-0002 flashes.
* Connect one of the ethernet blocks.
* Simplified irq numbering.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4430 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoAdd limited support for the etrax ethernet controller.
edgar_igl [Sun, 11 May 2008 15:04:22 +0000 (15:04 +0000)]
Add limited support for the etrax ethernet controller.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4429 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoAdd support for parts of the etraxfs dma controller.
edgar_igl [Sun, 11 May 2008 15:03:06 +0000 (15:03 +0000)]
Add support for parts of the etraxfs dma controller.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4428 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoCorrect interrupt masking for etrax timers.
edgar_igl [Sun, 11 May 2008 14:58:19 +0000 (14:58 +0000)]
Correct interrupt masking for etrax timers.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4427 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoAdd TCG native negation op.
pbrook [Sun, 11 May 2008 14:35:37 +0000 (14:35 +0000)]
Add TCG native negation op.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4426 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoCRIS: Add support for the pseudo randomized set that the mmu provides with TLB refill...
edgar_igl [Sun, 11 May 2008 14:28:14 +0000 (14:28 +0000)]
CRIS: Add support for the pseudo randomized set that the mmu provides with TLB refill faults. This makes linux guests use the four way TLB set associativty.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4425 c046a42c-6fe2-441c-8c8c-71466251a162