Commit Graph
6292 Commits
Author SHA1 Message Date
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
Keir Fraser cccd453197 xend: Fix and improve default NUMA node selection.
Add the missing condition check and use average value instead of the
sum value of Vcpus pinning cpus on certain node to choose relaxed node.

Signed-off-by: Duan Ronghui <ronghui.duan@intel.com>
2008-03-19 10:20:17 +00:00
Keir Fraser 67ae17b562 Fix methods in SrvDomain class for inactive managed domains
This patch fixes methods in SrvDomain class for inactive managed
domains.  They should use a domain name because inactive managed
domains don't have a domID.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2008-03-19 10:18:36 +00:00
Keir Fraser 4983e5c3b8 ioemu: Improve SDL openGL configure-script detection.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-03-19 00:01:25 +00:00
Keir Fraser 8491525fc2 ia64: Fix ACPI header inclusion into libxc.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2008-03-18 21:05:47 +00:00
Keir Fraser 4097715c73 save/restore: Permute saved memory with 2MB chunk size.
The memory permutation cause a slow down in case of a save/restore
(bug 1143). It works better when the mixing is done with 2MB chunks.

Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
2008-03-18 19:36:43 +00:00
Keir Fraser 102cd68e62 vfb: Add opengl option
(and replace bogus vncpasswd copy in xenapi_create in the SDL case)

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-03-18 15:51:19 +00:00
Keir Fraser 86d8fe5e6a libxc: Variable-size gntdev support
This patch adds the ability to set the number of slots that may be
used for mapping grant references, using the gntdev user-space grant
reference mapping driver.

Signed-off-by: Derek Murray <Derek.Murray@cl.cam.ac.uk>
2008-03-18 15:00:33 +00:00
Keir Fraser 751e5ae7c3 Xend forgets to write the domain's VDI UUID into the domain state file
once the domain is started (before it's there). Once xend is restarted
it will not know the association between the VBD and VDI anymore due
to the missing UUID. This patch fixes this.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2008-03-18 13:14:26 +00:00
Keir Fraser a5678887cc stubdom: disable xen_blktap
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-03-18 13:13:31 +00:00
Keir Fraser d375fff68c Install missing hvm public headers.
Signed-off-by: Ben Guthro <bguthro@virtualiron.com>
2008-03-18 13:11:43 +00:00
Keir Fraser ff02680748 ioemu: Set subsystem vendor/device for ne2k device model.
From: Kamala Narasimhan <kamala.narasimhan@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-03-18 13:08:30 +00:00
Keir Fraser 1fa1369d8a ioemu: SDL rendering using OpenGL
Add opengl support for rendering the guest framebuffer in the SDL
window. SDL is needed anyway to open the window and handle the
events. Opengl rendering is optional and can be turned off at both
compile time and in the vm configuration file.

Some of the benefits of using opengl are:

 - faster rendering, less CPU intensive, especially with good graphic
   cards;
 - makes the window resizing possible and hardware accelerated, thus
   very efficient and smooth;
 - allows other optimizations like sharing directly a buffer in vram
   with the guest (not yet implemented).

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
2008-03-18 11:47:58 +00:00
Keir Fraser d61f17ab72 tools: Add PV passthrough PCI device hotplug support.
Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
2008-03-18 11:39:21 +00:00
Keir Fraser bfe18b4f3a Fix domain suspend by xend stop
When I stopped xend by xend stop command, a domain suspend processing
is frequently failed.  This patch solves the problem.

Step to reproduce:
 1. xm new XXX on_xend_stop="suspend"
 2. xm start XXX
 3. xend stop

In the xend stop, if the domain suspend processing is slept by
state_updated.wait() of waitForShutdown(), then the domain suspend
processing is not waked up again because state_updated.notifyAll()
of _stateSet() is not executed.

For the reason, processing of _on_domains_changed() is waited by
domains_lock.acquire() because the domain suspend processing is
keeping domains_lock and sleeping.  The domain suspend processing
got domains_lock at cleanup_domains().

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2008-03-18 11:34:44 +00:00
Keir Fraser 7564231fbc xm: allow non-existent readline module
Let xm work even if Python doesn't have its readline module installed.

Signed-off-by: John Levon <john.levon@sun.com>
2008-03-18 11:32:06 +00:00
Keir Fraser 83d6140b39 Allow libvirt to specify force, rm_cfg
When doing a 'virsh detach-disk' on a running domain, the disk is not
removed from the configuration file.  Allow a caller to specify
whether or not to change the file.

Signed-off-by: Ryan Scott <ryan.scott@sun.com>
2008-03-18 11:31:39 +00:00
Keir Fraser b9d1950675 minios: Fix lost events
evtchn_bind_interdomain used to clear any already pending event before
binding a handler, because else the handler may be called before it is
ready. That however leads to missed events, which I had to workaround
for the HVM case.

This changes the semantics of bind_evtchn, and thus of all the
event channel binding functions (bind_virq, evtchn_alloc_unbound,
evtchn_bind_interdomain) into not unmasking the event itself, hence
letting the caller initialize properly before unmasking the port (e.g.
record the port number in an appropriate place).

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-03-18 11:29:18 +00:00
Keir Fraser 62341d01ee stubdom: fix select calls after CDROM ejection
by calling qemu_set_fd_handler before closing the fd.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-03-18 11:28:14 +00:00
Keir Fraser caa44aa73f stubdom: support save/restore by passing the -loadvm parameter,
letting the stubdomain access the save area, and having it watch the
correct xenstore node.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-03-18 11:27:36 +00:00
Keir Fraser 37a1d36134 stubdom: add support for reading the command line from the config
file, and merge the dmargs with it in the case of qemu.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
2008-03-18 11:27:05 +00:00