Commit Graph
16215 Commits
Author SHA1 Message Date
Alex Williamson ab0879ce18 [IA64] xenitp: typo fix
Signed-off-by: Tristan Gingold <tgingold@free.fr>
2007-10-30 11:15:23 -06:00
Alex Williamson fd399fdfa7 [IA64] Enable dbr for VTi domain
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2007-10-30 11:14:21 -06:00
Alex Williamson b8ceb26916 [IA64] Check range of r2 for mov rr[r3]=r2
This fixes a security hole.
Use C fall-back for thash with long VHPT format
Add comments.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
2007-10-24 11:18:42 -06:00
Alex Williamson 3f5d6dc6b2 [IA64] Minor fixes in domain.h
Add unsigned, rid_bits is now u8.
Reformat comments.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
2007-10-24 11:18:10 -06:00
Alex Williamson e21ffa5e67 [IA64] Define IA64_DOMAIN_RID_BITS_OFFSET.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
2007-10-24 11:14:13 -06:00
Keir Fraser 78c593d291 x86: Remove dependency on stdbool.h.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-24 17:21:17 +01:00
Keir Fraser f0baaccd75 x86: Remove CALLBACKTYPE_sysexit.
Looking at the Linux patch as an example, it adds more code and
complexity than it removes, for no obvious performance benefit.

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-24 17:15:54 +01:00
Keir Fraser cd75d47348 x86-64: syscall/sysenter support for 32-bit apps for both 32-bit apps
in 64-bit pv guests and 32on64.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-24 15:22:57 +01:00
Keir Fraser abbd33090a minios: xenbus wait fixup
From: Samuel Thibault <samuel.thibault@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-24 14:36:18 +01:00
Keir Fraser d06d3cfb8d minios: Make NSEC_TO_USEC/NSEC_TO_SEC macros expression safe.
From: Samuel Thibault <samuel.thibault@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-24 14:35:19 +01:00
Keir Fraser eab26d8a91 x86/64: Fix the build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-24 14:10:01 +01:00
Keir Fraser 32d2b4dc6d x86, dom0: Allow get idle time stats by mask.
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
2007-10-24 10:49:03 +01:00
Keir Fraser 6cf492cfe9 x86, cpufreq: Allow dom0 kernel to govern cpufreq via the Intel
Enahanced SpeedStep MSR.
From: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-24 10:20:03 +01:00
Alex Williamson 3aea90a30c merge with xen-unstable.hg (staging) 2007-10-23 11:27:56 -06:00
Alex Williamson a593b18698 [IA64] Prevent softlock when destroying VTi domain
Prevent softlock up when VTi domain destruction by making
relinquish_memory() continuable.  It was assumed that
mm_teardown() frees most of page_list so that the list which
is passed to relinquish_memory() is short.  However the
assumption isn't true for VTi domain case because qemu-dm
maps all the domain pages.  To avoid softlock up message,
make relinquish_memory() continuable.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-10-23 10:21:31 -06:00
Keir Fraser 0fddbd9f2b Add definitions for machine check MSRs introduced in AMD Family 0x10 (Barcelona).
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
2007-10-23 16:12:14 +01:00
Keir Fraser 2eaec0bc67 xentop: build fix for *bsd.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
2007-10-23 14:42:50 +01:00
Keir Fraser 093d6da712 libxc: check length on string copy (strcpy -> strncpy).
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
2007-10-23 14:42:06 +01:00
Keir Fraser 907e0a6046 hvm, vt-d: Add memory cache-attribute pinning domctl for HVM
guests. Use this to pin virtual framebuffer VRAM as attribute WB, even
if guest tries to map with other attributes.
Signed-off-by: Disheng Su <disheng.su@intel.com>
2007-10-23 14:38:47 +01:00
Keir Fraser eab576f8d6 Use $(SHELL) to find shell to run get-fields.sh script.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-23 13:47:01 +01:00
Keir Fraser f767bbd028 x86: Fix xentrace of hypercalls in debug builds of Xen.
Based on a patch by Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-23 09:41:06 +01:00
Keir Fraser 24852cb744 vt-d: Fix a bug in pmr register disabling code.
Signed-off-by: Allen Kay <allen.m.kay@intel.com>
2007-10-23 09:31:03 +01:00
Keir Fraser 86d019205b xenmon: Fix security vulnerability CVE-2007-3919.
The xenbaked daemon and xenmon utility communicate via a mmap'ed
shared file. Since this file is located in /tmp, unprivileged users
can cause arbitrary files to be truncated by creating a symlink from
the well-known /tmp filename to e.g., /etc/passwd.

The fix is to place the shared file in a directory to which only root
should have access (in this case /var/run/).

This bug was reported, and the fix suggested, by Steve Kemp
<skx@debian.org>. Thanks!

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-23 09:26:43 +01:00
Keir Fraser 92c2f8054e x86: small boot-time changes:
* use memory 0x8c000-0x90000 to avoid trampling the area above
 0x90000 -- some bootloaders may leave droppings in that region
 * reserve 2kB for vga mode table -- limit of 128 VESA modes could
 overflow the original 1kB allocation
 * remove unnecessary alignment of trampoline GDT
2007-10-22 21:06:11 +01:00
Alex Williamson 4924c08f4a merge with xen-unstable.hg (staging) 2007-10-22 13:57:08 -06:00
Alex Williamson 985a9ce9dc [IA64] Fix MMIO readb operation
We should do clean before read operation.  Otherwise, read one byte
data may get garbage data sometimes.

Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
2007-10-22 12:30:17 -06:00
Alex Williamson 34070c37f5 [IA64] Don't share privregs with hvm domain
Don't share privregs with hvm domain and twist IA64 xen dump core format
slightly.  Xen shares privregs pages with IA64 HVM domain for xm dump-core
to dump the pages.  However sharing the page allows hvm guest domain
peek/destroy the page contents that might cause xen crash.  And the xen
dump core file doesn't need privregs page because cpu context should be
obtained from vcpu context in case of IA64 HVM domain.

Although this patch modify xen dump core format, current crash utility
(at least crash 4.0-4.7) doesn't look into .xen_ia64_mmapped_regs section
and I don't know any other tools to understand xen dump core file.
So this format modification doesn't cause incompatibility issue.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-10-22 12:26:53 -06:00
Alex Williamson de5d56f31d [IA64] Kdump: 64-bit aligned access to elf-note data
xen_core_regs, as passed by kexec_crash_save_info(), is 32-bit aligned as
it is the data section of an ELF-note. In order to ensure 64-bit aligned
access when xen_core_regs is filled in, shift it a bit and then memmove()
the data back into the 32-bit aligned location after the values have been
written.

Without this change kdump panics on an unaligned-access.

Signed-off-by: Simon Horman <horms@verge.net.au>
2007-10-22 12:19:42 -06:00
Keir Fraser de91f88afe vt-d: Fix PCI=device parsing.
Signed-off-by: Weidong Han <weidong.han@intel.com>
2007-10-22 14:26:45 +01:00
Keir Fraser bdeaa9684d A few small fixes for xenstored:
- Proper sizeof parameter to snprintf
 - Return proper xs_domain_dev for netbsd.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
2007-10-22 14:22:39 +01:00
Keir Fraser e38bd7ef8e ia64: Fix ia64 PV domain creation with new vhpt-size parameter.
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2007-10-22 14:21:13 +01:00
Keir Fraser fedeb68b58 hvm/x86: MTRR/PAT virtualisation.
Signed-off-by: Disheng Su <disheng.su@intel.com>
2007-10-22 14:19:22 +01:00
Keir Fraser a2308fa704 x86: Allow NMI callback CS to be specified via set_trap_table()
hypercall.
Based on a patch by Jan Beulich.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-22 13:04:32 +01:00
Keir Fraser d420576eb5 Allow a guest to send NMIs to its VCPUs.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-22 11:11:04 +01:00
Keir Fraser 808c9bd490 ia64: make buffered pio aware of save/restore.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-10-22 09:42:49 +01:00
Keir Fraser 1934a762f0 ia64: Add HVM_PARAM_BUFPIOREQ_PFN constant.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-10-22 09:41:25 +01:00
Keir Fraser f72027fbb2 x86: Allow BOOT_TRAMPOLINE to be changed without needing manual
modification of the trampoline GDT. Adjust trampoline base to
0x94000.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-22 07:44:25 +01:00
Alex Williamson 5ed95776f5 [IA64] Enable switch to PHY_D mmu mode
Last patch for PHY_D mmu mode

Signed-off-by: Tristan Gingold <tgingold@free.fr>
2007-10-21 15:58:00 -06:00
Alex Williamson 82def087e5 [IA64] phy_d mode in thash_vhpt_insert
Handle PHY_D mode in thash_vhpt_insert
Indentation.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
2007-10-21 15:56:36 -06:00
Alex Williamson e6b4f18a35 [IA64] Handle phy_d mode in vmx_hpw_miss
Handle PHY_D mmu mode.
Indentation.
Avoid code duplication in vmx_hpw_miss.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
2007-10-21 15:55:10 -06:00
Alex Williamson 56509a03e0 [IA64] New features for xenitp
Add auto-repeat feature
(Just press enter to re-execute the last go/sstep/cb/disass command).
Do not flush stdout in the signal handler.
Single step over a breakpoint.
Can quit with domain paused (quit paused)
'disp db' now displays watchpoint.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
2007-10-21 15:52:25 -06:00
Alex Williamson 44d78108bf [IA64] vti domain save/restore: libxc: implement vti domain save/restore
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-10-21 14:57:13 -06:00
Alex Williamson 13a72dbe02 [IA64] ti domain save/restore: libxc: add support set/get_hvmcontext support
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-10-21 14:45:20 -06:00
Alex Williamson 4ef8c22a17 [IA64] vti domain save/restore: implement hvm_save/load. work in progress.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-10-21 14:39:07 -06:00
Alex Williamson 0f93dc4f98 [IA64] vti domain save/restore: implement arch_get/set_info_guest() more
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-10-21 13:38:57 -06:00
Alex Williamson 5cda87e51d [IA64] vti domain save/restore: clean up vti break fault handler
It isn't necessary to set pUStk and pKStk like other VTi fault handlers.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-10-21 13:38:05 -06:00
Alex Williamson 55235cc5ea merge with xen-unstable.hg 2007-10-21 12:10:25 -06:00
Keir Fraser 88561d3058 hvm: Fix PCI-passthru string parsing.
Fixes crash of xend during HVM domain ccreation.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-20 09:30:00 +01:00
Keir Fraser 07f557cb63 Replace sysctl.physinfo.sockets_per_node with more directly useful
sysctl.physinfo.nr_cpus. This also avoids miscalculation of
sockets_per_node by Xen where the number of CPUs in the system is
clipped.
From: Elizabeth Kon <eak@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-10-19 18:00:10 +01:00
Keir Fraser f475a034a7 Avoid passing uninitialised ACPI tables to dom0 when checksums fail.
If during boot, ACPI checksum failures disable ACPI support in Xen,
pass 'acpi=off' to the domain 0 kernel to avoid a fatal page fault
as domain 0 attempts to access the uninitialized ACPI tables.

Signed-off-by: David Lively <dlively@virtualiron.com>
Signed-off-by: Steve Ofsthun <sofsthun@virtualiron.com>
2007-10-19 17:47:12 +01:00