summaryrefslogtreecommitdiff
path: root/pc-bios
AgeCommit message (Collapse)AuthorFilesLines
2010-08-05Merge remote branch 'kraxel/spice.v14' into spice.kvm.v14spice.kvm.v14.spicevmcGerd Hoffmann6-0/+0
Conflicts: Makefile.target configure hw/pc.c monitor.c pc-bios/vgabios-cirrus.bin pc-bios/vgabios.bin
2010-08-04vgabios update to 0.6c + pcibios patches.Gerd Hoffmann6-0/+0
2010-07-13Merge commit 'b7fdb3ab0e22a9a8debcb928497b248f06778845' into upstream-mergeMarcelo Tosatti5-1/+1
* commit 'b7fdb3ab0e22a9a8debcb928497b248f06778845': (23 commits) qemu-options: add documentation for stdio signal=on|off Update OpenBIOS images target-ppc: add vexptefp instruction softfloat: add float32_exp2() Update SeaBIOS pci/multi function bit: fix vt82c686.c. target-sh4: Add support for ldc & stc with sgr target-sh4: Split the LDST macro into 2 sub-macros pci: fix bridge update virtio-net: correct packet length math pci hotplug: make pci hotplug return value to caller vmware_vga: fix reset value for command register rtl8139: address TODOs pci hotplug: make pci_device_hot_remove() static pcnet: address TODOs pci: fix pci_device_reset AppleSMC device emulation Documentation: Fix spelling bugs Makefile: Not every shell support {} Makefile: add fsdev/*.{o,d} to clean ... Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2010-07-13Update OpenBIOS imagesAurelien Jarno4-1/+1
Update PPC, Sparc32 and Sparc64 OpenBIOS images to r821. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2010-07-13Update SeaBIOSAnthony Liguori1-0/+0
- 17d3e46 smbios: Allow all fields to be set via qemu_cfg_smbios_load_field() - 0d6b8d5 seabios: pciinit: use pci device initializer helper function. - 968d3a8 seabios: pci: introduce helper function to initialize a given device. - 4e0daae virtio: Clear interrupt status register in virtio-blk - af0963d seabios: pciinit: initialize pci bridge filtering registers. - f441666 seabios: pciinit: pci bridge bus initialization. - 5d0de15 seabios: pciinit: make bar offset calculation pci bridge aware. - a65821d seabios: pciinit: factor out bar offset calculation. - 0a8eada seabios: pciinit: make pci bar assigner preferchable memory aware. - dfd94fa seabios: pciinit: make pci memory space assignment 64bit aware. - b9e4721 seabios: pciinit: factor out pci bar region allocation logic. - edd9911 seabios: pci: introduce foreachpci_in_bus() helper macro. - f79a462 Add romfile_size() wrapper for accessing cbfs/qemu_cfg files. - afbed1b Initial bootsplash support. - 83d6ed6 Update TODO - 1d7d893 Fix bvprintf() to respect padding for hex printing. - e230426 Unify optionrom cbfs/qemu_cfg rom pulling code. - 8cb8ba5 SeaBIOS VGA hooks - 203f6f3 SeaBIOS CD/DVD abbreviations - 12cbb43 seabios: remove iasl output file when error. - d5d02b6 Allocate cdemu buffer in low mem instead of ebda. - 8f59aa3 Introduce memcpy_fl - a memcpy on "flat" pointers. - 42a1d4c Rework malloc to use a "first fit" algorithm. - 34e9cc5 Minor mptable changes. - 0f3783b virtio: clean up memory barrier usage - bfe4d60 virtio: remove NO_NOTIFY optimization - bb68591 Don't use RTC to time boot menu delay. - b5cc2ca Generalize timer based delay code. - 144817b Rename check_time() to check_tsc(). - 9c447c3 Allow wait_irq to be called in 32bit code. - 49cc72b Improve optionrom debugging statements. - c65a4a6 Minor - compile out usb-msc code if CONFIG_USB_MSC not set. - 456479e Minor ata cleanups. - 2515a72 Make sure virtio-blk is fully compiled out if not wanted. - c4fe135 Minor - split up virtio_blk_setup(). - 4030db0 fix two issues with virtio-blk - ea8ac63 Minor improvements to virtio (allow irqs, allocate page aligned). Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2010-06-21Merge commit 'cada87c432e3b9cd55869a24055baf2b7bc0b70c' into upstream-mergeAvi Kivity4-1/+1
* commit 'cada87c432e3b9cd55869a24055baf2b7bc0b70c': Update OpenBIOS images Signed-off-by: Avi Kivity <avi@redhat.com>
2010-06-20Update OpenBIOS imagesBlue Swirl4-1/+1
Update PPC, Sparc32 and Sparc64 OpenBIOS images to R795. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2010-06-09Merge remote branch 'upstream' into nextAvi Kivity2-12/+28
* upstream: Fix multiboot compilation tcg: Make some tcg-target.c routines static. tcg: Add TYPE parameter to tcg_out_mov. target-mips: break out [ls][wd]c1 and rdhwr insn generation Fix --enable-user-pie compilation. microblaze: Make MSR_UM and MSR_VM part of the tb flags petlogix-3adsp: Tweak displacement of cmdline and fdt blob. migration-exec: fix OpenBSD build warning target-i386: fix decoding of negative 4-byte displacements Signed-off-by: Avi Kivity <avi@redhat.com>
2010-06-09Fix multiboot compilationAlexander Graf2-12/+28
Commit dd4239d6574ca41c94fc0d0f77ddc728510ffc57 broke multiboot. It replaced the instruction "rep insb (%dx), %es:(%edi)" by the binary output of "addr32 rep insb (%dx), %es:(%di)". Linuxboot calls the respective helper function in a code16 section. So the original instruction was automatically translated to its "addr32" equivalent. For multiboot, we're running in code32 so gcc didn't add the "addr32" which breaks the instruction. This patch splits that helper function in one which uses addr32 and one which does not, so everyone's happy. The good news is that nobody probably cared so far. The bundled multiboot.bin binary was built before the change and is thus correct. Please also put this patch into -stable. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2010-05-26Merge commit 'fe270d044d512a308fb1fdf02cb11db46df29cdb' into upstream-mergeAvi Kivity2-0/+4
* commit 'fe270d044d512a308fb1fdf02cb11db46df29cdb': target-s390: add firmware code PPC/KVM: make iothread work fix chardev_init for win32 qemu-sockets: avoid strlen of NULL pointer linux-user: rlimit conversion between host and target. Conflicts: Makefile Signed-off-by: Avi Kivity <avi@redhat.com>
2010-05-18target-s390: add firmware codeAlexander Graf2-0/+4
This patch adds a firmware blob to the S390 target. The blob is a simple implementation of a virtio client that tries to read the second stage bootloader from sectors described as of offset 0x20 in the MBR. In combination with an updated zipl this allows for booting from virtio block devices. This firmware is built from the same sources as the second stage bootloader. You can find a virtio capable s390-tools in this repo: git://repo.or.cz/s390-tools.git Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2010-05-16Merge commit 'fc0bdd995ca36a34cc576ee706df239dd5ff79a9' into upstream-mergeAvi Kivity5-3/+2
* commit 'fc0bdd995ca36a34cc576ee706df239dd5ff79a9': acpi: split out piix4 smbus routines from acpi.c into pm_smbus.c mc146818rtc: Register vmstate via qdev fdc: Register vmstate via qdev serial: Register vmstate via qdev vmstate: Add support for alias ID vmstate: Drop unused post_save handler sh: sm501: add 2D engine support tmp105: update the register in post_load where it needs updating. cpus: add one 'const' e1000: make some tables 'const' ide: make a table 'const' vga: make some tables 'const' Compile virtio-9p-debug and virtio-9p-local once Update SeaBIOS pckbd: don't use any static state apb: don't use any static state target-sparc: Fix wrong printf argument Update OpenBIOS images to r771 kvm: fix 80000001.EDX supported bit filtering Conflicts: Makefile.target Signed-off-by: Avi Kivity <avi@redhat.com>
2010-05-14Update SeaBIOSAnthony Liguori1-0/+0
- 7d09d0e Fix virtio compile errors on various gcc versions. - 89acfa3 Support for booting from virtio disks - 6d66316 smbios: avoid counting io hole as ram - e5cd945 Fix error causing USB HID "boot" protocol to not be enabled. - 0e88576 Add support for USB mice. - dd5a8a6 When USB keyboard active, don't send keyboard commands to ps2 port. - 5718d56 Document usb-hid.c functions. - e438b0c Further parallelize init when using CONFIG_THREAD_OPTIONROMS. - f59b5ac Handle unknown function addresses in tools/checkstack.py. - 9ba1dea Simplify build by manually resolving external symbols in layoutrom.py. - 698d3f9 USB EHCI should yield() whil waiting for controller to ack reset. - f9a774c Add __attribute__((__malloc__)) declaration to internal malloc funcs. - b7045ce Minor - remove redundant check from ata_try_dma. - 67f6d37 Fix possible unitialized variable issue in usb msc. - a7eb8fc Some improvements to optionrom preemption support. - d28b0fe Refactor USB hub code. - ba28541 Prep version for next release. - 12bffd5 Update version to 0.6.0. - 87ab2fb Improve USB EHCI timing. - d705e5a Disable inlining on old compilers. - bca0736 Force use of indirect function calls in inline assembler. - d7eb27e Don't move EBDA while an optionrom is running (CONFIG_THREAD_OPTIONROMS). - 7415270 Call to int1552 (from int1346) should set regs->dl. - 9dc243e Adjust debug levels of device discovery. - d9c9361 Default CONFIG_COREBOOT_FLASH on; make depend on CONFIG_COREBOOT. - c35e1e5 Restore segment limits in handle_1589 code. - 11cc662 Extend time for rtc to be ready. - 4ed378a Backup and restore registers when calling out to user funcs. - 68c5139 Enable irqs in kbd/clock calls that caller might "spin" on. - f628244 Process event on ps2 keyboard irq even if event already read. - a5d8458 Revert "Unify ps2 port data processing." - b9ed5e2 Handle variable length return of ps2 port GETID command. - 67a9eec Prevent ps2 irqs from messing up ps2 init. - 6704cf9 Revert "Rework disabling of ps2 port irqs." - 808939c Fix smp cpu detect on gcc 4.5. - a979c1c Improvements to tools/checkstack.py. - 190cc62 Add USB EHCI controller support. - 0770d67 Some USB UHCI and OHCI fixes and cleanups. - bfe7ca7 Minor - USB OHCI interrupt queue should be one larger. - 09e2f7c Reduce size of USB 'struct uhci_td'. - 406fad6 Dynamically allocate USB controller structures. - 4547eb9 Replace USB encoded 'u32 endp' scheme with explicit struct fields. - 8ebcac0 Further parallelize USB init by launching a thread per usb port. - e908665 Introduce simple "mutex" locking code. - 3b79f8b Only compile usb-hub.c and paravirt.c with 32bit code. - 357bdfa Prefer passing a USB "pipe" structure over a USB endp encoding. - 7fb8ba8 Add a generic "internal error" warning function. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2010-05-12Update OpenBIOS images to r771Blue Swirl4-3/+2
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2010-04-06Merge commit '61d3cf93e2676282ba1a8d568b2406257f208b26' into upstream-mergeMarcelo Tosatti2-2/+3
* commit '61d3cf93e2676282ba1a8d568b2406257f208b26': (31 commits) OHCI qdev conversion Fix arm-linux-user ARMv7-M reset fixes tcg/mips: use seb/seh instructions on MIPS32R2 tcg/mips: fix 64-bit linux-user on big endian MIPS tcg/ppc: Implement eqv, nand and nor Split TLB addend and target_phys_addr_t UHCI spurious interrut fix Revert "Compile usb-ohci only once" tcg/ppc: Fix not_i32 Make cpu_get_real_ticks use mfspr sparc32: add IOMMU chipset doc links sparc32: rename iommu.c to sun4m_iommu.c to make room for other IOMMUs sparc32: improve timer implementation Fix build on mingw32 hw/r2d: add a USB keyboard usb-bus: fix no params Update PowerPC OpenBIOS image to r721 win32: Fix compiler errors from u_int64_t tcg/TODO: remove setcond ... Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2010-04-02Update PowerPC OpenBIOS image to r721Aurelien Jarno2-2/+3
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2010-03-08Merge commit '93d67ee69d6104976961fbc98654872de28a5c96' into upstream-mergeMarcelo Tosatti1-0/+0
* commit '93d67ee69d6104976961fbc98654872de28a5c96': (29 commits) Fix hanging user monitor when using balloon command sdl: improve grab exiting instructions ppc: don't define bamboo-0.13 as the default machine Update to a hopefully more future proof FSF address i386-dis: remove dead assignments, spotted by clang softfloat: remove dead assignments, spotted by clang slirp: remove dead nested assignment, spotted by clang slirp: remove dead initialization, spotted by clang slirp: remove dead increments, spotted by clang slirp: remove dead assignments, spotted by clang target-arm: Fix missing 'return' in SRS handling. Fix curses interaction with keymaps use absolute URLs for .gitmodules Documentation: Modify rule for html output (better looking output format) scsi: update comment on the standards revision qemu-nbd: Fix wrong description in qemu-nbd.texi Build usb-ohci for PCs ppc440_bamboo: Disable new virtio-serial features for 0.12 machine type ppc440_bamboo: Add 0.12 and 0.13 machine types for backward compat s390-virtio: Fix compile error for virtio-block init ... Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2010-03-05Update to latest SeaBIOSAnthony Liguori1-0/+0
- 8f469b9 Dynamically allocate ata_channel info; introduce custom atadrive_s struct. - 575ffc8 Cleanup - build drive description in temp memory during init. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2010-03-04Merge commit 'deb4203dc9ebba6992ac1d583773c143a014e15a' into upstream-mergeMarcelo Tosatti3-2/+2
* commit 'deb4203dc9ebba6992ac1d583773c143a014e15a': target-mips: use newer logical ops eepro100: Keep includes sorted eepro100: Remove C++ comments eepro100: Add diagnose command eepro100: New function for reading command block eepro100: Use tx.status eepro100: Prettify code (no functional changes) eepro100: Fix CU Start command eepro100: Support RNR interrupt eepro100: Replace variable name to fix a compiler warning eepro100: Use symbolic names for bits in EEPROM id eepro100: Remove old unused code eepro100: Use symbolic names and BIT macros in binary operations eepro100: Add device descriptions eepro100: Update copyright notice eepro100: Add TODO list eepro100: Support gpxe boot for all eepro100 devices eepro100: Fix PXE boot eepro100: Add missing SCB register names eepro100: Fix compiler errors from debug messages Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2010-03-04Merge commit 'e1c247d26cc15dbdf3f99836c0b16a6c91128cf2' into upstream-mergeMarcelo Tosatti1-0/+0
* commit 'e1c247d26cc15dbdf3f99836c0b16a6c91128cf2': pc-bios: update to latest Seabios fix 'i' format handling in memory dump rewrote timer implementation for rtl8139. qcow2: Fix image creation regression qcow2: More checks for qemu-img check qcow2: Rewrite alloc_refcount_block/grow_refcount_table qcow2: Factor next_refcount_table_size out declare saved_env_reg as volatile target-mips: fix ROTR and DROTR by zero target-mips: fix CpU exception for coprocessor 0 target-mips: remove useless sign extension Fix qemu_eventfd compile when !CONFIG_EVENTFD ARM CP15 tls fix kvm-all.c: define smp_wmb and use it for coalesced mmio kvm: remove pre-entry exit_request check with iothread enabled Conflicts: pc-bios/bios.bin
2010-03-03eepro100: Support gpxe boot for all eepro100 devicesStefan Weil3-2/+2
Only two boot ROM files are needed for all devices. * Add these GPXE ROM files using new naming convention (as discussed on qemu-devel). Both files were created with http://rom-o-matic.net/, PCI vendor / device ids as in ROM filenames and option BANNER_TIMEOUT = 0. * Remove old PXE ROM file for i82559er. It was replaced by gpxe-eepro100-80861209.rom. * Update pc-bios/README (and sort entries). Full support still needs additional eepro100 fixes. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2010-02-24Merge commit 'b5ec5ce0e39d6e7ea707d5604a5f6d567dfd2f48' into upstream-mergeMarcelo Tosatti4-2/+2
* commit 'b5ec5ce0e39d6e7ea707d5604a5f6d567dfd2f48': Add cpu model configuration support.. add close callback for tty-based char device Fix lost serial TX interrupts. Report receive overruns. tcg/ppc: Fix typo apc_pci: simplify using rwhandler apb_pci: minor cleanup Update OpenBIOS images to r683 Fix arm-softmmu compile tcg/ppc64: Use C90 style comments tcg/ppc: Implement some of the optional ops tcg: fix build on 32-bit hppa, ppc and sparc hosts PL181 write fix Allow const QemuOptDesc cris: Add CRISv10 gdbstub support. cris: Mask interrupts on dslots for CRISv10. microblaze: Improve brk emulation. microblaze: Dont segfault when singlestepping first insn. target-sparc: fix --enable-debug build tcg: fix assertion with --enable-debug Conflicts: target-i386/helper.c Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2010-02-23pc-bios: update to latest SeabiosAnthony Liguori1-0/+0
- 0360e8e Seabios e820 reservation portion v3 - 7149fc8 Initial support for booting from USB drives. - 3c160dd Introduce helper functions for finding USB end-points. - 9571439 USB UHCI cleanups. - a4bd919 Minor - arrange struct drive_s to clarify field roles. - dac46b1 Fix off by one error in strtcpy. - d2d1de0 Don't require a valid physical cylinders/heads/spt for logical mapping. - 76977b2 Move common "command data block" functions to new file blockcmd.c. - d7e998f Dynamically allocate each drive_g with malloc_fseg(). - 525be69 Add *.pyc to .gitignore. - 7d70025 Add common "block command" definitions and update cdrom code. - 68caaa7 Optimize ntohl() code. - 42157c8 Minor - sort ATA CMD definitions. - 54671c1 Initial support for USB hubs. - 7852331 Minor - increase debug level of some USB debug statements. - ba94a68 Don't leave USB UHCI ports disabled for extended time during reset. - 49a0aa6 Don't parallelize USB OHCI root port reset. - cfdc13f Introduce standard warnings for allocation failures and timeouts. - 8bbc79c Add symbolic definitions for USB delays. - 991eaff Support USB interrupt schedules on OHCI and UHCI. - 59c7574 Add some ASSERT32FLAT() to help compiler eliminate dead code. - e1920be seabios: acpi: fix memory leak in build_srat(). - 84a4d4b Support USB keyboard auto-repeat. - bf7f1f3 mptable: Pull cpuid_signature/features setting out of loop. - 6f702dd Rework disabling of ps2 port irqs. - 2d3f0f5 Go back to using 0xf0000000 for PCI memory start. - 41c0957 Read APIC version from APIC instead of using a hard-coded value. - 7a98fd0 Work around bochs floppy issue with wait_irq(). - 4d07902 Add CONFIG_ATA_DMA option; default to off for now. - 3012af1 Fix PkgLength calculation for the SSDT. - 92a5742 Add explicit Program Headers to linker scripts. - 6fc91b2 Prep version for next release. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2010-02-22Update OpenBIOS images to r683Blue Swirl4-2/+2
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2010-02-22extboot: Clean up host-guest interfaceJan Kiszka1-23/+0
Drop the unused boot mode port 0x404 from the host-guest interface of extboot and remove related code from both sides. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Acked-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Avi Kivity <avi@redhat.com>
2010-02-22extboot: Keep variables in RAMJan Kiszka1-11/+30
Instead of saving the old INT 0x13 and 0x19 handlers in ROM which fails under QEMU as it enforces protection, keep them in spare vectors of the interrupt table, namely INT 0x80 and 0x81. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Avi Kivity <avi@redhat.com>
2010-02-17Merge branch 'upstream-merge'Marcelo Tosatti1-0/+0
* upstream-merge: (159 commits) crisv10: Prettify. sparc32 fix spurious dma interrupts v2 Revert "Sparc32: improve DMA controller IRQ debugging" cris: Add support for CRISv10 translation. cris: Use tcg_gen_movi_tl. cris: Add v10 style interrupts. crisv10: Always clear the V and C flags on btst. cris: Prepare for CRISv10. dec: use PCI accessors sparc64: use PCI accessors for APB/PBM Remove conditional rom loading support Fix incorrect exception_index use pci: fix info pci with host bridge. ide: add topology support scsi: add topology support virtio-blk: add topology support block: add topology qdev properties virtio-blk: revert serial number support Increase VNC_MAX_WIDTH qemu-img: use the heap instead of the huge stack array for win32 ... Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
2010-01-21Merge commit '49a945a3c0107463de3e57394622eff251e52fc4' into upstream-mergeMarcelo Tosatti3-3/+2
* commit '49a945a3c0107463de3e57394622eff251e52fc4': (28 commits) kill regs_to_env and env_to_regs remove dead code from target-i386/exec.h rtl8139: fix clang reporting unused assignment of VLAN tagging data eepro100: Fix multicast support eepro100: Restructure code (new function tx_command) Sparc32: Update OpenBIOS image to r666 Sparc: improve CPU register dump fix linux-user microblaze ELF_ARCH definition audio: include more information into audio_bug's output Revert "sdlaudio: make it suck less" Sparc32: improve DMA controller IRQ debugging ESP: improve IRQ debugging sparc32 do not clear interrupts when masking Update Sparc OpenBIOS images to r665 sparc32 do_unassigned_access overhaul v2 tcg/x86_64: Avoid unnecessary REX.B prefixes. nand: Correct random data reads. Makefile: Fix message for missing configure target-m68k: fix a typo in 'P' packet processing tcg/x86_64: Special-case all 32-bit AND operands. ... Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2010-01-21Merge commit 'ffd8b67f5d90dd23aad5f549ed528228de8602e7' into upstream-mergeMarcelo Tosatti1-0/+0
* commit 'ffd8b67f5d90dd23aad5f549ed528228de8602e7': kvm: Use kvm-kmod headers if available monitor: fix dead assignment spotted by clang Sparc64: Fix PCI config accessor order tcg-sparc: Implement ext32[su]_i64 tcg-sparc: Implement division properly. tcg-sparc: Do not remove %o[012] from 'r' constraint. tcg-sparc: Implement add2, sub2, mulu2. tcg-sparc: Add tcg_out_arithc. vnc_refresh: return if vd->timer is NULL qdev: fix thinko leading to guest crashes QMP: Don't free async event's 'data' dma/sb16: make clang analyzer not complain Sparc64: enable real access to PCI configuration space Update to SeaBIOS 0.5.1 make help output be a little more self-consistent pc: add rombar to compat properties for pc-0.10 and pc-0.11 Conflicts: configure Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2010-01-21Merge commit '8832cb805dcb65009b979cd8e17d75ac4b03c7e4' into upstream-mergeMarcelo Tosatti1-1/+2
* commit '8832cb805dcb65009b979cd8e17d75ac4b03c7e4': (36 commits) roms: rework rom loading via fw fw_cfg: rom loader tweaks. roms: minor fixes and cleanups. pc: add machine type for 0.12 Handle TFTP ERROR from client dmg: fix ->open failure virtio-pci: thinko fix virtio: add features as qdev properties virtio: rename features -> guest_features qdev: add bit property type pc-bios: Update README (SeaBIOS) lsi: pass lsi_request to lsi_reselect lsi: move dma_len+dma_buf into lsi_request lsi: move current_dev into lsi_request lsi: have lsi_request for the whole life time of the request. lsi: use QTAILQ for lsi_queue vmware_vga: Check cursor dimensions passed from guest to avoid buffer overflow remove pending exception on vcpu reset. Fix CPU topology initialization MCE: Fix bug of IA32_MCG_STATUS after system reset ... Conflicts: hw/pc.c Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2010-01-21Merge commit 'c9f398e53fedb88df243e32eb9bc50fda4ec44d0' into upstream-mergeMarcelo Tosatti1-1/+2
* commit 'c9f398e53fedb88df243e32eb9bc50fda4ec44d0': debugcon: support for debugging consoles (e.g. Bochs port 0xe9) Makefile: Update unmodified config-devices.mak automatically Use vpath directive oss: workaround for cases when OSS_GETVERSION is not defined Sparc32: clear exception_index with -1 value Conflicts: Makefile.target Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2010-01-17Sparc32: Update OpenBIOS image to r666Blue Swirl2-1/+1
Fixes the boot problem introduced by r665 image in 694b9309462f07307d16f492961f01271f10c245. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2010-01-16Update Sparc OpenBIOS images to r665Blue Swirl3-3/+2
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2010-01-11Update to SeaBIOS 0.5.1Anthony Liguori1-0/+0
5da6833 Update version to 0.5.1 669c991 Fix sign error preventing incorrect memory over 4gig calculation. 7e6bd3e Minor - better indent assembler in int1587. 48cf232 Add comment explaining why mptable is in low memory. 643062f Add int1589 support. 085debd Set FDPT in irq table even for small drives. 7c1b186 Reduce #ifs by weeding out some cross-chunk function definitions. f9b25d3 Fix vgahook sign issue; add warning to build to catch future cases. 3862b2d vgabios: Fix compile error due to fixed prototypes. 1ca05b0 Be sure to add "void" to all function prototypes that take no args. b5bb9db mptable: Reset pinmask on new bus or device. 8918989 Detect latest FC12 gcc -combine breakage. c9d3c2d Minor vga binary cleanups. 9a8609f Make MTRR region 0xc0000-0x100000 be cached. fdca418 Force a link error if a function is used from the wrong code chunk. dad41d9 Add __noreturn define for __attribute__((noreturn)). c003148 Implement native 32bit APM support. 5c99b6c Commit compiled dsdt file; misc comment updates. 29f4b91 prevent acpi from rerouting SCI interrupt 4c94b7e enumerate all PCI buses in mptable 871e0a0 Add support for 32bit PCI BIOS entry. eda2c83 Only add "addr32" to memory accesses that require them. 52a300f Introduce MODESEGMENT define; rename VISIBLE32 to VISIBLE32FLAT. fe2c3ee Allocate smbios in temp space and copy into final location. b164d2c Clear user reserved interrupts (0x60-0x66). d9104ff Remove pci_bios_bigmem_addr; set pci_bios_mem_addr=0xe0000000 14021f2 Add initial support for ATA DMA. 8362699 Allocate mptable in temp space and copy into final location. 979862e Also report memory over 4G during init. 928d4df provide correct pci routing information in mptable afc02da Add symbolic definitions for MTRR code. fb214dc Fix yield() so it works from boot code. 2ceeec9 Fix potential build failure due to text16 section being too large. a2195e4 Increase version in preparation for next release. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2010-01-11pc-bios: Update README (SeaBIOS)Stefan Weil1-1/+2
The PC BIOS no longer comes from Bochs. This patch updates the related entry. V2 - Modify SeaBIOS description and URL (Thanks to Gleb Natapov for the hint). Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2010-01-08linuxboot: fix gdt address calculationAvi Kivity1-2/+3
The gdt address calculation in linuxboot.bin is broken in two ways: first it loads %cs into %eax, but that instruction leaves the high bits of %eax undefined and we did not clear them. Secondly, we completely ignore the incorrect %eax, and use the undefined %ebx instead. With these issues fixed, linuxboot works again. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2010-01-08Use vpath directivePaolo Bonzini1-1/+2
The vpath directive has two advantages over the VPATH variable: 1) it allows to skip searching of .o files; 2) the default semantics are to append to the vpath, so there is no confusion between "VPATH=xyz" and "VPATH+=xyz". Since "vpath %.c %.h PATH" is not valid, I'm introducing a wrapper macro to append one or more directories to the vpath. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2010-01-07Merge commit '19e65b47f60c68d7e8c96aa0a36223c5a0d3422b' into upstream-mergeMarcelo Tosatti2-2/+3
* commit '19e65b47f60c68d7e8c96aa0a36223c5a0d3422b': Add missing newline at the end of options list Update Sparc64 OpenBIOS image to r649. Sparc64: move APB PCI memory base to correct location PCI: Fix bus address conversion sparc: make command line available also via firmware configuration device tcg: Add tcg_unsigned_cond. block/bochs: improve format checking block.c: fix warning with _FORTIFY_SOURCE block/bochs.c: fix warning with _FORTIFY_SOURCE savevm.c: fix warning with _FORTIFY_SOURCE slirp/misc.c: fix warning with _FORTIFY_SOURCE hw/pc.c: fix warnings with _FORTIFY_SOURCE path.c fix warning with _FORTIFY_SOURCE PCI: partially revert 2e01c8cf4b076b05013c87723e3fc710b50a0a7a Conflicts: qemu-options.hx Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2009-12-28Update Sparc64 OpenBIOS image to r649.Blue Swirl2-2/+3
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2009-12-24Merge commit '502e64fe23f19c086d42f6178cdda19e58996080' into upstream-mergeMarcelo Tosatti1-0/+0
* commit '502e64fe23f19c086d42f6178cdda19e58996080': (23 commits) target-arm: fix strexd linux-user: fix build with gcc-4.1 linuxboot.bin is a generated file qemu-nbd: fix OpenBSD linker warning e1000: add link to data sheet qemu-io: suppress a warning with gcc 4.0.2 Compile qemu-nbd also on OpenBSD and Solaris USB: Improve usbdevice error messages target-alpha: Initialize fpcr tcg-sparc: Implement brcond2. tcg-sparc: Use TCG_TARGET_REG_BITS in conditional compilation. tcg-sparc: Improve tcg_out_movi for sparc64. tcg-sparc: Fix imm13 check in movi. ARM PBX-A9 memory map tweaks LAN9118 improvements PPC: Make DCR uint32_t PPC64: Fix alternate timebase PPC64: Fix timebase target-alpha: Emit tcg debug_insn_start. linux-user: Add aliases for some Alpha syscalls ... Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2009-12-24linuxboot: fix gdt address calculationAvi Kivity1-2/+3
The gdt address calculation in linuxboot.bin is broken in two ways: first it loads %cs into %eax, but that instruction leaves the high bits of %eax undefined and we did not clear them. Secondly, we completely ignore the incorrect %eax, and use the undefined %ebx instead. With these issues fixed, linuxboot works again. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2009-12-21Update OpenBIOS PPC image to revision 647Aurelien Jarno1-0/+0
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2009-12-20Add vapic optionrom binaryAvi Kivity1-0/+0
Signed-off-by: Avi Kivity <avi@redhat.com>
2009-12-20Merge commit '935effc2bbd2c441b755a8d280811a9763fdb98c' into upstream-mergeAvi Kivity1-0/+0
* commit '935effc2bbd2c441b755a8d280811a9763fdb98c': (38 commits) Multiboot support: Fix rom_copy linux-user: add core dump support for SH linux-user: add core dump support for M68K linux-user: add core dump support for MIPS linux-user: add core dump support for PPC linux-user: fix ARM core dumps on opposite-endian hosts linux-user: commonify definitions of target typedefs linux-user: fix ELF_USE_CORE_DUMP/USE_ELF_CORE_DUMP confusion linux-user: use TARGET_ABI_FMT_lx to print abi_ulong types roms: allow roms to be loaded at address 0 linux-user: cleanup force_sig() calls linux-user: Fix mmap_lock ordering linux-user: enable tb unlinking when compiled with NPTL user: fix compilation without -fpie user_only: compile everything with -fpie hw/openpic.c: replace tabs by spaces target-ppc: Use interrupts for escc target-ppc: Initialize OpenPIC properly Update version and changelog to sync with stable branch Update to SeaBIOS 0.5.0 ... Signed-off-by: Avi Kivity <avi@redhat.com>
2009-12-20Merge commit 'f0138a63a41fe26bcef61d031ae53d872d12a992' into upstream-mergeAvi Kivity1-12/+8
* commit 'f0138a63a41fe26bcef61d031ae53d872d12a992': (23 commits) Make sure to enable dirty tracking of VBE vram mapping vmware: setup PCI BAR 2 for FIFO as per vmware spec qdev: improve property error reporting. fix vga names in default_list usb-host: check mon before using it. usb-net: use qdev for -usbdevice Check rom_load_all() return value. defaults: update device_list[] defaults: split default_drive monitor: Catch printing to non-existent monitor monitor: Avoid readline functions in QMP monitor: do_balloon(): Check for errors monitor: Use 'device' in eject QDict: Fix size update qdev: Improve uni-north device names Avoid permanently disabled QEMU monitor when UNIX migration fails Fix loading of ELF multiboot kernels Revert "Rename DriveInfo.onerror to on_write_error" (fix mismerge) qemu-io: Fix memory leak Fix thinko in linuxboot.S ... Conflicts: hw/vga.c Signed-off-by: Avi Kivity <avi@redhat.com>
2009-12-19Update to SeaBIOS 0.5.0Anthony Liguori1-0/+0
The only change is updating the makefile but that way we're carrying an official release. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-12-18Update SeaBIOS to include PCI based option rom loadingAnthony Liguori2-0/+0
Also remove pcbios from the tree. It will no longer work. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-12-18Fix thinko in linuxboot.SPaolo Bonzini1-12/+8
The %gs segment that was used was not matching the comments. I just moved the GDT descriptor on the stack instead. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-12-14Merge commit '5b5cb08683b6715a2aca5314168e68ff0665912b' into upstream-mergeAvi Kivity4-1/+1
* commit '5b5cb08683b6715a2aca5314168e68ff0665912b': msix: function mask support msix: macro rename for function mask support TCG: Mac OS X support for ppc64 target Update OpenBIOS images to r640 Conflicts: hw/msix.c Signed-off-by: Avi Kivity <avi@redhat.com>
2009-12-13vapic: fix alignmentAvi Kivity1-1/+5
Align the bios descriptor to 16 bytes (cosmetic) and the vptr to 128 bytes (worst case cache line). Signed-off-by: Avi Kivity <avi@redhat.com>