1. 26 4月, 2013 31 次提交
  2. 25 4月, 2013 9 次提交
    • A
      monitor: introduce query-command-line-options · 1f8f987d
      Amos Kong 提交于
      Libvirt has no way to probe if an option or property is supported,
      This patch introduces a new qmp command to query command line
      option information. hmp command isn't added because it's not needed.
      Signed-off-by: NAmos Kong <akong@redhat.com>
      CC: Luiz Capitulino <lcapitulino@redhat.com>
      CC: Osier Yang <jyang@redhat.com>
      CC: Anthony Liguori <aliguori@us.ibm.com>
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      1f8f987d
    • C
      virtio-ccw: Check indicators location. · 7c486976
      Cornelia Huck 提交于
      If a guest neglected to register (secondary) indicators but still runs
      with notifications enabled, we might end up writing to guest zero;
      avoid this by checking for valid indicators and only writing to the
      guest and generating an interrupt if indicators have been setup.
      
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NCornelia Huck <cornelia.huck@de.ibm.com>
      7c486976
    • M
      pc: Kill the "use flash device for BIOS unless KVM" misfeature · 9953f882
      Markus Armbruster 提交于
      Use of a flash memory device for the BIOS was added in series "[PATCH
      v10 0/8] PC system flash support", commit 4732dcaf..1b89fafe, v1.1.
      
      Flash vs. ROM is a guest-visible difference.  Thus, flash use had to
      be suppressed for machine types pc-1.0 and older.  This was
      accomplished by adding a dummy device "pc-sysfw" with property
      "rom_only":
      
      * Non-zero rom_only means "use ROM".  Default for pc-1.0 and older.
      * Zero rom_only means "maybe use flash".  Default for newer machines.
      
      Not only is the dummy device ugly, it was also retroactively added to
      the older machine types!  Fortunately, it's not guest-visible (thus no
      immediate guest ABI breakage), and has no vmstate (thus no immediate
      migration breakage).  Breakage occurs only if the user unwisely
      enables flash by setting rom_only to zero.  Patch review FAIL #1.
      
      Why "maybe use flash"?  Flash didn't (and still doesn't) work with
      KVM.  Therefore, rom_only=0 really means "use flash, except when KVM
      is enabled, use ROM".  This is a Bad Idea, because it makes enabling/
      disabling KVM guest-visible.  Patch review FAIL #2.
      
      Aside: it also precludes migrating between KVM on and off, but that's
      not possible for other reasons anyway.
      
      Fix as follows:
      
      1. Change the meaning of rom_only=0 to mean "use flash, no ifs, buts,
      or maybes" for pc-i440fx-1.5 and pc-q35-1.5.  Don't change anything
      for older machines (to remain bug-compatible).
      
      2. Change the default value from 0 to 1 for these machines.
      Necessary, because 0 doesn't work with KVM.  Once it does, we can flip
      the default back to 0.
      
      3. Don't revert the retroactive addition of device "pc-sysfw" to older
      machine types.  Seems not worth the trouble.
      
      4. Add a TODO comment asking for device "pc-sysfw" to be dropped once
      flash works with KVM.
      
      Net effect is that you get a BIOS ROM again even when KVM is disabled,
      just like for machines predating the introduction of flash.
      
      To get flash instead, use "--global pc-sysfw.rom_only=0".
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-id: 1365780303-26398-4-git-send-email-armbru@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      9953f882
    • M
      pc: Split pc_init_pci_1_0() off pc_init_pci_1_2() · 6fd028f6
      Markus Armbruster 提交于
      Just to make the next commit easier to review.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-id: 1365780303-26398-3-git-send-email-armbru@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      6fd028f6
    • M
      pc: Inline pc_init_pci_1_3() into pc_init_pci_1_2() · 36afbc51
      Markus Armbruster 提交于
      Just to make the commit after next easier to review.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-id: 1365780303-26398-2-git-send-email-armbru@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      36afbc51
    • A
      Merge remote-tracking branch 'alon/libcacard_ccid.1' into staging · 1bfffe21
      Anthony Liguori 提交于
      # By Alon Levy (15) and others
      # Via Alon Levy
      * alon/libcacard_ccid.1: (28 commits)
        libcacard/cac: change big switch functions to single return point
        dev-smartcard-reader: empty implementation for Mechanical (fail correctly)
        libcacard: move atr setting from macro to function
        libcacard/vreader: add debugging messages for apdu
        dev-smartcard-reader: copy atr protocol to ccid parameters
        dev-smartcard-reader: change default protocol to T=0
        dev-smartcard-reader: define structs for CCID_Parameter internals
        ccid-card-passthru, dev-smartcard-reader: add debug environment variables
        ccid-card-passthru: add atr check
        libcacard: change default ATR
        dev-smartcard-reader: reuse usb.h definitions
        dev-smartcard-reader: support windows guest
        dev-smartcard-reader: remove aborts (never triggered, but just in case)
        dev-smartcard-reader: nicer debug messages
        dev-smartcard-reader: white space fixes
        libcacard: remove default libcoolkey loading
        libcacard: remove sql: prefix
        libcacard: teach vscclient to use GMainLoop for portability
        libcacard: vscclient to use QemuThread for portability
        libcacard: split vscclient main() from socket reading
        ...
      
      Message-id: 921423767.1475937.1366790789930.JavaMail.root@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      1bfffe21
    • P
      build: include config-{, all-}devices.mak after defining CONFIG_SOFTMMU and CONFIG_USER_ONLY · f3aa844b
      Paolo Bonzini 提交于
      Moving the inclusions closer to Makefile, and before rules.mak, makes
      Makefile and Makefile.target more consistent with each other.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Tested-by: NMarkus Armbruster <armbru@redhat.com>
      Message-id: 1366102238-12374-1-git-send-email-pbonzini@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      f3aa844b
    • K
      virtio: drop unused function prototypes. · fca0a70c
      KONRAD Frederic 提交于
      This removes the unused prototypes in virtio.h.
      Signed-off-by: NKONRAD Frederic <fred.konrad@greensocs.com>
      Message-id: 1366791683-5350-8-git-send-email-fred.konrad@greensocs.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      fca0a70c
    • K
      virtio: cleanup: init and exit function. · 6a1a8cc7
      KONRAD Frederic 提交于
      This clean the init and the exit functions and rename virtio_common_cleanup
      to virtio_cleanup.
      Signed-off-by: NKONRAD Frederic <fred.konrad@greensocs.com>
      Message-id: 1366791683-5350-7-git-send-email-fred.konrad@greensocs.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      6a1a8cc7