1. 20 8月, 2009 2 次提交
    • M
      Fix phypOpen() escape_specialcharacters · 40d46934
      Mattias Bolte 提交于
      Matthias correctly points out that escape_specialcharaters() takes a
      length, and since we are now malloc()'ing string in phypOpen instead of
      making it a static array, we can't use sizeof(string) anymore.  Calculate
      the proper strlen and then use that both to allocate the string and also
      pass it to escape_specialcharacters().
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      40d46934
    • M
      Power Hypervisor: fix potential segfault · 1aa16833
      Mattias Bolte 提交于
      I came across this line in the phypOpen function:
      
      char string[strlen(conn->uri->path)];
      
      Here the path part of the given URI is used without checking it for
      NULL, this can cause a segfault as strlen expects a string != NULL.
      Beside that uuid_db and connection_data leak in case of an error.
      
      In this line
      
      conn->uri->path = string;
      
      the original path of the URI leaks. The patch adds a VIR_FREE call
      before setting the new path.
      
      The attached patch is compile-tested but I don't have a Power
      Hypervisor installation at hand to test it for real.
      
      Matthias
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      1aa16833
  2. 11 8月, 2009 1 次提交
  3. 25 7月, 2009 1 次提交
    • D
      Fix misc build problems due to new drivers · 484640ea
      Daniel P. Berrange 提交于
      * autobuild.sh: Disable esx/phyp build on mingw32
      * configure.in: Fix handling of --without-phyp so it actually works
      * libvirt.spec.in: Add missing interface.rng
      * mingw32-libvirt.spec.in: Disable phyp/esx drivers
      * src/phyp/phyp_driver.c: Fix missing i18n of error messages
      484640ea
  4. 24 7月, 2009 1 次提交
    • E
      First version of the Power Hypervisor driver · a7a82f98
      Eduardo Otubo 提交于
      Features supported:
      - Connects to HMC/VIOS or IVM systems.
      - Life cycle commands (resume and shutdown).
      - dumpxml
      - 'list' and 'list --all'
      
      What is being implemented:
      - better and centralized control for UUID
      - definexml
      - CPU management commands
      
      * src/domain_conf.c src/domain_conf.h: first version of the driver
      * configure.in src/Makefile.am include/libvirt/virterror.h
        src/domain_conf.[ch] src/libvirt.c src/virterror.c: glue the driver
        in the general framework
      a7a82f98