1. 13 3月, 2012 3 次提交
    • L
      qemu-ga: add guest-suspend-hybrid · 95f4f404
      Luiz Capitulino 提交于
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      95f4f404
    • L
      qemu-ga: add guest-suspend-ram · fbf42210
      Luiz Capitulino 提交于
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      fbf42210
    • L
      qemu-ga: add guest-suspend-disk · 11d0f125
      Luiz Capitulino 提交于
      As the command name implies, this command suspends the guest to disk.
      
      The suspend operation is implemented by two functions: bios_supports_mode()
      and guest_suspend(). Both functions are generic enough to be used by
      other suspend modes (introduced by next commits).
      
      Both functions will try to use the scripts provided by the pm-utils
      package if it's available. If it's not available, a manual method,
      which consists of directly writing to '/sys/power/state', will be used.
      
      To reap terminated children, a new signal handler is installed in the
      parent to catch SIGCHLD signals and a non-blocking call to waitpid()
      is done to collect their exit statuses. The statuses, however, are
      discarded.
      
      The approach used to query the guest for suspend support deserves some
      explanation. It's implemented by bios_supports_mode() and shown below:
      
        qemu-ga
           |
       create pipe
           |
         fork()
           -----------------
           |               |
           |               |
           |             fork()
           |               --------------------------
           |               |                        |
           |               |                        |
           |               |               exec('pm-is-supported')
           |               |
           |              wait()
           |       write exit status to pipe
           |              exit
           |
        read pipe
      
      This might look complex, but the resulting code is quite simple.
      The purpose of that approach is to allow qemu-ga to reap its children
      (semi-)automatically from its SIGCHLD handler.
      
      Implementing this the obvious way, that's, doing the exec() call from
      the first child process, would force us to introduce a more complex way
      to reap qemu-ga's children. Like registering PIDs to be reaped and
      having a way to wait for them when returning their exit status to
      qemu-ga is necessary. The approach explained above avoids that complexity.
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      11d0f125
  2. 11 3月, 2012 8 次提交
  3. 10 3月, 2012 3 次提交
    • A
      Merge remote-tracking branch 'stefanha/trivial-patches' into staging · dac6b1b2
      Anthony Liguori 提交于
      * stefanha/trivial-patches:
        configure: Quote the configure args printed in config.log
        osdep: Remove local definition of macro offsetof
        libcacard: Spelling and grammar fixes in documentation
        Spelling fixes in comments (it's -> its)
        vnc: Add break statement
        libcacard: Use format specifier %u instead of %d for unsigned values
        Fix sign of sscanf format specifiers
        block/vmdk: Fix warning from splint (comparision of unsigned value)
        qmp: Fix spelling fourty -> forty
        qom: Fix spelling in documentation
        sh7750: Remove redundant 'struct' from MemoryRegionOps
      dac6b1b2
    • A
      Merge remote-tracking branch 'qemu-kvm/uq/master' into staging · bf75fec1
      Anthony Liguori 提交于
      * qemu-kvm/uq/master:
        kvm: fill in padding to help valgrind
        kvm: x86: Add user space part for in-kernel i8254
        kvm: Add kvm_has_pit_state2 helper
        i8254: Open-code timer restore
        i8254: Factor out base class for KVM reuse
      bf75fec1
    • A
      Merge remote-tracking branch 'kraxel/usb.42' into staging · 9f1d43b1
      Anthony Liguori 提交于
      * kraxel/usb.42:
        xhci: fix port status
        xhci: fix control xfers
        usb: add shortcut for control transfers
        usb-host: enable pipelineing for bulk endpoints.
        usb: add pipelining option to usb endpoints
        usb: queue can have async packets
        uhci_fill_queue: zap debug printf
        usb: add USB_RET_IOERROR
        usb: return BABBLE rather then NAK when we receive too much data
        usb-ehci: Cleanup itd error handling
        usb-ehci: Fix and simplify nakcnt handling
        usb-ehci: Remove dead nakcnt code
        usb-ehci: Fix cerr tracking
        usb-ehci: Any packet completion except for NAK should set the interrupt
        usb-ehci: Rip the queues when the async or period schedule is halted
        usb-ehci: Drop cached qhs when the doorbell gets rung
        usb-ehci: always call ehci_queues_rip_unused for period queues
        usb-ehci: split our qh queue into async and periodic queues
        usb-ehci: Never follow table entries with the T-bit set
        usb-redir: Set ep type and interface
      9f1d43b1
  4. 09 3月, 2012 2 次提交
  5. 08 3月, 2012 6 次提交
  6. 07 3月, 2012 18 次提交