aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge commit '72755a709619b1db204c675df8f1093d54e38128' into upstream-mergeAvi Kivity2009-07-121-5/+7
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '72755a709619b1db204c675df8f1093d54e38128': qemu/msi: missing braces qemu/msi: clean used vectors state on load qcow2: Fix L1 table memory allocation qcow1: Fix qcow_aio_writev Prefer sysfs for USB host devices usb-ohci: Fix endianness issue Make sure to mark MCE defines as ULL qemu-io: fix memory leak qemu-io: add flag to mark files growable qemu-io: better input validation for vector-based commands qemu-io: small cleanups for the aio code Disable kqemu by default at run time Make sure to only vm_start() a failed migration if we were running to begin Allow setting qemu process name v2 configure: Append extra cflags and ldflags qemu: remove control vector save Conflicts: hw/msix.c Signed-off-by: Avi Kivity <avi@redhat.com>
| * Disable kqemu by default at run timeAnthony Liguori2009-07-091-4/+4
| | | | | | | | | | | | | | | | -no-kqemu -> -enable-kqemu kqemu is still present at compile time by default Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
| * Allow setting qemu process name v2Andi Kleen2009-07-091-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | Set the Linux process name to the name argument specified with name. I find this useful to see which guests are taking CPU time in top. This doesn't affect ps, which checks argv[0], but rewriting the environment uses much more code, so I only used this simple way. v2: Use separate process= argument, no prefixes. Signed-off-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | Merge commit '9a3e12c8a48ef96bf0f3effc21a4ce98d35992f9' into upstream-mergeAvi Kivity2009-07-121-4/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '9a3e12c8a48ef96bf0f3effc21a4ce98d35992f9': fix segfault in msix_save Unregister savevm callback in eeprom93xx_free() Don't leak VLANClientState on PCI hot remove Don't abort if TUNSETSNDBUF fails where no sndbuf= arg is supplied Substitute O_DSYNC with O_SYNC or O_FSYNC when needed. Allow adjustment of http block device's readahead size, via a new consolidate user cpu_{in, out}[bwl] into ioport-user.c ioport: consolidate duplicated logic in register_ioport_{read, write}(). use constant IOPORTS_MASK instead of 0xffff. split out ioport related stuffs from vl.c into ioport.c. Replace signrom with shell script v3 Revert "support colon in filenames" Fix build for ESD audio qcow2: Make cache=writethrough default net: set a default value for sndbuf= configure: detect xen with --extra-cflags / --extra-ldflags Conflicts: hw/msix.c Signed-off-by: Avi Kivity <avi@redhat.com>
| * qcow2: Make cache=writethrough defaultKevin Wolf2009-07-091-3/+1
| | | | | | | | | | | | | | | | | | The performance of qcow2 has improved meanwhile, so we don't need to special-case it any more. Switch the default to write-through caching like all other block drivers. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
| * net: set a default value for sndbuf=Mark McLoughlin2009-07-091-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On reflection, perhaps it does make sense to set a default value for the sndbuf= tap parameter. For best effect, sndbuf= should be set to just below the capacity of the physical NIC. Setting it higher will cause packets to be dropped before the limit is hit. Setting it much lower will not cause any problems unless you set it low enough such that the guest cannot queue up new packets before the NIC has emptied its queue. In Linux, txqueuelen=1000 by default for ethernet NICs. Given a 1500 byte MTU, 1Mb is a good choice for sndbuf. If it turns out that txqueuelen is actually much lower than this, then sndbuf is essentially disabled. In the event that txqueuelen is much higher, it's unlikely that the NIC will be able to empty a 1Mb queue. Thanks to Herbert Xu for this logic. Signed-off-by: Mark McLoughlin <markmc@redhat.com> Cc: Herbert Xu <herbert.xu@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | Merge commit '7d4c3d535c6f33e1d6d158aaf2108a27b45d743d' into upstream-mergeAvi Kivity2009-06-301-4/+9
|\| | | | | | | | | | | | | | | | | | | * commit '7d4c3d535c6f33e1d6d158aaf2108a27b45d743d': Replace -no-virtio-balloon by -balloon slirp: tftp: Relax filename format check sdl: Fix memory leakage KVM: x86: Refactor persistent CPU state Signed-off-by: Avi Kivity <avi@redhat.com>
| * Replace -no-virtio-balloon by -balloonMarkus Armbruster2009-06-291-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We want to do (at least) two things to the virtio-balloon device: suppress it, and control its PCI address. Option -no-virtio-balloon lets us do only the former. To get the latter, replace -no-virtio-balloon with -balloon none disable balloon device -balloon virtio[,addr=str] enable virtio balloon device (default) Syntax suggested by Anthony Liguori. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | Merge commit 'c9e0df738918b1d5d39a283500abc3a3ac433f78' into upstream-mergeAvi Kivity2009-06-301-4/+13
|\| | | | | | | | | | | | | | | | | | | | | | | | | * commit 'c9e0df738918b1d5d39a283500abc3a3ac433f78': Rename LIBOBJS to libobj-y Rename OBJS to obj-y cpu_unregister_map_client: fix memory leak. Add documentation for Multiboot Conflicts: Makefile.target Signed-off-by: Avi Kivity <avi@redhat.com>
| * Add documentation for MultibootAlexander Graf2009-06-291-4/+13
| | | | | | | | | | | | | | | | | | | | | | The documentation shows how to use -kernel and friends for booting Linux, but obviously knows nothing about multiboot yet. Let's include some documentation for multiboot, so people know how to fully exploit this cool new feature. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | Merge commit '6dbe553fe9ffdee008c1bbbe1af2d030e0f04aab' into upstream-mergeAvi Kivity2009-06-301-104/+136
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '6dbe553fe9ffdee008c1bbbe1af2d030e0f04aab': (26 commits) slirp: Add info usernet for dumping connection states slirp: Mark sockets of incoming TCP connections slirp: Do not allow to remove non-hostfwd sockets slirp: Explicitely mark host-forwarding sockets slirp: Prepare for persistent socket state flags slirp: Bind support for host forwarding rules slirp: Rework monitor commands for host forwarding slirp: Fix port comparision in slirp_remove_hostfwd slirp: Rework external configuration interface slirp: Rework internal configuration slirp: Move smb, redir, tftp and bootp parameters and -net channel Introduce get_next_param_value Revert "User networking: Show active connections" slirp: Refactor tcp_ctl slirp: Drop redundant lines from udp_input sdl zooming Fix QCOW2 debugging code to compile again Add serial number support for virtio_blk Remove unused gen_bx_T0 function. Make sure to zero out memory before calling madvise to increase robustness ... Conflicts: net.h Signed-off-by: Avi Kivity <avi@redhat.com>
| * slirp: Bind support for host forwarding rulesJan Kiszka2009-06-291-5/+6
| | | | | | | | | | | | | | | | | | Extend the hostfwd rule format so that the user can specify on which host interface qemu should listen for incoming connections. If omitted, binding will takes place against all interfaces. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
| * slirp: Rework external configuration interfaceJan Kiszka2009-06-291-18/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | With the internal IP configuration made more flexible, we can now enhance the user interface. This patch adds a number of new options to "-net user": net (address and mask), host, dhcpstart, dns and smbserver. It also renames "redir" to "hostfwd" and "channel" to "guestfwd" in order to (hopefully) clarify their meanings. The format of guestfwd is extended so that the user can define not only the port but also the virtual server's IP address the forwarding starts from. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
| * slirp: Move smb, redir, tftp and bootp parameters and -net channelJan Kiszka2009-06-291-98/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So far a couple of slirp-related parameters were expressed via stand-alone command line options. This it inconsistent and unintuitive. Moreover, it prevents both dynamically reconfigured (host_net_add/ delete) and multi-instance slirp. This patch refactors the configuration by turning -smb, -redir, -tftp and -bootp as well as -net channel into options of "-net user". The old stand-alone command line options are still processed, but no longer advertised. This allows smooth migration of management applications to to the new syntax and also the extension of that syntax later in this series. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
| * qemu/net: flag to control the number of vectors a nic hasMichael S. Tsirkin2009-06-241-6/+8
| | | | | | | | | | | | | | | | | | Add an option to specify the number of MSI-X vectors for PCI NIC cards. This can also be used to disable MSI-X, for compatibility with old qemu. This option currently only affects virtio cards. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | Merge commit '0df0ff6de70393680cea81ad696d9d74b75f88da' into upstream-mergeAvi Kivity2009-06-251-1/+8
|\| | | | | | | | | | | | | | | | | | | * commit '0df0ff6de70393680cea81ad696d9d74b75f88da': net: add '-net tap,sndbuf=nbytes' Conflicts: net.c Signed-off-by: Avi Kivity <avi@redhat.com>
| * net: add '-net tap,sndbuf=nbytes'Mark McLoughlin2009-06-221-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2.6.30 adds a new TUNSETSNDBUF ioctl() which allows a send buffer limit for the tap device to be specified. When this limit is reached, a tap write() will return EAGAIN and poll() will indicate the fd isn't writable. This allows people to tune their setups so as to avoid e.g. UDP packet loss when the sending application in the guest out-runs the NIC in the host. There is no obviously sensible default setting - a suitable value depends mostly on the capabilities of the physical NIC through which the packets are being sent. Also, note that when using a bridge with netfilter enabled, we currently never get EAGAIN because netfilter causes the packet to be immediately orphaned. Set /proc/sys/net/bridge/bridge nf-call-iptables to zero to disable this behaviour. Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | Merge commit 'c2cc47a449c3e16f7dd4d19a536c649ec56a9ac9' into upstream-mergeAvi Kivity2009-06-251-0/+3
|\| | | | | | | | | | | | | | | | | | | | | * commit 'c2cc47a449c3e16f7dd4d19a536c649ec56a9ac9': Support addr=... in option argument of -drive if=virtio Conflicts: qemu-options.hx vl.c Signed-off-by: Avi Kivity <avi@redhat.com>
| * Support addr=... in option argument of -drive if=virtioMarkus Armbruster2009-06-221-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | Make drive_init() accept addr=, put the value into struct DriveInfo. Use it in all the places that create virtio-blk-pci devices: pc_init1(), bamboo_init(), mpc8544ds_init(). Don't support addr= in third argument of monitor command pci_add and second argument of drive_add, because that clashes with their first arguments. Admittedly unelegant. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | Merge commit '5607c38820366954c38dd702e979499486057481' into upstream-mergeAvi Kivity2009-06-251-3/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '5607c38820366954c38dd702e979499486057481': Support addr=... in option argument of -net nic Fix do_pci_register_device() to reject devfn already in use vmware_vga: clean up dot gitignore: add qemu-monitor.texi virtio-net: enable mergeable receive buffers Conflicts: hw/pc.c Signed-off-by: Avi Kivity <avi@redhat.com>
| * Support addr=... in option argument of -net nicMarkus Armbruster2009-06-221-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make net_client_init() accept addr=, put the value into struct NICinfo. Use it in pci_nic_init(), and remove arguments bus and devfn. Don't support addr= in third argument of monitor command pci_add, because that clashes with its first argument. Admittedly unelegant. Machines "malta" and "r2d" have a default NIC with a well-known PCI address. Deal with that the same way as the NIC model: make pci_nic_init() take an optional default to be used when the user doesn't specify one. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | Merge branch 'master' of git://git.sv.gnu.org/qemuAvi Kivity2009-06-161-0/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'master' of git://git.sv.gnu.org/qemu: (37 commits) Incorporate changes from v2 of Gleb's RTC reset patch etrax: Don't pass CPUState to peripherals. Fix warning in qemu-nbd.c raw-posix: cleanup ioctl methods block: add bdrv_probe_device method raw-posix: split hdev drivers raw-posix: add a raw_open_common helper raw-posix: always store open flags fix qemu_aio_flush Add rtc reset function. migrate_fd_close: delete associated io-handler before closing the fd exec-migration: handle EINTR in popen_get_buffer() Fix prototype of function zfree. Add static to local machine declaration. Don't use cpu_index as apic_id. Apic creation should not depend on pci Add -no-virtio-balloon command-line option Fix SDL include path. Really enable -Werror Avoid collision with system NGROUPS definition ... Conflicts: hw/apic.c hw/pc.c hw/pc.h Signed-off-by: Avi Kivity <avi@redhat.com>
| * Add -no-virtio-balloon command-line optionEduardo Habkost2009-06-131-0/+9
| | | | | | | | | | | | | | This new option may be used to disable the virtio-balloon device. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | Merge branch 'master' of git://git.sv.gnu.org/qemuMark McLoughlin2009-06-111-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'master' of git://git.sv.gnu.org/qemu: (17 commits) Fix "defined but not used" warning monitor: Introduce get_command_name() monitor: Remove unused variable monitor: Remove uneeded 'return' statement monitor: Remove uneeded goto Use snprintf to avoid OpenBSD warning Fix Sparse warning Clean up generated qemu-img-cmds.h Fix Sparse warning microblaze-dis.c does not need to be executable Fix warning Remove unused and misnamed field and variable Update irqs on reset and device load Register reset functions for e1000 and rtl8139 qdev: c99 initilaizers for bus_type_names xen nic: use XC_PAGE_SIZE instead of PAGE_SIZE. xen nic: use qemu_malloc Signed-off-by: Mark McLoughlin <markmc@redhat.com>
| * Fix Sparse warningBlue Swirl2009-06-091-1/+1
| | | | | | | | | | | | | | Fix this warning: ./qemu-options.h:198:1: error: expected preprocessor identifier Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | Fix -mem-path option spellingAvi Kivity2009-05-291-2/+2
| | | | | | | | | | | | '-mem-path' was accidentally renamed to '-mempath'. Rename it back. Signed-off-by: Avi Kivity <avi@redhat.com>
* | Merge branch 'master' of git://git.sv.gnu.org/qemuAvi Kivity2009-05-061-1/+50
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'master' of git://git.sv.gnu.org/qemu: (84 commits) ETRAX: Simplify serport control logic. ETRAX: Drop _t for the serial type. ETRAX: Use NULL for subwidth serport reg accesses. ETRAX: Drop the _t for the internal PIC type. ETRAX: Simplify the interrupt controller model. ETRAX: Simplify interrupt signaling. Fix compiler warnings in nwfpe code. target-mips: proper sign extension for 'SUBU rd, zero, rt' target-mips: fix comments about SUB/DSUB qemu-options.hx: fix description of cache=none suboption Suppress type mismatch warnings in VDE code. minor fix of pci_register_bus() use PCI_HEADER_TYPE. Fix typos in comments in exec.c Optimize cmp x, 0 case Reindent Handle NULL bdrv. Improve instruction name comments for easier searching Clarify: dmmuregs[1] is not a typo Optimize operations with immediate parameters ... Conflicts: Makefile.target hw/vga.c qemu-common.h vl.c (iothread merge by Marcelo) Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
| * qemu-options.hx: fix description of cache=none suboptionAurelien Jarno2009-05-041-1/+1
| | | | | | | | Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
| * Hardware watchdogRichard W.M. Jones2009-05-011-0/+49
| | | | | | | | | | | | | | | | Here is an updated hardware watchdog patch, which should fix everything that was raised about the previous version ... Signed-off-by: Richard W.M. Jones <rjones@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | Remove -cpu-vendor-stringAnthony Liguori2009-04-301-2/+0
| | | | | | | | | | | | | | Superceded by qemu '-cpu vendor=...' option. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Avi Kivity <avi@redhat.com>
* | Re-add -drive boot= parameter help textPauline Middelink2009-04-271-0/+1
| | | | | | | | | | | | | | | | | | | | Small regression. libvirt determines the use of the boot= flag by looking at the helptext. This flag is required for booting off virtio-blk devices. The description was lost in the last upstream merge; this patch re-adds it. Signed-off-by: Pauline Middelink <middelink@polyware.nl> Signed-off-by: Avi Kivity <avi@redhat.com>
* | Merge branch 'master' of git://git.sv.gnu.org/qemu into masterAvi Kivity2009-04-231-4/+58
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'master': (180 commits) xen: add -vga xenfb option, configure xenfb (Gerd Hoffmann) simplify vga selection (Gerd Hoffmann) xen: pv domain builder. (Gerd Hoffmann) xen: blk & nic configuration via cmd line. (Gerd Hoffmann) xen: add net backend driver. (Gerd Hoffmann) xen: add block device backend driver. (Gerd Hoffmann) xen: add framebuffer backend driver (Gerd Hoffmann) xen: add console backend driver. (Gerd Hoffmann) xen: backend driver core (Gerd Hoffmann) xen: groundwork for xen support (Gerd Hoffmann) update .gitignore: add qemu-io (Gerd Hoffmann) qcow2: Add plausibility check for L1/L2 entries (Kevin Wolf) qcow2: Refcount checking code cleanup (Kevin Wolf) Introduce qemu-img check subcommand (Kevin Wolf) Introduce bdrv_check (Kevin Wolf) qcow2: Fix warnings in check_refcount() (Kevin Wolf) sending NUMA topology to BIOS (Andre Przywara) add info numa command to monitor (Andre Przywara) added -numa cmdline parameter parser (Andre Przywara) Safety net for the cases where disassembler/translator disagree over instruction decoding ... Conflicts: Makefile Makefile.target configure cpu-all.h gdbstub.c hw/apic.c hw/cirrus_vga.c hw/eepro100.c hw/pc.c hw/pcnet.c hw/rtl8139.c hw/vga.c net.c pc-bios/bios.bin sysemu.h vl.c Signed-off-by: Avi Kivity <avi@redhat.com>
| * xen: add -vga xenfb option, configure xenfb (Gerd Hoffmann)aliguori2009-04-221-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7228 c046a42c-6fe2-441c-8c8c-71466251a162
| * xen: groundwork for xen support (Gerd Hoffmann)aliguori2009-04-221-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | - configure script and build system changes. - wind up new machine type. - add -xen-* command line options. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7219 c046a42c-6fe2-441c-8c8c-71466251a162
| * added -numa cmdline parameter parser (Andre Przywara)aliguori2009-04-211-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | adds a -numa command line parameter and sets a QEMU global array with the memory sizes. The CPU-to-node assignemnt is written into the CPUState. If no specific values for memory and CPUs are given, all resources will be split equally across all nodes. This code currently support only up to 64 virtual CPUs. Signed-off-by: Andre Przywara <andre.przywara@amd.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7210 c046a42c-6fe2-441c-8c8c-71466251a162
| * slirp: Enhance host-guest redirection setup (Jan Kiszka)aliguori2009-04-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Allow to establish a TCP/UDP connection redirection also via a monitor command 'host_net_redir'. Moreover, assume TCP as connection type if that parameter is omitted. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7204 c046a42c-6fe2-441c-8c8c-71466251a162
| * net: Add support for capturing VLANs (Jan Kiszka)aliguori2009-04-211-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch is derived from Tristan Gingold's patch. It adds a new VLAN client type that writes all traffic on the VLAN it is attached to into a pcap file. Such a file can then be analyzed offline with Wireshark or tcpdump. Besides rebasing and some minor cleanups, the major differences to the original version are: - support for enabling/disabling via the monitor (host_net_add/remove) - no special ordering of VLAN client list, qemu_send_packet now takes care of properly ordered packets - 64k default capturing limit (I hate tcpdump's default) Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7200 c046a42c-6fe2-441c-8c8c-71466251a162
| * kqemu: merge CONFIG_KQEMU and USE_KQEMUblueswir12009-04-191-2/+2
| | | | | | | | | | | | | | | | | | | | Basically a recursive ":%s/USE_KQEMU/CONFIG_KQEMU/g". Signed-off-by: Paul Bolle <pebolle@tiscali.nl> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7189 c046a42c-6fe2-441c-8c8c-71466251a162
| * qemu: Add support for SMBIOS command line otions (Alex Williamson)aliguori2009-04-171-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create a new -smbios option (x86-only) to allow binary SMBIOS entries to be passed through to the BIOS or modify the default values of individual fields of type 0 and 1 entries on the command line. Binary SMBIOS entries can be generated as follows: dmidecode -t 1 -u | grep $'^\t\t[^"]' | xargs -n1 | \ perl -lne 'printf "%c", hex($_)' > smbios_type_1.bin These can then be passed to the BIOS using this switch: -smbios file=smbios_type_1.bin Command line generation supports the following syntax: -smbios type=0[,vendor=str][,version=str][,date=str][,release=%d.%d] -smbios type=1[,manufacturer=str][,product=str][,version=str][,serial=str] [,uuid=$(uuidgen)][,sku=str][,family=str] For instance, to add a serial number to the type 1 table: -smbios type=1,serial=0123456789 Interface is extensible to support more fields/tables as needed. aliguori: remove texi formatting from help output Signed-off-by: Alex Williamson <alex.williamson@hp.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7163 c046a42c-6fe2-441c-8c8c-71466251a162
| * Implement --version.pbrook2009-04-071-0/+7
| | | | | | | | | | | | | | Signed-off-by: Paul Brook <paul@codesourcery.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7035 c046a42c-6fe2-441c-8c8c-71466251a162
* | Merge commit 'qemu-svn/trunk'Avi Kivity2009-04-061-12/+24
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'qemu-svn/trunk': (38 commits) Remove WIN32 guard around -k Add new command line option -singlestep for tcg single stepping. tcg/x86_64: optimize register allocation order stop dirty tracking just at the end of migration (Glauber Costa) create qemu_file_set_error (Glauber Costa) propagate error on failed completion (Glauber Costa) Disable qemu-io on Win32 Add files not included in previous commit. Fix savevm after BDRV_FILE size enforcement Fix the build for --disable-aio gdbstub: Rework configuration via command line and monitor (Jan Kiszka) Make `-icount' help fit 80 chars screen width (Robert Riebisch) qemu-io - an I/O path exerciser (Christoph Hellwig) Fix display breakage when resizing the screen (v2) (Avi Kivity) Fix some win32 compile warnings Make binary stripping conditional (Riku Voipio) qcow2: fix image creation for large, > ~2TB, images (Chris Wright) pci_add storage: fix error handling for 'if' parameter (Eduardo Habkost) build system: clean qemu-options.texi and gdbstub-xml.c (Jan Kiszka) build system: silent generation of doc files and qemu-options.h (Jan Kiszka) ... Conflicts: qemu/Makefile.target qemu/hw/vga.c qemu/vl.c Signed-off-by: Avi Kivity <avi@redhat.com>
| * Remove WIN32 guard around -kaliguori2009-04-061-2/+0
| | | | | | | | | | | | | | | | Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7006 c046a42c-6fe2-441c-8c8c-71466251a162
| * Add new command line option -singlestep for tcg single stepping.aurel322009-04-051-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This replaces a compile time option for some targets and adds this feature to targets which did not have a compile time option. Add monitor command to enable or disable single step mode. Modify monitor command "info status" to display single step mode. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7004 c046a42c-6fe2-441c-8c8c-71466251a162
| * gdbstub: Rework configuration via command line and monitor (Jan Kiszka)aliguori2009-04-051-10/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a more canonical gdbstub configuration (system emulation only) via the new switch '-gdb dev'. Keep '-s' as shorthand for '-gdb tcp::1234'. Use the same syntax also for the corresponding monitor command 'gdbserver'. Its default remains to listen on TCP port 1234. Changes in v4: - Rebased over new command line switches meta file Changes in v3: - Fix documentation Changes in v2: - Support for pipe-based like to gdb (target remote | qemu -gdb stdio) - Properly update the qemu-doc Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6992 c046a42c-6fe2-441c-8c8c-71466251a162
| * Make `-icount' help fit 80 chars screen width (Robert Riebisch)aliguori2009-04-051-1/+2
| | | | | | | | | | | | | | | | | | | | | | On Windows default screen width for the command prompt (A.K.A. "DOS window") is 80 chars. `-icount' help is 87 chars wide. So make it fit. Signed-off-by: Robert Riebisch <rr@bttr-software.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6991 c046a42c-6fe2-441c-8c8c-71466251a162
* | Merge commit 'qemu-svn/trunk'Avi Kivity2009-03-291-0/+33
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'qemu-svn/trunk': (27 commits) gdbstub: Allow re-instantiation (Jan Kiszka) char: Fix closing of various char devices (Jan Kiszka) qemu-img: adding a "-F base_fmt" option to "qemu-img create -b" (Uri Lublin) block-qcow2: keep backing file format in a qcow2 extension (Uri Lublin) block: support known backing format for image create and open (Uri Lublin) Introducing qcow2 extensions (Uri Lublin) kvm: Drop kvm_patch_opcode_byte (Jan Kiszka) ROM write access for debugging (Jan Kiszka) Use the DMA api to map virtio elements. virtio-blk: use generic vectored I/O APIs (Christoph Hellwig) add qemu_iovec_init_external (Christoph Hellwig) Clean some PCI defines (Stefan Weil) Fix monitor command (screendump) (Stefan Weil) Remove nodisk_ok machine feature (Jan Kiszka) musicpal: Fix regression caused by 6839 (Jan Kiszka) gdbstub: Drop redundant memset after qemu_mallocz (Jan Kiszka) get roms more room. (Glauber Costa) new scsi-generic abstraction, use SG_IO (Christoph Hellwig) Document sun ID PROM contents Fix DMA API when handling an immediate error from block layer (Avi Kivity) ... Conflicts: qemu/hw/pc.c qemu/hw/pci.h qemu/hw/virtio.c qemu/qemu-doc.texi qemu/vl.c Signed-off-by: Avi Kivity <avi@redhat.com>
* Fix compile problems with r6884blueswir12009-03-281-1/+1
| | | | git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6885 c046a42c-6fe2-441c-8c8c-71466251a162
* Syncing documentation vs. -help vs. qemu_options tableblueswir12009-03-281-0/+1462
Try to keep documentation about command line switches, -help text and qemu_options table synchronized. In true Qemu tradition, an include file is generated from single .hx file containing all relevant information in one place. The include file is parsed once for getting the enums, another time for getopt tables and hird time for help messages. Texi documentation for the options is generated from the same .hx file. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6884 c046a42c-6fe2-441c-8c8c-71466251a162