Commit Graph
6312 Commits
Author SHA1 Message Date
Keir Fraser efeb49b813 Revert all usages of gcc's __extension__ keyword, and instead assert
that our headers are not built with __GNUC__ and __STRICT_ANSI__.

__extension__ had some weird (and buggy) behaviours when nested which
make it a risky proposition for general usage in our header
files. Better to disallow -ansi, -std=c99, and similar gcc options
when building against Xen headers.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-03-31 17:43:18 +01:00
Keir Fraser c0b0636f38 x86_emulate: Remove environment-specific definitions from core
emulator source files.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-03-31 14:21:13 +01:00
Keir Fraser e358d917c4 xend: Improve localtime calculation -- Python time module already
provides the relevant information.

From: Ross Walker <rwalker@medallion.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-03-31 10:40:43 +01:00
Keir Fraser 6e6b79115c xm: Make xm's printout of security errors look better
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2008-03-31 10:37:19 +01:00
Keir Fraser 28f2b55768 ioemu: actually check for errors in bdrv_flush et al
bdrv_flush is declared to return void, but this is wrong because it
means that the implementations have nowhere to report their errors.
Indeed, the implementations generally ignore errors.

This patch corrects this by making it return int (implicitly, either 0
or -errno, as for other similar functions).  All of the
implementations and callers are adjusted too.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
2008-03-31 10:35:35 +01:00
Keir Fraser 81a6d23da7 ioemu: ne2k buffer full bug fix, by Marcel Block.
Backport from qemu upstream.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
2008-03-28 11:17:11 +00:00
Keir Fraser df79af6242 ioemu: Fall back to SDL rendering when GLX fails.
From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-03-28 11:15:43 +00:00
Keir Fraser fb8b2182bc ioemu: Perform emulated IDE flushes asynchronously.
Fixes 'Windows Bug Check 0x101 issue' in which a VCPU gets tied up for
so long doing a synchronous flush to disc that it misses critical
timer events.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Modified-by: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2008-03-28 09:50:50 +00:00
Keir Fraser 178252351a xend: Fix XendBootloader bogus reference to 'attr'.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-03-28 07:34:47 +00:00
Keir Fraser f621da5bdf ioemu: Two qcow2 bug fixes from upstream qemu.
[Qemu-devel] PATCH: qcow2 image corruption
http://lists.gnu.org/archive/html/qemu-devel/2007-03/msg00773.html

[Qemu-devel] [PATCH] qcow2: release refcount table clusters of the old
table, after growing the refcount table
http://lists.gnu.org/archive/html/qemu-devel/2007-04/msg00043.html

Signed-off-by: Kevin Wolf <kwolf@suse.de>
2008-03-27 17:14:41 +00:00
Keir Fraser b4f95a5c93 tapdisk: Fix L1 table endianess of qcow images
Fix tapdisk to use big endian L1 tables as used by qemu/ioemu. Old
tapdisk images with native endianess are automagically converted to
big endian when the image file is opened for the first time.

Signed-off-by: Kevin Wolf <kwolf@suse.de>
2008-03-27 17:13:37 +00:00
Keir Fraser 22b0cb305b libfsimage: Build check script needs only /bin/sh.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-03-27 16:20:25 +00:00
Keir Fraser 3b01829e42 libfsimage: Revert broken parts of portability changes to the build system.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-03-27 15:13:55 +00:00
Keir Fraser 54e034136e Revert 17296:21d9575c669e.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-03-27 09:12:09 +00:00
Keir Fraser 71331acb08 ioemu: Fix L1 table endianess of qcow images created by tapdisk
The qemu/ioemu implementation of the qcow format uses a big endian L1
table. tapdisk omits the necessary conversion, so qcow images have the
wrong endianess and cannot be read by correct implementations of qcow.

This patch detects broken tapdisk images and converts their L1 tables
to big endian when the image file is opened in ioemu for the first
time. The fixed image has a new flag EXTHDR_L1_BIG_ENDIAN set in the
extended header.

Note that a converted image cannot be opened by tapdisk again.

Signed-off-by: Kevin Wolf <kwolf@suse.de>
2008-03-26 14:44:21 +00:00
Keir Fraser 8d4aef298f pygrub: cleanup and support for NetBSD
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
2008-03-26 14:41:47 +00:00
Keir Fraser bf69b5d785 libfsimage: portability fixes for NetBSD
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
2008-03-26 14:40:54 +00:00
Keir Fraser 88b932f50f pvfb: Add offset in resize event
Also support depth change.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-03-26 14:05:36 +00:00
Keir Fraser d7898ce61a xenstored: Delay forking until after listening sockets are
opened. Also, in startup xend script, delay further startup until
xenstored initial child process has exited. This serialises xenstored
startup with that of other daemons (e.g., xenconsoled).

Signed-off-by: Bastian Blank <waldi@debian.org>
2008-03-26 13:21:42 +00:00
Keir Fraser bf121f87bd ioemu: save IDE write cache flag.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-03-26 13:15:33 +00:00
Keir Fraser d1e5ff7440 Explicitly tag every anonymous aggregate in the public headers.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-03-26 10:14:50 +00:00
Keir Fraser e687956536 xenfb: Dynamic modes support.
Attached patch adds dynamic frame buffer size support to the xenfb PV
backend QEMU xenfb.  Backend sets feature-resize and handles the
resize frame buffer event.

Corresponding frontend LINUX patch is required for functionality but
this patch is not dependent on it, preserving backwards
compatibility.

Signed-off-by: Pat Campbell <plc@novell.com>
2008-03-26 09:09:16 +00:00
Keir Fraser 6131fde768 Prefix unnamed union structure fields with __extension__ to make it
work properly even in e.g. C99 standard mode.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-03-25 18:02:00 +00:00
Keir Fraser 2526bd9995 stubdom: remove unnecessary include
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-03-25 17:56:49 +00:00
Keir Fraser 774a123b38 hvm acpi: Restrict to 15 Processor objects.
Some versions of Windows 2000 only support no more than 15 cpus in
ACPI table, otherwise it will cause a BSOD
KMODE_EXCEPTION_NOT_HANDLED. This patch decrease the cpu count in the
ACPI DSDT to 15.

Signed-off-by: Xu Dongxiao <dongxiao.xu@intel.com>

At the same time, fix the ACPI processor IDs in the Processor objects.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-03-25 10:57:50 +00:00
Keir Fraser f28927a991 xend: typo
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-03-25 10:26:05 +00:00
Keir Fraser 8fbbc6a585 ioemu: prefix phy devices with /dev/
just like blkif.py's _parse_uname does for PV guests.  Closes bug #983.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-03-25 10:24:45 +00:00
Keir Fraser 06a7e3fd4b ioemu: fix VNC case when switching from 32bpp to 24bpp
Even if we don't need to tell the client to redepth, we need to tell
e.g. xenfb that we can't share the buffer any more.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-03-25 10:24:26 +00:00
Keir Fraser 6ab58a7ed9 tools build: Fix build after subdir rules cleanups.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-03-25 10:17:22 +00:00
Keir Fraser c3e57fa148 tools/firmware: Use generic subdirs rules.
Signed-off-by: Bastian Blank <waldi@debian.org>
2008-03-25 09:51:03 +00:00
Keir Fraser dcaa724bbe tools/libfsimage build: Use generic subdirs rules.
Signed-off-by: Bastian Blank <waldi@debian.org>
2008-03-25 09:50:45 +00:00
Keir Fraser d4921fd504 tools/blktap: Use generic subdirs rules.
Signed-off-by: Bastian Blank <waldi@debian.org>
2008-03-25 09:50:27 +00:00
Keir Fraser f703fec058 tools/flask build: Use generic subdirs rules.
Signed-off-by: Bastian Blank <waldi@debian.org>
2008-03-25 09:50:11 +00:00
Keir Fraser 55d2bad440 tools/vtpm_manager build: Use generic subdirs rules.
Signed-off-by: Bastian Blank <waldi@debian.org>
2008-03-25 09:49:49 +00:00
Keir Fraser 663966a277 tools/vtpm_manager build: Cleanup makefiles.
Remove unnecessary openssl check. Use VPATH. Make clean remove all
generated files.

Signed-off-by: Bastian Blank <waldi@debian.org>
2008-03-25 09:49:27 +00:00
Keir Fraser 166a028ffe tools/xenstat build: Use generic subdirs rules.
Signed-off-by: Bastian Blank <waldi@debian.org>
2008-03-25 09:49:03 +00:00
Keir Fraser 17e84f77fd build: Add generic subdirs rules.
Use them in the toplevel Makefile.

Signed-off-by: Bastian Blank <waldi@debian.org>
2008-03-25 09:48:41 +00:00
Keir Fraser 930e7c4bb2 ioemu: Fix vnc buffer sharing when linesize != width * depth.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
2008-03-20 18:28:52 +00:00
Keir Fraser b44e418cc1 minios: get VBD CD/removable/RO info
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-03-20 17:48:02 +00:00
Keir Fraser c7033a8f11 ioemu: improve DMA transfers
by increasing the size of DMA buffers.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-03-20 17:47:33 +00:00
Keir Fraser dcf2bba9e3 ioemu: IDE should accept SETMULT 0
as upstream qemu now does

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-03-20 17:47:05 +00:00
Keir Fraser 8f04d55021 xend: Fix writing domain's VDI UUID into domain state file.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-03-20 17:45:00 +00:00
Keir Fraser 825c921f97 ioemu: Allow VNC buffer sharing when linesize != width * depth
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
2008-03-20 10:48:21 +00:00
Keir Fraser 2cd23e48e9 ioemu: Fix non-openGL resize
We can not resize when OpenGL is not enabled.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-03-20 10:47:17 +00:00
Keir Fraser 291bf67de0 ioemu: Initialize ioport_opaque, ioport_read/write_table to zero
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-03-20 10:46:52 +00:00
Keir Fraser 6fef410021 blktap: Fix BSD build failure.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
2008-03-19 16:19:10 +00:00
Keir Fraser 8e9ef4c5ce ioemu: fix sdl opengl rendering
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
2008-03-19 14:13:17 +00:00
Keir Fraser f9aa19ee3a tapaio build fix
With some combinations of compiler flags (no optimization, -Werror),
the compiler may complain that the function doesn't have a return
statement (even if the function actually just never returns), reported
as bug 1128. This adds a dummy return statement.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-03-19 14:12:12 +00:00
Keir Fraser f966bc9fc5 libxc: Remove permute() function from xc_domain_save().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-03-19 12:41:48 +00:00
Keir Fraser 2795200267 tools: More accurate parsing of pci config.
Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
2008-03-19 10:21:01 +00:00