1. 20 6月, 2012 1 次提交
  2. 18 6月, 2012 15 次提交
  3. 16 6月, 2012 1 次提交
    • D
      Add event notification for guest balloon changes · 973603a8
      Daniel P. Berrange 提交于
      After setting a balloon target value, applications have to
      continually poll 'query-balloon' to determine whether the
      guest has reacted to this request. The virtio-balloon backend
      knows exactly when the guest has reacted though, and thus it
      is possible to emit a JSON event to tell the mgmt application
      whenever the guest balloon changes.
      
      This introduces a new 'qemu_balloon_changed()' API which is
      to be called by balloon driver backends, whenever they have
      a change in balloon value. This takes the 'actual' balloon
      value, as would be found in the BalloonInfo struct.
      
      The qemu_balloon_change API emits a JSON monitor event which
      looks like:
      
        {"timestamp": {"seconds": 1337162462, "microseconds": 814521},
         "event": "BALLOON_CHANGE", "data": {"actual": 944766976}}
      
      * balloon.c, balloon.h: Introduce qemu_balloon_changed() for
        emitting balloon change events on the monitor
      * hw/virtio-balloon.c: Invoke qemu_balloon_changed() whenever
        the guest changes the balloon actual value
      * monitor.c, monitor.h: Define QEVENT_BALLOON_CHANGE
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Acked-by: NAmit Shah <amit.shah@redhat.com>
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      973603a8
  4. 15 6月, 2012 20 次提交
  5. 12 6月, 2012 2 次提交
  6. 11 6月, 2012 1 次提交
    • J
      kvm: i8254: Fix conversion of in-kernel to userspace state · 0cdd3d14
      Jan Kiszka 提交于
      Due to a offset between the clock used to generate the in-kernel
      count_load_time (CLOCK_MONOTONIC) and the clock used for processing this
      in userspace (vm_clock), reading back the output of PIT channel 2 via
      port 0x61 was broken. One use cases that suffered from it was the CPU
      frequency calibration of SeaBIOS, which also affected IDE/AHCI timeouts.
      
      This fixes it by calibrating the offset between both clocks on
      kvm_pit_get and adjusting the kernel value before saving it in the
      userspace state. As the calibration only works while the vm_clock is
      running, we cache the in-kernel state across stopped phases.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      0cdd3d14