1. 14 1月, 2013 6 次提交
  2. 12 1月, 2013 2 次提交
  3. 11 1月, 2013 12 次提交
  4. 10 1月, 2013 6 次提交
    • G
      qemu: add usb-net caps flag · fc66c160
      Guannan Ren 提交于
      QEMU_CAPS_DEVICE_USB_NET /* -device usb-net */
      fc66c160
    • G
      network: fix typos and docs · 29d37818
      Guannan Ren 提交于
      29d37818
    • G
      qemu: add usb-serial support · e3a04455
      Guannan Ren 提交于
      Add an optional 'type' attribute to <target> element of serial port
      device. There are two choices for its value, 'isa-serial' and
      'usb-serial'. For backward compatibility, when attribute 'type' is
      missing the 'isa-serial' will be chosen as before.
      
      Libvirt XML sample
      
          <serial type='pty'>
            <target type='usb-serial' port='0'/>
            <address type='usb' bus='0' port='1'/>
          </serial>
      
      qemu commandline:
      
      qemu ${other_vm_args}              \
          -chardev pty,id=charserial0    \
          -device usb-serial,chardev=charserial0,id=serial0,bus=usb.0,port=1
      e3a04455
    • G
      qemu: add usb-serial caps flag · f8d478b6
      Guannan Ren 提交于
      QEMU_CAPS_DEVICE_USB_SERIAL /* -device usb-serial */
      f8d478b6
    • M
      qemu_agent: Remove agent reference only when disposing it · f2a4e5f1
      Michal Privoznik 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=892079
      
      With current code, if user calls virDomainPMSuspendForDuration()
      followed by virDomainDestroy(), the former API checks for qemu agent
      presence, which will evaluate as true (if agent is configured). While
      talking to qemu agent, the qemu driver is unlocked, so the latter API
      starts executing.  However, if machine dies meanwhile, libvirtd gets
      EOF on the agent socket and qemuProcessHandleAgentEOF() is called. The
      handler clears reference to qemu agent while the destroy API already
      holding a reference to it. This leads to NULL dereferencing later in
      the code. Therefore, the agent pointer should be set to NULL only if
      we are the exclusive owner of it.
      f2a4e5f1
    • E
      maint: fix comment typo · 70345318
      Eric Blake 提交于
      While OOM can have knock-on effects that trash a system, generally
      the first symptom is one of memory thrashing.
      
      * src/qemu/qemu_cgroup.c (qemuSetupCgroup): Reword slightly.
      70345318
  5. 09 1月, 2013 5 次提交
  6. 08 1月, 2013 9 次提交
    • J
      util: Check for NULL 'dev' on input to usbFreeDevice · fef8d1a0
      John Ferlan 提交于
      Added 'usbFreeDevice' to the useless_free_options list in cfg.mk
      fef8d1a0
    • E
      build: avoid compiler warning · 0a5eaf0d
      Eric Blake 提交于
      gcc 4.1.2 on RHEL 5 warned:
      conf/network_conf.c:3136: warning: 'foundIdx' may be used uninitialized in this function
      
      The warning is spurious, but initializing the variable doesn't hurt.
      
      * src/conf/network_conf.c (virNetworkDefUpdateDNSHost): Silence
      unused variable warning.
      0a5eaf0d
    • E
      maint: avoid potential promotion issues with [ug]id_t · 798ff667
      Eric Blake 提交于
      POSIX does not guarantee whether uid_t and gid_t are signed or
      unsigned, nor does it guarantee whether they are smaller, same
      size, or larger than int (or even the same size as one another).
      Therefore, it is possible to have platforms where '(uid_t)-1==-1'
      is false or where 'uid = gid = -1' sets uid to the wrong value,
      thanks to integer promotion rules.  The only portable way to use
      the placeholder value of these two types is to always use a cast.
      Thankfully, the issue is mostly theoretical - sanlock only
      compiles on Linux for now, and on Linux, these types do not
      suffer from strange promotion problems.
      
      * src/locking/lock_driver_sanlock.c
      (virLockManagerSanlockSetupLockspace, virLockManagerSanlockInit)
      (virLockManagerSanlockCreateLease): Cast -1 to proper type before
      comparing with uid_t or gid_t.
      798ff667
    • M
      qemu: Relax hard RSS limit · 3c83df67
      Michal Privoznik 提交于
      Currently, if there's no hard memory limit defined for a domain,
      libvirt tries to calculate one, based on domain definition and magic
      equation and set it upon the domain startup. The rationale behind was,
      if there's a memory leak or exploit in qemu, we should prevent the
      host system trashing. However, the equation was too tightening, as it
      didn't reflect what the kernel counts into the memory used by a
      process. Since many hosts do have a swap, nobody hasn't noticed
      anything, because if hard memory limit is reached, process can
      continue allocating memory on a swap. However, if there is no swap on
      the host, the process gets killed by OOM killer. In our case, the qemu
      process it is.
      
      To prevent this, we need to relax the hard RSS limit. Moreover, we
      should reflect more precisely the kernel way of accounting the memory
      for process. That is, even the kernel caches are counted within the
      memory used by a process (within cgroups at least). Hence the magic
      equation has to be changed:
      
        limit = 1.5 * (domain memory + total video memory) + (32MB for cache
                per each disk) + 200MB
      3c83df67
    • J
      storage: fix leak in virStorageBackendLogicalMakeVol · afc4631b
      Ján Tomko 提交于
      Use regfree instead of VIR_FREE.
      afc4631b
    • J
      S390: Enable SCLP Console in QEMU driver · db2b6861
      J.B. Joret 提交于
      This is the QEMU backend code for the SCLP console support.
      It includes SCLP capability detection, QEMU command line generation
      and a test case.
      Signed-off-by: NJ.B. Joret <jb@linux.vnet.ibm.com>
      Signed-off-by: NViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
      db2b6861
    • J
      S390: Add SCLP console front end support · d760255d
      J.B. Joret 提交于
      The SCLP console is the native console type for s390 and is preferred
      over the virtio console as it doesn't require special drivers and
      is more efficient. Recent versions of QEMU come with SCLP support
      which is hereby enabled.
      
      The new target types 'sclp' and 'sclplm' can be used to specify a
      SCLP console. Adding documentation, domain schema and XML processing
      support.
      Signed-off-by: NJ.B. Joret <jb@linux.vnet.ibm.com>
      Signed-off-by: NViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
      d760255d
    • D
      Rename lxc_protocol.x to lxc_monitor_protocol.x · 014afe65
      Daniel P. Berrange 提交于
      To avoid confusion between the LXC driver <-> controller
      monitor RPC protocol and the libvirt-lxc.so <-> libvirtd public
      RPC protocol, rename the former to lxc_monitor_protocol.x
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      014afe65
    • D
      Add internal APIs for dealing with namespaces · 5f669ea9
      Daniel P. Berrange 提交于
      Add some APIs for acquiring namespace file descriptors and
      switching namespaces
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      5f669ea9