1. 21 6月, 2011 10 次提交
  2. 19 6月, 2011 1 次提交
    • J
      kvm: x86: Save/restore FPU OP, IP and DP · 42cc8fa6
      Jan Kiszka 提交于
      These FPU states are properly maintained by KVM but not yet by TCG. So
      far we unconditionally set them to 0 in the guest which may cause
      state corruptions, though not with modern guests.
      
      To avoid breaking backward migration, use a conditional subsection that
      is only written if any of the three fields is non-zero. The guest's
      FNINIT clears them frequently, and cleared IA32_MISC_ENABLE MSR[2]
      reduces the probability of non-zero values further so that this
      subsection is not expected to restrict migration in any common scenario.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      42cc8fa6
  3. 15 6月, 2011 1 次提交
  4. 16 6月, 2011 4 次提交
  5. 15 6月, 2011 15 次提交
  6. 14 6月, 2011 9 次提交
    • K
      qcow: Avoid direct AIO callback · b11a24de
      Kevin Wolf 提交于
      bdrv_aio_* must not call the callback before returning to its caller. In qcow,
      this could happen in some error cases. This starts the real requests processing
      in a BH to avoid this situation.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      b11a24de
    • K
      qcow2: Avoid direct AIO callback · 42496d62
      Kevin Wolf 提交于
      bdrv_aio_* must not call the callback before returning to its caller. In qcow2,
      this could happen in some error cases. This starts the real requests processing
      in a BH to avoid this situation.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      42496d62
    • Y
      kvm: Enable CPU SMEP feature · f7911686
      Yang, Wei Y 提交于
      This patchset enables a new CPU feature SMEP (Supervisor Mode Execution
      Protection) in QEMU-KVM. SMEP prevents kernel from executing code in application.
      Updated Intel SDM describes this CPU feature. The document will be published soon.
      
      SMEP is identified by CPUID leaf 7 EBX[7], which is 0 before. Get the right value by query KVM kernel module, so that guest can get SMEP through CPUID.
      Signed-off-by: NYang, Wei <wei.y.yang@intel.com>
      Singed-off-by: NShan, Haitao <haitao.shan@intel.com>
      Singed-off-by: NLi, Xin <xin.li@intel.com>
      Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
      f7911686
    • B
      kvm: Add CPUID support for VIA CPU · b3baa152
      brillywu@viatech.com.cn 提交于
      When KVM is running on VIA CPU with host cpu's model, the
      feautures of VIA CPU will be passed into kvm guest by calling
      the CPUID instruction for Centaur.
      
      Signed-off-by: BrillyWu<brillywu@viatech.com.cn>
      Signed-off-by: KaryJin<karyjin@viatech.com.cn>
      Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
      b3baa152
    • M
      usb-ccid: Plug memory leak on qdev exit() · 6df658f5
      Markus Armbruster 提交于
      ccid_initfn() allocates CCIDBus dynamically, but there is no exit
      callback to free it.
      
      Fix by getting rid of the allocation.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      6df658f5
    • A
      libcacard: add libcacard.la target · 44dc0ca3
      Alon Levy 提交于
      No flag to configure is required. Instead, added a libcacard.la target that
      is not built by default, only when requested explicitly via:
      
      mkdir build
      cd build
      ../configure
      make libcacard.la
      make install-libcacard
      
      Uses libtool to do actual linking of object files and shared library, and
      installing. Tested only under linux, but supposed to work on other systems as
      well.
      
      If libtool isn't found you get a message complaining about that, only at build
      time (since it is not a default target I did not add a message at configure
      time).
      
      New build artifacts:
       .libs subdirectories (at <buildroot> and <buildroot>/libcacard)
       *.lo files (at same locations as the respective o files)
      
      Added %.lo : %.c rule that uses libtool.
      Updated clean rule to clean up those artifacts.
      Added specific rule to call dtrace with libtool wrapper (note that because of
      a current upstream dtrace bug fixed by systemtap b1568fd85 commit the -fPIC flag
      isn't actually passed on. still current dtrace+libtool produced object links fine).
      If libtool is missing any of the following targets will complain and exit 1:
       any subdir: *.lo
       root and libcacard: libcacard.la, libcacard-instsall
      
      Tested to link and load with all tracing backends.
      44dc0ca3
    • A
      configure: add libdir and --libdir · 3aa5d2be
      Alon Levy 提交于
      3aa5d2be
    • G
      usb-uhci: fix expire time initialization. · 94cc916a
      Gerd Hoffmann 提交于
      expire_time must be initialited when the guest activates the
      usb scheduler, not at device creation time.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      94cc916a
    • P
      hw/usb-ohci.c: Implement remote wakeup · 9bba1eb1
      Peter Maydell 提交于
      Implement the wakeup callback in the OHCI USBPortOps, so that when
      a downstream device wakes up it correctly causes the OHCI controller
      to come out of suspend.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      9bba1eb1