1. 05 5月, 2016 4 次提交
    • J
      tests: Create a shared library with qemu driver · dd214b5f
      Jiri Denemark 提交于
      Currently all qemu driver tests are statically linked to qemu driver
      library, which makes it impossible to mock any API from the library.
      This patch creates a shared qemu driver library which can be used
      instead of the static one.
      
      NB we can't use libvirt_driver_qemu.so directly since it is linked with
      -module and it is supposed to be dlopened.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      dd214b5f
    • R
      bhyve: implement domainShutdown · 9e0bb1c8
      Roman Bogorodskiy 提交于
      Bhyve supports ACPI shutdown by issuing SIGTERM signal to a bhyve
      process.
      
      Add the bhyveDomainShutdown() function and virBhyveProcessShutdown()
      helper function that just sends SIGTERM to VM's bhyve process. If
      a guest supports ACPI shutdown then process will be terminated and
      this event will be noticed by the bhyve monitor code that will handle
      setting proper status and clean up VM's resources by calling
      virBhyveProcessStop().
      9e0bb1c8
    • R
      bhyve: drop virProcessKillPainfully() from destroy · c35c2fe7
      Roman Bogorodskiy 提交于
      Current implementation of domainDestroy for bhyve calls
      virProcessKillPainfully() for the bhyve process and then
      executes "bhyvectl --destroy".
      
      This is wrong for two reasons:
      
       * bhyvectl --destroy alone is sufficient because it terminates
         the process
       * virProcessKillPainfully() first sends SIGTERM and after few
         attempts sends SIGKILL. As SIGTERM triggers ACPI shutdown that
         we're not interested in, it creates an unwanted side effect in
         domainDestroy.
      
      Also, destroy monitor only after "bhyvectl --destroy" command succeeded
      to avoid a case when the command fails and domain remains running, but
      not being monitored anymore.
      c35c2fe7
    • E
      build: fix 32-bit build of admin · a4ef8057
      Eric Blake 提交于
      We can't guarantee which 64-bit type will be used in an RPC struct;
      while %lu worked on 64-bit Linux, that won't always be the type
      used on all 64-bit platforms; and certainly is not right for 32-bit:
      
      admin.c: In function 'adminDispatchClientGetInfo':
      admin.c:265:25: error: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'uint64_t {aka long long unsigned int}' [-Werror=format=]
      Signed-off-by: NEric Blake <eblake@redhat.com>
      a4ef8057
  2. 04 5月, 2016 18 次提交
  3. 03 5月, 2016 18 次提交