# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1278675358 -3600
# Node ID a672af698bc387ea92070fc3ef337e8c2fbb716e
# Parent 5614f74f16bf72d55ed420d80a51190c82dbe7ab
# Parent 82f8371effffc7f3f405fc524cf27c3f07d27249
Merge
---
tools/Makefile | 7 +++++++
tools/libxl/libxl.c | 4 ++++
tools/libxl/libxl.h | 2 ++
tools/libxl/libxl_dom.c | 2 ++
tools/libxl/xl_cmdimpl.c | 14 ++++++++++++--
tools/xentrace/xentrace.c | 2 +-
6 files changed, 28 insertions(+), 3 deletions(-)
diff -r 5614f74f16bf -r a672af698bc3 tools/Makefile
--- a/tools/Makefile Fri Jul 09 12:34:40 2010 +0100
+++ b/tools/Makefile Fri Jul 09 12:35:58 2010 +0100
@@ -35,6 +35,7 @@ SUBDIRS-y += libxl
SUBDIRS-y += libxl
SUBDIRS-y += remus
SUBDIRS-$(CONFIG_X86) += xenpaging
+SUBDIRS-y += debugger/gdbsx
# These don't cross-compile
ifeq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
@@ -114,3 +115,9 @@ subdir-clean-ioemu-dir:
$(buildmakevars2shellvars); \
$(MAKE) -C ioemu-dir clean; \
fi
+
+subdir-clean-debugger/gdbsx:
+ $(MAKE) -C debugger/gdbsx clean
+
+subdir-install-debugger/gdbsx:
+ $(MAKE) -C debugger/gdbsx install
diff -r 5614f74f16bf -r a672af698bc3 tools/libxl/libxl.c
--- a/tools/libxl/libxl.c Fri Jul 09 12:34:40 2010 +0100
+++ b/tools/libxl/libxl.c Fri Jul 09 12:35:58 2010 +0100
@@ -878,6 +878,10 @@ static char ** libxl_build_device_model_
flexarray_set(dm_args, num++, "-usbdevice");
flexarray_set(dm_args, num++, info->usbdevice);
}
+ }
+ if (info->soundhw) {
+ flexarray_set(dm_args, num++, "-soundhw");
+ flexarray_set(dm_args, num++, info->soundhw);
}
if (info->apic) {
flexarray_set(dm_args, num++, "-acpi");
diff -r 5614f74f16bf -r a672af698bc3 tools/libxl/libxl.h
--- a/tools/libxl/libxl.h Fri Jul 09 12:34:40 2010 +0100
+++ b/tools/libxl/libxl.h Fri Jul 09 12:35:58 2010 +0100
@@ -97,6 +97,7 @@ typedef struct {
uint32_t target_memkb;
uint32_t video_memkb;
uint32_t shadow_memkb;
+ bool disable_migrate;
const char *kernel;
int hvm;
union {
@@ -161,6 +162,7 @@ typedef struct {
char *boot; /* boot order, for example dca */
bool usb; /* usb support enabled or disabled */
char *usbdevice; /* enable usb mouse: tablet for absolute mouse, mouse for
PS/2 protocol relative mouse */
+ char *soundhw; /* enable sound hardware */
bool apic; /* apic enabled or disabled */
int vcpus; /* max number of vcpus */
int vcpu_avail; /* vcpus actually available */
diff -r 5614f74f16bf -r a672af698bc3 tools/libxl/libxl_dom.c
--- a/tools/libxl/libxl_dom.c Fri Jul 09 12:34:40 2010 +0100
+++ b/tools/libxl/libxl_dom.c Fri Jul 09 12:35:58 2010 +0100
@@ -68,6 +68,8 @@ int build_pre(struct libxl_ctx *ctx, uin
(info->hvm) ? info->max_memkb :
(info->max_memkb + info->u.pv.slack_memkb));
xc_domain_set_tsc_info(ctx->xch, domid, info->tsc_mode, 0, 0, 0);
+ if ( info->disable_migrate )
+ xc_domain_disable_migrate(ctx->xch, domid);
if (info->hvm) {
unsigned long shadow;
diff -r 5614f74f16bf -r a672af698bc3 tools/libxl/xl_cmdimpl.c
--- a/tools/libxl/xl_cmdimpl.c Fri Jul 09 12:34:40 2010 +0100
+++ b/tools/libxl/xl_cmdimpl.c Fri Jul 09 12:35:58 2010 +0100
@@ -192,6 +192,7 @@ static void init_build_info(libxl_domain
b_info->max_vcpus = 1;
b_info->max_memkb = 32 * 1024;
b_info->target_memkb = b_info->max_memkb;
+ b_info->disable_migrate = 0;
if (c_info->hvm) {
b_info->shadow_memkb = 0; /* Set later */
b_info->video_memkb = 8 * 1024;
@@ -360,6 +361,7 @@ static void printf_info(int domid,
printf("\t(tsc_mode %d)\n", b_info->tsc_mode);
printf("\t(max_memkb %d)\n", b_info->max_memkb);
printf("\t(target_memkb %d)\n", b_info->target_memkb);
+ printf("\t(nomigrate %d)\n", b_info->disable_migrate);
printf("\t(image\n");
if (c_info->hvm) {
@@ -550,6 +552,9 @@ static void parse_config_data(const char
? l * 1024
: libxl_get_required_shadow_memory(b_info->max_memkb,
b_info->max_vcpus);
+
+ if (!xlu_cfg_get_long (config, "nomigrate", &l))
+ b_info->disable_migrate = l;
if (!xlu_cfg_get_long(config, "tsc_mode", &l))
b_info->tsc_mode = l;
@@ -833,9 +838,12 @@ skip_vfb:
p = strtok(buf2, ",");
if (!p)
goto skip_pci;
- if (!sscanf(p, PCI_BDF_VDEVFN, &domain, &bus, &dev, &func,
&vdevfn)) {
- sscanf(p, "%02x:%02x.%01x@%02x", &bus, &dev, &func, &vdevfn);
+ if (sscanf(p, PCI_BDF_VDEVFN, &domain, &bus, &dev, &func, &vdevfn)
< 4) {
domain = 0;
+ if (sscanf(p, "%02x:%02x.%01x@%02x", &bus, &dev, &func,
&vdevfn) < 3) {
+ fprintf(stderr,"xl: Unable to parse pci bdf (%s)\n", p);
+ goto skip_pci;
+ }
}
libxl_device_pci_init(*pcidevs + *num_pcidevs, domain, bus, dev,
func, vdevfn);
(*pcidevs)[*num_pcidevs].msitranslate = pci_msitranslate;
@@ -892,6 +900,8 @@ skip_pci:
dm_info->usb = l;
if (!xlu_cfg_get_string (config, "usbdevice", &buf))
dm_info->usbdevice = strdup(buf);
+ if (!xlu_cfg_get_string (config, "soundhw", &buf))
+ dm_info->soundhw = strdup(buf);
if (!xlu_cfg_get_long (config, "xen_platform_pci", &l))
dm_info->xen_platform_pci = l;
}
diff -r 5614f74f16bf -r a672af698bc3 tools/xentrace/xentrace.c
--- a/tools/xentrace/xentrace.c Fri Jul 09 12:34:40 2010 +0100
+++ b/tools/xentrace/xentrace.c Fri Jul 09 12:35:58 2010 +0100
@@ -45,7 +45,7 @@ do {
/* sleep for this long (milliseconds) between checking the trace buffers */
#define POLL_SLEEP_MILLIS 100
-#define DEFAULT_TBUF_SIZE 20
+#define DEFAULT_TBUF_SIZE 32
/***** The code **************************************************************/
typedef struct settings_st {
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|