[qemu] Re-calculate color_table after color depth reset.
VNC client may reset color depth after connection, so if we don't
re-calculate color_table, monitor/console's background is abnormal.
Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com> Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
Fix cirrus and rt8139 co-exist issue in new qemu-dm.
The root cause is that if two MMIO spaces are continuous, qemu may misuse
last MMIO space's read/write to handle current request.
Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com> Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
[HVM] Sync p2m table across all vcpus on x86_32p xen.
We found VGA acceleration can not work on SMP VMX guests on x86_32p
xen, this is caused by the way we construct p2m table today: only the 1st
l2 page table slot that maps p2m table pages is copied to none-vcpu0 vcpu
monitor page table when VMX is created. But VGA acceleration will
create some p2m table entries beyond the 1st l2 page table slot after HVM is
created, so only vcpu0 can get these p2m entries, and other vcpu can
not do VGA acceleration.
[SVM] Correct compile time compare of CONFIG_PAGING_LEVELS for 64bit and
32bit PAE guests. This code affects accesses to the CR4 register by the SVM guest.
Fix Linux so that it does not set a timeout if there are no pending
timers. Fix Xen so that it does not immediately fire a timer event if
it sees a very long timeout -- sometimes this means that there are
no pending timers.
Spawn vncviewer from qemu-dm.
- add vncviewer option to qemu-dm to spawn a vncviewer process.
- add the `vncconsole' config parameter which enables qemu-dm's vncviewer
option.
Based on a patch from: Don Dugger <donald.d.dugger@intel.com> Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
[HVM] Currently in xentrace, MMIO is handled just like other page faults. The
tracing parameters are error code and the guest virtual address.
However, if we are to analyze MMIO, tracing gpa makes more sense.
This small pactch replaces the va with gpa when tracing MMIO.
[HVM] fix system crash when vmx guest startx or restore
Add this safety check like alloc_l4_table Signed-off-by: Edwin Zhai <edwin.zhai@intel.com> Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
[HVM] Create I/O context for MMIO/PIO processing in an
off-stack structure. Signed-off-by: Keir Fraser <keir@xensource.com> Signed-off-by: Xin B Li <xin.b.li@intel.com>
[XM-TEST] Increase timeout on hotplug-cpus-down test to 30 seconds.
This is needed when dom0 has 32 CPUs. Signed-off-by: Susan Krysan <krysans@unisys.com>
[IA64] Re-enable tools/xcutils build on ia64. We now have
save/restore working in the xen-ia64-unstable.hg thanks to some
excellent work by Tristan. This simply splits the xcutils components
from the x86-ish linux_save/restore files in a way that should be
friendly to powerpc.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Xm-test HVM network testing is broken. The new qemu code doesn't support
pcnet32, which is the current default driver loaded onto the disk.img.
This patch changes teh default to the rtl8139, which is xend's default.
This patch also adds a new "--with-network-drv" configuration option so
people can configure different drivers than the default.
Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
[TPM] Discard a future response packet after a timeout has occurred instead of
removing the request right away. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
[powerpc] support additional interrupt controller types in xen/arch/x86/irq.c
PowerPC #includes xen/arch/x86/irq.c, so we need to support MPIC interrupt
controllers here.
From: Hollis Blanchard <hollisb@us.ibm.com> Signed-off-by: Keir Fraser <keir@xensource.com>
Added blktap support. Includes kernel driver (enabled as CONFIG_XEN_BLKDEV_TAP=y) and userspace tools. The userspace deamon (blktapctrl) is enabled by default when xend is activated. For further information on using and configuring blktap see tools/blktap/README.
Update xend to support vnc configuration for qemu 0.8.1 based ioemu.
Also add vncdisplay= option which allows setting the display number
instead of using the default display number (= domid).
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
Update xend to support network configuration for qemu 0.8.1 based ioemu.
Remove the ne2000 option, the network device type can now be selected
on a per-device basis by adding a model= property to the device's entry
in the vif list.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
Add linux config update script and native linux build.
Update script generates linux config files from others, reducing
the burden of maintaining multiple parallel files. Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
[HVM][VMX] Clean up some writes to 64-bit VMCS fields in 32-bit Xen. Signed-off-by: Eddie Dong <eddie.dong@intel.com> Signed-off-by: Keir Fraser <keir@xensource.com>
Shared libs have traditionally been installed as executables due to
some
long ago accidents of implementation in historical Unixes. And there
are various tools which "expect" it (... and this is why they get
created as executable by default by ld).
Switching to INSTALL_LIB here although I think the whole "define all
the
ways you're going to use install" in this makefile a _smidge_ overkill
Move the content of the script file vtpm-addtodb into the
vtpm-common.sh
script. The newly created function 'vtpm_add_and_activate' also
assigns
the instance number to the xenstore entry to activate the backend.
Renaming of isLocalAddress function to vtpm_isLocalAddress.
[XM][ACM] Add xm subcommands to work with security resource labels.
This patch adds new xm subcommands to support working with resource
labels. The new subcommands are 'xm resources', 'xm rmlabel', 'xm
getlabel' and 'xm dry-run'. In addition, the 'xm addlabel' subcommand
now uses an updated syntax to support labeling both domains and
resources. See the xm man page for details on each subcommand.
Beyond the new subcommands, this patch allows users to immediately see
when security checks will fail by pushing some basic security checking
into the beginning of 'xm create' and 'xm block-attach'. ACM security
attributes for block devices are added to XenStore in order to support
the final security enforcement, which will be performed in the kernel
and included in a separate patch.
Signed-off-by: Bryan D. Payne <bdpayne@us.ibm.com> Signed-off-by: Reiner Sailer <sailer@us.ibm.com>
[XENTRACE] Remember number of lost trace records when
trace buffer is full and write a 'number of lost records'
entry when space becomes available.
From: Rob Gardner <rob.gardner@hp.com> Signed-off-by: Keir Fraser <keir@xensource.com>
This patch addresses the problem of xenbaked/xenmon not dealing with
large domain ID's. Xen Domain ID's increase monotonically as domains
are created; The ID's are not (often) recycled. Xenbaked was using the
domain
ID's as indices to arrays of data, and this scheme blows up as soon as
a domain ID exceeds the array size. Code has been changed in xenbaked
and xenmon to isolate domain id's from array indices, so everything is
indirect. Users should not notice any difference in behavior.
From: Rob Gardner <rob.gardner@hp.com> Signed-off-by: Keir Fraser <keir@xensource.com>
[XENOPROF] Some fixes for xenoprof passive domain support.
Currently, passive domain samples are being assigned to the wrong
kernel functions. This patch fixes this problem. In addition the patch changes the
encoding of domain switch ESCAPE codes (marks used to separate samples
in oprofile buffers associated with different domains). Instead of
using 2 codes, one for START and one for END of passive domain
samples, a single escape CODE value is used to indicate a domain switch (no
need for a STOP followed by a START). Finally there some other minor style
fixes.
Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
[XEND] Currently a domain's maxmem value is being set with the memory value
even if the user specifies maxmem in config. This patch uses maxmem
value to set maxmem instead of memory.
[VTPM_Tools] Support for (non-local) Migration added. Local migration
works provided that the hotplug scripts deliver the "suspend" before
the "resume," but this is not always true. Signed-off-by: Vinnie Scarlata <vincent.r.scarlata@intel.com>
[NET] net-gso.patch: Fix up GSO packets with broken checksums
Here is the original changelog:
[NET] gso: Fix up GSO packets with broken checksums
Certain subsystems in the stack (e.g., netfilter) can break the
partial
checksum on GSO packets. Until they're fixed, this patch allows
this to
work by recomputing the partial checksums through the GSO
mechanism.
Once they've all been converted to update the partial checksum
instead of
clearing it, this workaround can be removed.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
[XENCONSOLE] reference of tty->count in xencons_close() is racy.
It must be protected by tty_sem semaphore like con_close() in
drivers/char/vt.c. and prevent re-opening this tty.
A check_uuid() in this patch checks on uuid of the
VM configuration definition. If specified uuid is
already used with the others VM, the xm create command
does not create the VM. The xm create command error occurs.
[HVM] Fix "Many lost ticks" warning in ia32e guest Signed-off-by: Eddie Dong <eddie.dong@intel.com> Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
[BUILD] Fix re-use of existing config files in dist/install/boot.
- the name of the config file was computed incorrectly because of the
linux version number 4th digit being present in both LINUX_VER and
EXTRAVERSION extracted from the linux Makefile.
- DESTDIR was not set for the prep and config targets.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
[XEN] Add CPUID hypervisor-info leaves at index 0x40000000.
Currently only a signature leaf is defined ("Xen\0"). Signed-off-by: Keir Fraser <keir@xensource.com>
[MINIOS]Mapping page frames on demand added to the memory management. Signed-off-by: Steven Smith <sos22@cam.ac.uk> Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
[XEN] Separate domain creation from vcpu creation.
Creating a domain no longer creates vcpu0 -- that is now
done later. Signed-off-by: Keir Fraser <keir@xensource.com>