1. 17 Mar, 2011 1 commit
  2. 15 Feb, 2011 1 commit
    • Kamala Narasimhan's avatar
      libxl: disk specification interface change · ad48e4b3
      Kamala Narasimhan authored
      Currently we pile all the backend and format information pertaining to
      disk option in a single enum.  This check-in separates the two and
      uses two enums, one for disk format and another for disk backend.
      This helps clearly differentiate between disk format and backend
      within the implementation and also helps cleanup the code in this area
      in preparation for the impending parser revamping to be done post 4.1.
      Along with separating format and backend, this check-in also removes
      unwanted types and renames variables in the disk interface and fixes
      the code affected by the interface changes.
      
      In specific, here are the disk interface changes made - In
      libxl_device_disk structure physpath was renamed to pdev_path,
      virtpath was renamed to vdev, phystype was removed and replaced with
      backend and format enums.  Also previously a single enum
      libxl_disk_phystype held the values for qcow, qcow2, vhd, aio, file,
      phy, empty and that got refactored into two enums, libxl_disk_format
      to hold unknown, qcow, qcow2, vhd, raw, empty and libxl_disk_backend
      to hold unknown, phy, tap and qdisk.
      Signed-off-by: default avatarKamala Narasimhan <kamala.narasimhan@citrix.com>
      Acked-by: default avatarIan Jackson <ian.jackson@eu.citrix.com>
      Committed-by: default avatarIan Jackson <ian.jackson@eu.citrix.com>
      ad48e4b3
  3. 11 Jan, 2011 1 commit
    • Gianni Tedesco's avatar
      libxl: Introduce libxl_domain_create_new() and libxl_domain_create_restore() · 082c4062
      Gianni Tedesco authored
      These functions are introduced as the new way to create domains with libxl
      they prevent the callers from need to know about low-level implementation
      details such as:
       - libxl_domain_make()
       - libxl_domain_build()
       - libxl_domain_restore()
       - when to attach the console
       - how to start the device model
      
      Above mentioned functions and all API's for the device model, which are now
      redundant, have been made internal to libxl and no longer accessible.
      
      The ocaml binding for libxl has not been properly updated to reflect the
      changes, wrappers for the old functions have been removed but the code to wrap
      the new functions has not been added.
      Signed-off-by: default avatarGianni Tedesco <gianni.tedesco@citrix.com>
      Committed-by: default avatarIan Jackson <ian.jackson@eu.citrix.com>
      082c4062
  4. 06 Jan, 2011 4 commits
  5. 10 Dec, 2010 1 commit
  6. 23 Nov, 2010 1 commit
    • Ian Campbell's avatar
      ocaml: install built modules · 986d69e0
      Ian Campbell authored
      Previously the install target was having no effect because it ended up
      calling the default target in the subdir Makefile instead of the
      install target.
      
      Resolve this by tying the tools/ocaml Makefiles into the generic
      handling done by tools/Rules.mk.
      
      Other changes arising in one way or another from this:
      - Add libs/xl/META.in
      - Update .hgignore for META files
      - Create leading directories
      - Remove existing module before installation in install targer
        (worksaround what appears to be a quirk of "ocamlfind install")
      - Use the globally defined $(DESTDIR)
      - Move "ocamlfind printfconf destdir" to a common variable,
        repurposing exising unused OCAMLDESTDIR, incorporating $(DESTDIR) at
        the same time.
      - Drop a few unused variabe definitions (mainly to avoid deciding if
        $(DESTDIR) made sense for them or not.
      - Pass -destdir to ocamlfind in uninstall target for symmetry with
        install target.
      Signed-off-by: default avatarIan Campbell <ian.campbell@citrix.com>
      Signed-off-by: default avatarIan Jackson <ian.jackson@eu.citrix.com>
      986d69e0
  7. 28 Oct, 2010 1 commit
  8. 08 Oct, 2010 1 commit
  9. 16 Sep, 2010 1 commit
    • Gianni Tedesco's avatar
      libxl: change IDL to export a saner interface for upcoming language bindings · 747f8333
      Gianni Tedesco authored
      Firstly remove an anonymous union in libxl_device_pci structure which
      was making auto-generating language bindings more complicated than
      necessary and exporting random bits of low level ABI that libxl that
      would rather hide anyway. There is a corresponding (untested) change to
      the ocaml binding which maintains previous ml API.
      
      Secondly make the libxl_file_reference type a Builtin. This is a
      'semantic
      correctness' issue in that libxl ABI/API won't change. But it makes it
      so that when the IDL is used to generate language bindings that a
      file_reference type is not exported.
      
      Also implement a Numeric type which all integers are derived from. Make
      sure a boolean signed/unsigned attribute is set accordingly. This is
      required to allow language bindings to correctly handle the sign bit in
      environments with arbitrarily long integers.
      Signed-off-by: default avatarGianni Tedesco <gianni.tedesco@citrix.com>
      Acked-by: default avatarIan Campbell <ian.campbell@citrix.com>
      Signed-off-by: default avatarIan Jackson <ian.jackson@eu.citrix.com>
      747f8333
  10. 10 Sep, 2010 1 commit
  11. 02 Sep, 2010 1 commit
  12. 16 Aug, 2010 1 commit
    • Stefano Stabellini's avatar
      tools: xenconsole[d] and libxl: multiple console support · c8b0316e
      Stefano Stabellini authored
      This patch implements the new protocol for handling pv consoles and
      emulated serials as described in the document docs/misc/console.txt.
      
      The changes are:
      
      - xenconsoled: do not write the pty under serial in xenstore if
      xenconsoled is handling a consolepath;
      
      - xenconsole: implement support for an explicit console type parameter;
      the parameter can be "pv", to specify that the user wants to
      connect to a pv console, or "serial", to specify that the user wants to
      connect to an emulated serial. If the type parameter hasn't been
      specified be the user, xenconsole tries to guess which type of console
      it has to connect to, defaulting to pv console for pv guests and
      emulated serial for hvm guests.
      
      - xenconsole: use the new xenstore paths;
      
      - libxl: rename libxl_console_constype to libxl_console_consback:
      constype is used to to specify whether qemu or xenconsoled provides the
      backend, so I renamed it to libxl_console_consback to make it more
      obvious that we are talking about backends;
      
      - libxl: add a new libxl_console_constype to specify if the console is
      an emulated serial or a pv console;
      
      - libxl: support the new xenconsole "type" command line parameter;
      
      - libxl: use the "output" node under console in xenstore to tell qemu
      where do we want the output of this pv console to go;
      
      - remove the legacy "serialpath" from xenconsoled altogether
      Signed-off-by: default avatarStefano Stabellini <stefano.stabellini@eu.citrix.com>
      Signed-off-by: default avatarIan Jackson <ian.jackson@eu.citrix.com>
      
      
      Also: update the QEMU_TAG to pull in the qemu part of these changes.
      Signed-off-by: default avatarIan Jackson <ian.jackson@eu.citrix.com>
      c8b0316e
  13. 10 Aug, 2010 5 commits
  14. 28 Jul, 2010 1 commit
  15. 14 Jul, 2010 2 commits
  16. 13 Jul, 2010 3 commits
  17. 06 Jul, 2010 2 commits
  18. 29 Jun, 2010 1 commit
  19. 28 Jun, 2010 1 commit
  20. 24 Jun, 2010 1 commit
  21. 20 May, 2010 1 commit
    • Keir Fraser's avatar
      ocaml: fix ocaml xc compilation on 32 bit · cc4c621d
      Keir Fraser authored
        cc1: warnings being treated as errors
        xc_lib.c: In function 'xc_domain_get_pfn_list':
        xc_lib.c:1217: error: assignment from incompatible pointer type
      
      The XEN_DOMCTL_getmemlist interface has been 32/64 invariante since
      13594:30af6cfdb05c and uint64_t is now the correct type for the PFN
      list on all word sizes.
      Signed-off-by: default avatarIan Campbell <ian.campbell@citrix.com>
      cc4c621d
  22. 17 May, 2010 1 commit
  23. 07 May, 2010 5 commits
  24. 06 May, 2010 2 commits