• Follow on patch will use it to determine the size of the MADT and
    other BIOS tables.
    
    Signed-off-by: Jes Sorensen <jes@sgi.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Jes Sorensen authored
     
    Browse Code »
  • Demo QemuOpts in action ;)
    
    Implementing a alternative way to specify the filename should be
    just a few lines of code now once we decided how the cmd line syntax
    should look like.
    
    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Gerd Hoffmann authored
     
    Browse Code »
  • Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Gerd Hoffmann authored
     
    Browse Code »
  • cleanup pretty simliar to the drives_table removal patch:
     - drop the table and make a linked list out of it.
     - pass around struct pointers instead of table indices.
    
    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Gerd Hoffmann authored
     
    Browse Code »
  • -drive accepts the new id= now, allowing to explicitely name your
    drives.  They will show up with that name in "info block" if specified,
    otherwise the existing namimg scheme is used to autogenerate one.
    
    There is also a new function to lookup drives by name.  Not used yet.
    The plan is to link disk drivers and drives using the drive id instead
    of passing around pointers to BlockDriveState.
    
    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Gerd Hoffmann authored
     
    Browse Code »
  • First step cleaning up the drives handling.  This one does nothing but
    removing drives_table[], still it became seriously big.
    
    drive_get_index() is gone and is replaced by drives_get() which hands
    out DriveInfo pointers instead of a table index.  This needs adaption in
    *tons* of places all over.
    
    The drives are now maintained as linked list.
    
    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Gerd Hoffmann authored
     
    Browse Code »
  • The -device switch is the users frontend to the qdev_device_add function
    added by the previous patch.
    
    Also adds a linked list where command line options can be saved.
    Use it for the new -device and for the -usbdevice and -bt switches.
    
    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Gerd Hoffmann authored
     
    Browse Code »
  • Add an 'alias' field to QEMUMachine and display it in the output of
    'qemu -M ?' with an '(aliased to foo)' suffix.
    
    Aliases can change targets in newer versions of qemu, so management tools
    may choose canonicalize machine types to ensure that if a user chooses an
    alias, that the actual machine type used will remain compatible in
    future.
    
    This is intended to mimic a symlink to a machine description file.
    
    Signed-off-by: Mark McLoughlin <markmc@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Mark McLoughlin authored
     
    Browse Code »

  • The header sys-queue.h must be #included early, otherwise at some point OS
    queue macros will be used. On OpenBSD, those don't define TAILQ_FOREACH_SAFE.
    
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
    Blue Swirl authored
     
    Browse Code »

  • This add support for switching devices into a compatibility mode
    using device properties.  Machine types can have a list of properties
    for specific devices attached to allow the easy creation of machine
    types compatible to older qemu versions.
    
    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Gerd Hoffmann authored
     
    Browse Code »
  • -S is not honored by qemu on incoming migration.  If a domain is migrated
    while paused, thus, it will start running on the remote machine; this
    is wrong.
    
    Given the trivial patch to fix this, it looks more like a thinko
    than anything else, probably dating back to the qemu-kvm merge.
    The interesting part is that the -S mechanism was in fact *used* when
    migrating (setting autostart = 0) and the incoming migration code was
    starting the VM at the end of the migration.
    
    Since I was removing the vm_start from there, I also corrected a related
    imprecision.  The code was doing a vm_stop "just in case", but we can
    be sure that the VM is not running---the vm_start call in vl.c has not
    been reached yet.  So the vm_stop is removed together with the vm_start.
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Paolo Bonzini authored
     
    Browse Code »
  • Disable the lengthy BIOS prompt for selecting a boot device by default,
    but let the user reenable it via '-boot menu=on'.
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Jan Kiszka authored
     
    Browse Code »
  • This allows to specify an exceptional boot order only for the first
    startup of the guest. After reboot, qemu will switch back to the default
    order (or what was specified via 'order='). Makes installing from CD
    images and then booting the freshly set up harddisk more handy.
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Jan Kiszka authored
     
    Browse Code »
  • Will be used by '-boot once=...', and should also help in other use
    cases.
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Jan Kiszka authored
     
    Browse Code »
  • Convert the reset handler maintenance code to TAILQ services.
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Jan Kiszka authored
     
    Browse File »
  • Move registration function for the boot_set callback handler and provide
    qemu_boot_set so that it can also be used outside the monitor code.
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Jan Kiszka authored
     
    Browse Dir »
  • This patch changes the boot command line option to the canonical format
    
     -boot [order=drives][,...]
    
    where 'drives' is using the same format as the old -boot. The format
    switch allows to add the 'menu' and 'once' options in later patches. The
    old format is still understood and will be processed at least for a
    transition time.
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Jan Kiszka authored
     
    Browse File »


  • 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>
    Markus Armbruster authored
     
    Browse Code »
  • This reverts commit 8217606e (and
    updates later added users of qemu_register_reset), we solved the
    problem it originally addressed less invasively.
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Jan Kiszka authored
     
    Browse Code »
  • During startup and after reset we have to synchronize user space to the
    in-kernel KVM state. Namely, we need to transfer the VCPU registers when
    they change due to VCPU as well as APIC reset.
    
    This patch refactors the required hooks so that kvm_init_vcpu registers
    its own per-VCPU reset handler and adds a cpu_synchronize_state to the
    APIC reset. That way we no longer depend on the new reset order (and can
    drop this disliked interface again) and we can even drop a KVM hook in
    main().
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Jan Kiszka authored
     
    Browse Code »
  • Avoid the need for slirp_is_inited by refactoring the protected
    slirp_select_* functions. This also avoids the clearing of all fd sets
    on select errors.
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Jan Kiszka authored
     
    Browse File »
  • Improve the monitor interface for adding and removing host forwarding
    rules by splitting it up in two commands and rename them to hostfwd_add
    and hostfwd_remove. Also split up the paths taken for legacy -redir
    support and the monitor add command as the latter will be extended later
    on.
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Jan Kiszka authored
     
    Browse File »
  • 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>
    Jan Kiszka authored
     
    Browse Code »
  • In order to parse multiple instances of the same param=value pair,
    introduce get_next_param_value which can pass back to string parsing
    position after reading a parameter value.
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Jan Kiszka authored
     
    Browse Code »


  • `sdl-config --cflags` defines main = SDL_main
    on some platforms. One of these platforms is
    Windows with mingw32.
    
    For those platforms, the solution already developed
    for __APPLE__ is now applied.
    
    A compiler warning (missing return value) is fixed, too.
    
    Maybe __APPLE__ no longer needs a separate check.
    
    Signed-off-by: Stefan Weil <weil@mail.berlios.de>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Stefan Weil authored
     
    Browse Code »
  • 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>
    Markus Armbruster authored
     
    Browse Code »
  • Otherwise, after migration, we end up with a much larger RSS size then we
    ought to have.
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Anthony Liguori authored
     
    Browse Code »
  • The code how it is today, is totally painful to read and keep.
    To begin with, the code is duplicated with the option rom loading
    code that linux_boot and vga are already using.
    
    This patch introduces a "bootable" state in NICInfo structure,
    that we can use to keep track of whether or not a given nic should
    be bootable, avoiding the introduction of yet another global state.
    
    With that in hands, we move the code in vl.c to hw/pc.c, and use
    the already existing infra structure to load those option roms.
    
    Error checking code suggested by Mark McLoughlin
    
    Signed-off-by: Glauber Costa <glommer@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Glauber Costa authored
     
    Browse Code »

  • Currently, we're entering migration's stage 3 when
    a treshold of 10 pages remain to be transferred in the system.
    
    This has hurt some users. However, any proposed threshold is
    arbitrary by nature, and would only shift the annoyance.
    
    The proposal of this patch is to define a max_downtime variable,
    which represents the maximum downtime a migration user is willing
    to suffer. Then, based on the bandwidth of last iteration, we
    calculate how much data we can transfer in such a window of time.
    
    Whenever we reach that value (or lower), we know is safe to enter
    stage3.
    
    This has largely improved the situation for me.
    On localhost migrations, where one would expect things to go as
    quickly as me running away from the duty of writting software for
    windows, a kernel compile was enough to get the migration stuck.
    
    It takes 20 ~ 30 iterations now.
    
    Signed-off-by: Glauber Costa <glommer@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Glauber Costa authored
     
    Browse Code »
  • vl.c contains some dead code that initialises a 'label' string with the name
    of the char device being initialised. This is unused.
    
    Signed-off-by: Amit Shah <amit.shah@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Amit Shah authored
     
    Browse Code »

  • 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>
    Eduardo Habkost authored
     
    Browse Code »
  • SDL header files can be included in two different ways:
    
    * like this: #include <SDL/SDL.h>
    * like this: #include <SDL.h>
    
    The 1st alternative is simple and works in many cases.
    
    The 2nd alternative needs sdl-config to get the
    correct compiler flags. It is the recommended way
    to write SDL includes and standard for QEMU.
    
    The patch fixes two non-standard SDL includes.
    
    Signed-off-by: Stefan Weil <weil@mail.berlios.de>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Stefan Weil authored
     
    Browse Code »

  • The function qemu_calculate_timeout() is only used when CONFIG_IOTHREAD
    is not defined. When CONFIG_IOTHREAD is defined, we have the following
    warning:
    
    vl.c:4389: warning: ‘qemu_calculate_timeout’ defined but not used
    
    This change fixes that by moving the #ifdef/#endif from main_loop()
    into qemu_calculate_timeout(). This encapsulates the logic and allow
    us to use qemu_calculate_timeout() when CONFIG_IOTHREAD is defined
    or not (suggested by Glauber Costa).
    
    Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
    Luiz Capitulino authored
     
    Browse Code »