summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* a single vnc timer to refresh the screenStefano Stabellini2009-08-102-20/+42
| | | | | | | | | | This patch removes the timer per vnc client connected and adds a single timer to update all the possible clients. We call vga_hw_update only once in the timer handler. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* Fix checksum writing in signboot.shAlexander Graf2009-08-101-1/+2
| | | | | | | | | | | | | | | | | | The printf command takes an octal value after \, so we have to convert our decimal representation to octal first and then write it. This unbreaks extboot signing. Multiboot wasn't affected yet because the checksum was < 8. Spotted and first patch by Glauber Costa <glommer@redhat.com>. Printf idea by Paolo Bonzini <bonzini@gnu.org>. Signed-off-by: Alexander Graf <agraf@suse.de> CC: Glauber Costa <glommer@redhat.com> CC: Paolo Bonzini <bonzini@gnu.org> CC: Jan Ondrej <ondrejj@salstar.sk> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* Add new block driver for the VDI format (only aio supported)Stefan Weil2009-08-103-1/+954
| | | | | | | | | | | | | | | | | | | | This is a new block driver written from scratch to support the VDI format in QEMU. VDI is the native format used by Innotek / SUN VirtualBox. Latest changes: * stripped down version (code for synchronous operations and experimental code removed) * don't open VDI snapshot images (with uuid_link or uuid_parent) * modified vdi_aio_cancel Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* Win32: Fix default prefixStefan Weil2009-08-101-1/+1
| | | | | | | | | | | | | | | | | | | | The old code resulted in wrong escape sequences: #define CONFIG_QEMU_SHAREDIR "c:\Program Files\Qemu" gcc warnings: vl.c:5708:20: warning: unknown escape sequence '\P' vl.c:5708:20: warning: unknown escape sequence '\Q' Windows can handle slash (/) path separators, and QEMU already adds directories using slash, so there is no need to fight with the correct number of backslashes. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* qdev/isa: convert fdc.Gerd Hoffmann2009-08-101-41/+76
| | | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* qdev/isa: make pc use qdev for i8042 setup.Gerd Hoffmann2009-08-101-1/+4
| | | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* qdev/isa: make the piix isa bridge register an isa bus.Gerd Hoffmann2009-08-101-0/+2
| | | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* qdev/isa: add qdev support to i8042 (aka ps/2 kbd+mouse).Gerd Hoffmann2009-08-101-0/+40
| | | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* qdev/isa: add isa bus support to qdev.Gerd Hoffmann2009-08-103-5/+132
| | | | | | | | | Pretty simple and straigt forward. IRQs modeled simliar to sysbus. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* qdev-ify virtio-blk.Gerd Hoffmann2009-08-108-44/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First user of the new drive property. With this patch applied host and guest config can be specified separately, like this: -drive if=none,id=disk1,file=/path/to/disk.img -device virtio-blk-pci,drive=disk1 You can set any property for virtio-blk-pci now. You can set the pci address via addr=. You can switch the device into 0.10 compat mode using class=0x0180. As this is per device you can have one 0.10 and one 0.11 virtio block device in a single virtual machine. Old syntax continues to work. Internally it does the same as the two lines above though. One side effect this has is a different initialization order, which might result in a different pci address being assigned by default. Long term plan here is to have this working for all block devices, i.e. once all scsi is properly qdev-ified you will be able to do something like this: -drive if=none,id=sda,file=/path/to/disk.img -device lsi,id=lsi,addr=<pciaddr> -device scsi-disk,drive=sda,bus=lsi.0,lun=<n> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* qdev/prop: add drive property.Gerd Hoffmann2009-08-102-0/+36
| | | | | | | | | Adds a (host) drive property, intended to be used by virtual disk backend drivers. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* add -drive if=noneGerd Hoffmann2009-08-102-0/+5
| | | | | | | | | | This adds a host drive, but doesn't implicitly add a guest drive for it. First step in splitting host and guest configuration, check the following patches to see how this can be used ... Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* constify drive_get_by_id argGerd Hoffmann2009-08-102-2/+2
| | | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* QemuOpts: switch over -device.Gerd Hoffmann2009-08-105-56/+73
| | | | | | | | | | | Make -device switch use the QemuOpts framework. Everything should continue to work like it did before. New: "-set device.$id.$property=$value" works. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* QemuOpts: add -set optionGerd Hoffmann2009-08-104-1/+52
| | | | | | | | | | | | | | One use case will be file for drives (no filename quoting issues), i.e. -drive id=test,if=virtio -set drive.test.file=/vmdisk/test-virtio.img It will work for any other option (assuming handled by QemuOpts) though. Except for id= for obvious reasons ;). Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* QemuOpts: create qemu-config.hGerd Hoffmann2009-08-104-73/+79
| | | | | | | | | Move drive option description there. Rename it, give it a qemu_ prefix. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* QemuOpts: make the drive id actually show up in "info block".Gerd Hoffmann2009-08-101-1/+1
| | | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* QemuOpts: qemu_opts_parse: fix id= parsingGerd Hoffmann2009-08-101-1/+6
| | | | | | | | | | | | We can't use get_param_value(), it can't handle parameters without '=' in there. Examples not working because of that: -device foo,id=bar -device file=/path/image,format=qcow2,snapshot,id=disk0 Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* QemuOpts: add some functionsGerd Hoffmann2009-08-102-0/+23
| | | | | | | | | qemu_opt_foreach: loop over all QemuOpts entries. qemu_opts_id: return QemuOpts id. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* Fix symfind.Laurent Desnogues2009-08-102-2/+2
| | | | | | | | | | | | | | | | | | | | | this patch fixes an issue in symfind. Assume you have the following symbols: Address Size 0045bca0 00000080 T s0 0045bd20 00000112 T s1 You'll notice that s1 is s0 + size. So the current symfind will find that address 0045bd20 belongs to s0 instead of s1. Laurent Signed-off-by: Laurent Desnogues <laurent.desnogues@gmail.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* configure: let it find xen headers and libsChristoph Egger2009-08-101-1/+1
| | | | | | | | | Attached patch lets configure find xen headers and libs with --extra-cflags and --extra-ldlfags option. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* tolower -> qemu_tolowerChristoph Egger2009-08-101-1/+1
| | | | | | | | | Use qemu_tolower() instead of tolower(). Fixes warning on NetBSD. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* Do not try to invoke shebang scripts directly (NFS issues)malc2009-08-102-3/+3
| | | | Signed-off-by: malc <av1474@comtv.ru>
* Use qemu_irq for system_powerdownBlue Swirl2009-08-095-34/+23
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Sparc32: use qemu_irq for system_powerdownBlue Swirl2009-08-093-22/+19
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Sparc32: move sparc32_dma init to sun4m.cBlue Swirl2009-08-084-42/+42
| | | | | | Also connect ESP and Lance reset signals to DMA. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Sparc32: remove VRAM and NVRAM sizes from hwdefBlue Swirl2009-08-081-36/+6
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Sparc32: remove IRQ numbers from hwdefBlue Swirl2009-08-081-135/+25
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Sparc32: move intbit_to_level table back to slavio_intctl.cBlue Swirl2009-08-082-50/+8
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Sparc32: move device instantiation to sun4m.cBlue Swirl2009-08-0810-245/+217
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Sparc32: Refactor slavio timerBlue Swirl2009-08-081-181/+209
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* ppc_newworld: configure screen size from QEMU command line optionsBlue Swirl2009-08-081-0/+5
| | | | | | | Use the FW_CFG interface to send user requested screen size and depth to OpenBIOS like 7f1aec5f93382eef75920899f4065613aeaf02a2 for ppc_oldworld. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Sparc64: configure screen size from QEMU command line optionsBlue Swirl2009-08-081-0/+8
| | | | | | | Use the FW_CFG interface to send user requested screen size and depth to OpenBIOS like 7f1aec5f93382eef75920899f4065613aeaf02a2 for ppc_oldworld. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* ppc_oldworld: configure screen size from qemu command line optionsLaurent Vivier2009-08-082-0/+8
| | | | | | | | This patch uses the FW_CFG interface to send user requested screen size and depth to openbios. Signed-off-by: Laurent Vivier <laurent@vivier.eu> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Sparc64: replace tsptr with helper routineIgor Kovalenko2009-08-046-40/+69
| | | | | | | | | | | | | | | | | | | tl and tsptr of members sparc64 cpu state must be changed simultaneously to keep trap state window in sync with current trap level. Currently translation of store to tl does not change tsptr, which leads to corrupt trap state on corresponding trap level. This patch removes tsptr from sparc64 cpu state and replaces all uses with call to helper routine. Changes v0->v1: - reimplemented helper routine with tcg generator - on cpu reset trap type and pstate are populated with power-on reset values, including tl=maxtl Signed-off-by: igor.v.kovalenko@gmail.com Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* linux-user: make FUTEX_* calls honor timeout parameterNathan Froyd2009-08-031-8/+16
| | | | | Signed-off-by: Nathan Froyd <froydnj@codesourcery.com> Signed-off-by: malc <av1474@comtv.ru>
* enable NPTL for ppc-linux-user targets in configureNathan Froyd2009-08-031-0/+2
| | | | | | | Enabling support for ppc64-linux-user should be easy enough to do later. Signed-off-by: Nathan Froyd <froydnj@codesourcery.com> Signed-off-by: malc <av1474@comtv.ru>
* linux-user: handle POWERPC_EXCP_STCXNathan Froyd2009-08-031-0/+68
| | | | | | | | We handle conditional stores as an exception so we can ensure that no other thread is changing memory out from underneath us. Signed-off-by: Nathan Froyd <froydnj@codesourcery.com> Signed-off-by: malc <av1474@comtv.ru>
* target-ppc: add exceptions for conditional storesNathan Froyd2009-08-032-20/+56
| | | | | Signed-off-by: Nathan Froyd <froydnj@codesourcery.com> Signed-off-by: malc <av1474@comtv.ru>
* target-ppc: retain l{w,d}arx loaded valueNathan Froyd2009-08-035-10/+17
| | | | | | | | | We do this so we can check on the corresponding stc{w,d}x. whether the value has changed. It's a poor man's form of implementing atomic operations and is valid only for NPTL usermode Linux emulation. Signed-off-by: Nathan Froyd <froydnj@codesourcery.com> Signed-off-by: malc <av1474@comtv.ru>
* target-ppc: add cpu_set_tlsNathan Froyd2009-08-031-0/+11
| | | | | Signed-off-by: Nathan Froyd <froydnj@codesourcery.com> Signed-off-by: malc <av1474@comtv.ru>
* target-ppc: fix cpu_clone_regsNathan Froyd2009-08-031-3/+1
| | | | | | | | We only need to make sure that the clone syscall looks like it succeeded, not clobber 60% of the register set. Signed-off-by: Nathan Froyd <froydnj@codesourcery.com> Signed-off-by: malc <av1474@comtv.ru>
* Fix Sparse warning about missing prototypeBlue Swirl2009-08-012-2/+3
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix Sparse warning about "expression using sizeof on a function"Blue Swirl2009-08-011-3/+3
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Add missing "static"Blue Swirl2009-08-011-1/+1
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* More NULL pointer fixesBlue Swirl2009-08-017-11/+13
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix Sparse warnings: "Using plain integer as NULL pointer"Blue Swirl2009-07-3120-58/+59
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* PPC: convert Uni-north to qdev: also fixes Mac99 machine crashBlue Swirl2009-07-311-55/+166
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* PPC: convert Grackle to qdevBlue Swirl2009-07-311-20/+86
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Option rom makefile fixesPaul Brook2009-07-313-9/+13
| | | | | | Fix toplevel option rom makefile rules. Signed-off-by: Paul Brook <paul@codesourcery.com>
OpenPOWER on IntegriCloud