Commit Graph
159 Commits
Author SHA1 Message Date
Stefano Stabellini ce8ffdb551 tools: xenconsole[d] and libxl: multiple console support
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: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>


Also: update the QEMU_TAG to pull in the qemu part of these changes.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
2010-08-16 13:32:04 +01:00
Keir Fraser 55a2e36cbc x86: Add -fno-exceptions to list of possibly-supported CFLAGS for embedded targets.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-07-25 22:20:47 +01:00
Keir Fraser afb0532ff0 build: Make all GIT download URLs depend correctly on GIT_HTTP={y,n}
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-07-21 09:02:10 +01:00
Ian Jackson 827f7fe627 update QEMU_TAG to 833e7e9a4c95739429dc0c803bbbf2346f9897fd 2010-07-09 18:49:12 +01:00
Ian Jackson 7478722bee update QEMU_TAG to add968aaf68cb57257428f8cfadb209f2614a6d8 2010-07-02 18:04:54 +01:00
Ian Jackson 7237f39cb3 update QEMU_TAG to 109ed219afc4be5cc5c22f912bb125d1fb102bb2 2010-06-29 15:09:59 +01:00
Keir Fraser 483ed98e11 Update QEMU_TAG to 6392763643311272590ef5c6f75ba11d5b132585 2010-06-10 08:25:10 +01:00
Keir Fraser 566a51154e tools: fix install bash-completion files to non-default locations.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
2010-06-09 07:21:32 +01:00
Keir Fraser da923a6fff Bash completion scripts go to /etc/bash_completion.d/
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-06-04 10:09:11 +01:00
Keir Fraser 5cc436c1d2 libxc: eliminate static variables, use xentoollog; API change
This patch eliminate the global variables in libxenctrl (used for
logging and error reporting).

Instead the information which was in the global variables is now in a
new xc_interface* opaque structure, which xc_interface open returns
instead of the raw file descriptor; furthermore, logging is done via
xentoollog.

There are three new parameters to xc_interface_open to control the
logging, but existing callers can just pass "0" for all three to get
the old behaviour.

All libxc callers have been adjusted accordingly.

Also update QEMU_TAG for corresponding qemu change.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
2010-05-28 09:30:19 +01:00
Keir Fraser 9cdfe48f9a Update QEMU_TAG to 805ed3b20492d2f4bb465bfda65cedd286e23209 2010-05-28 08:09:38 +01:00
Keir Fraser eb8d759136 ocaml: NetBSD support and general CFLAGS cleanup
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-05-07 19:08:55 +01:00
Keir Fraser a4c0834951 ocaml: Build components by default on Linux if toolchain installed.
Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
2010-05-06 11:10:02 +01:00
Keir Fraser 5469342ba3 ocaml: Build ocaml components if configured (default to off).
Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
2010-05-06 11:07:11 +01:00
Keir Fraser 3c82abc294 ocaml: remove hook to external repository.
Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
2010-05-06 11:06:08 +01:00
Keir Fraser 9136a919b1 xl: Add basic bash completion for xl command.
Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
2010-05-04 11:48:10 +01:00
Keir Fraser a40d47a79b Update QEMU_TAG to 01626771cf2e9285fbfddcbded2820fc77745e4b 2010-05-04 11:07:06 +01:00
Keir Fraser fec5d09df4 Update QEMU_TAG to b5160622517fb2d16d0836172a2e34633c9d94bf 2010-04-13 12:45:51 +01:00
Keir Fraser 0273e627ed Enable debug=y by default in the build.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-04-06 07:16:47 +01:00
Keir Fraser 5711a484af Update Xen version to 4.0.0-rc8 2010-03-26 10:29:38 +00:00
Keir Fraser 6e4406161b Update QEMU_TAG to f1d909f0f854194f5a40d850886d1413fb8b63c2 2010-03-25 07:40:40 +00:00
Keir Fraser 11c3ebfd58 Update Xen version to 4.0.0-rc7 2010-03-23 07:31:48 +00:00
Keir Fraser 3e5c1b3af9 Update QEMU_TAG to 73cef2cca413c17f314724c66194315038ea66c3 2010-03-23 07:29:51 +00:00
Keir Fraser 978f36d60a Fix vcpu hotplug bug: transfer vcpu_avail hex string to qemu
Currently qemu has a bug: When maxvcpus > 64, qemu will get wrong
vcpu bitmap (s->cpus_sts[i]) since it only get bitmap from a long
variable.

This patch, cooperate with another qemu patch, is to fix this bug.
This patch transfer a vcpu_avail string in a hex string format, so
that at qemu side it's more easier to get vcpu bitmap from hex string,
especially when many vcpus, like more than 64.

(Also update QEMU_TAG for matching qemu-side update)

Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
2010-03-20 07:35:04 +00:00
Keir Fraser 19db7b01e2 Update Xen version to 4.0.0-rc6 2010-03-09 18:18:05 +00:00
Keir Fraser 17878b9031 Disable debug build by default.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2010-03-09 10:00:37 +00:00
Keir Fraser b104c3762d Replace config file parser for "xl"
This provides a replacement config file parser for "xl" based on bison
and flex.

Benefits:
  * proper error reporting with line numbers
  * parser can understand nearly all "xm" configuration files directly
     (doesn't understand Python code but should do everything else)
  * parser also understands the ;-infested "xl" style files
  * removes the dependency on libconfig
  * better checking for certain kinds of mistakes
  * eliminates the strange "massage file and try again" code

This is intended to support all config files currently supported by
"xl" and almost all files supported by "xm".  (NB that whether a
feature works depends on the implementation of that feature in
xl/libxl of course.)

This patch also introduces a new library "libxlutil" which is mainly
for the benefit of "xl".  Users of libxl do not need to use libxlutil,
but they can do so if they want to parse "xl" files without being
"xl".

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
2010-03-03 17:39:22 +00:00
Keir Fraser 4aee22650c Update Xen version to 4.0.0-rc5 2010-03-01 16:50:26 +00:00
Keir Fraser b199171152 Update QEMU_TAG to e5d14857cd67490bf956d97c8888c0be95ed3f78 2010-02-22 10:00:59 +00:00
Keir Fraser 5b46a059dc Update Xen version to 4.0.0-rc4 2010-02-16 18:11:04 +00:00
Keir Fraser 994bda1f88 Update Xen version to 4.0.0-rc3 2010-02-16 11:55:18 +00:00
Keir Fraser 95861f88c7 Update QEMU_TAG to d463cfee458bacfe1ee3cb9c3b4ce46a6be06edf 2010-02-05 10:36:43 +00:00
Keir Fraser 2ca873ab32 Update QEMU_TAG to 575ed1016f6fba1c6a6cd32a828cb468bdee96bb 2010-02-03 09:33:12 +00:00
Keir Fraser 5f5fb2fe3b Update Xen version to 4.0.0-rc2 2010-01-26 14:15:01 +00:00
Keir Fraser 590ab745d2 Update QEMU_TAG to a0066d08514ecfec34c717c7184250e95519f39c 2010-01-17 18:03:00 +00:00
Keir Fraser d007bbddf6 Update Xen version for 4.0.0-rc1 2010-01-12 07:11:28 +00:00
Keir Fraser fcbf149676 Update QEMU_TAG to 2621a102cd74cd6691bed30f638581639fcb141d 2010-01-05 08:35:31 +00:00
Keir Fraser c748ebb04e Update QEMU_TAG to 9297e6402f6aa1b52e5577edc875eb2d2163baeb 2009-12-07 14:10:27 +00:00
Keir Fraser a05bf36813 Update QEMU_TAG to 91ae19a7cc445030614bd0ae91548162cf0befbe 2009-12-05 12:29:48 +00:00
Keir Fraser e71172174b Update QEMU_TAG to f72b6e0ffc3bb84d4442c5a7493bffbdce2a4468 2009-11-04 18:14:02 +00:00
Keir Fraser dd11df9b81 Extend max vcpu number for HVM guest
Reduce size of Xen-qemu shared ioreq structure to 32 bytes. This
has two advantages:
 1. We can support up to 128 VCPUs with a single shared page
 2. If/when we want to go beyond 128 VCPUs, a whole number of ioreq_t
    structures will pack into a single shared page, so a multi-page
    array will have no ioreq_t straddling a page boundary

Also, while modifying qemu, replace a 32-entry vcpu-indexed array
with a dynamically-allocated array.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2009-10-29 14:03:56 +00:00
Keir Fraser 545a227dfc passthrough/stubdom: clean up hypercall privilege checking
This patch adds securty checks for pci passthrough related hypercalls
to enforce that the current domain owns the resources that it is about
to remap. It also adds a call to xc_assign_device to xend and removes
the PRIVILEGED_STUBDOMS flags.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
2009-10-23 10:04:03 +01:00
Keir Fraser 1e06ab536d Update QEMU_TAG to a3285ff385d2568f0226f15fee2b9808ec3b6deb 2009-10-21 16:06:30 +01:00
Keir Fraser 11a92ae1f0 Update QEMU_TAG to 71324566f3b95bb88105659439adaef1d5bd155c 2009-10-14 09:08:16 +01:00
Keir Fraser 99d28901d7 Update QEMU_TAG to a05958b6e32f1748ea70b1efca13394956c0698b 2009-10-08 08:47:11 +01:00
Keir Fraser 8e2e3454dd Update QEMU_TAG to 743edef44f1d0da792aeb38a33bf468a4596f730 2009-09-23 18:18:29 +01:00
Keir Fraser df669a93f0 Update QEMU_TAG to f09a5ba89434bb3f28172640354258d1d6cd8579 2009-09-22 08:02:01 +01:00
Keir Fraser 19118a37cd Update QEMU_TAG to 3de6cb51b19c46967cbc88ceb202b240c736eeca 2009-09-15 09:26:52 +01:00
Keir Fraser a447e3e88b Update QEMU_TAG to 2836e73adcd994de071f4eec1aa538a5ca849118 2009-09-08 15:11:18 +01:00
Keir Fraser 8adf4754dd Update QEMU_TAG to a83d119cfcc20bc7edb427992d6e31b3e99430be 2009-08-10 18:15:19 +01:00