Commit Graph
9119 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk 0814867e26 Minor enhancements to gdbbuild, the build script for gdbserver-xen.
1. Use $MAKE if set
 2. Make mirror configurable from environment

From: Horms <horms@verge.net.au>

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-03 11:17:09 +01:00
kaf24@firebug.cl.cam.ac.uk 01d546796c It's not necessary to define a function for dumping virtual IOAPIC
table entry, that makes the code hard to comply with condition
compiling of HVM_DBG_LOG.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-03-03 10:58:42 +01:00
kaf24@firebug.cl.cam.ac.uk 596095de11 Add a description of the virtual TPM interface to the interface
document and explain some of the internals of the device driver.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-03-03 10:57:37 +01:00
kaf24@firebug.cl.cam.ac.uk 59d0a0335d This patch undoes 8697 and makes xm reboot/shutdown work again. This code
does expose a bug in xenstored when it is killed & restarted, but that
is not caused by this code.

My sincere appology to Ke Yu for the long wait and assuming his code
was broken.  His code was perfectly fine. Its just that my test scripts
did something for a historical reason that I should have removed a long
time ago.

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
2006-03-03 10:56:54 +01:00
kaf24@firebug.cl.cam.ac.uk da53848714 Raises an explicit error message when the domain config file specifies
an incorrect path to a file-backed VBD (disk image) or the file-backed
VBD does not exist.

Without this patch, if someone mis-types the path to the disk image,
he/she would have no indication as to what's wrong when the domain
fails to get created.

Signed-off-by: Khoa Huynh <khoa@us.ibm.com>
2006-03-03 10:56:13 +01:00
kaf24@firebug.cl.cam.ac.uk 6d794f8a04 VTPM fixes:
- fixes a problem in the vTPM backend where the timer was killed when
the timer function was run
- removes a variable from being put in the ring by the frontend
- reformatting due to indent tool running over some of the files

Has been tested with the vtpm-relevant parts of xm-test.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-03-03 10:55:11 +01:00
kaf24@firebug.cl.cam.ac.uk 7cca11754f Fix up some issues I found when porting PPC to the new common gdb stub code:
- cosmetic changes in the messages printed
- 'flags' must always be unsigned long.
- explicitly calling initialize_gdb() is not difficult. For x86 and ia64 I 
placed this call immediately before do_initcalls(), since that's where it's 
being called from now so we know it's safe. Architecture people can move it 
earlier as appropriate.
- I don't understand all these ASSERT(!local_irq_is_enabled()) statements, 
sometimes bracketing a single call like receive_command(). How exactly would 
receive_command() manage to re-enable irqs? Also, a failing ASSERT would just 
call into the stub again anways...
- initialize_gdb() was overcomplicated. serial_parse_handle() already handles 
the parsing for us, and there's no need to panic there.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-03-03 10:53:58 +01:00
kaf24@firebug.cl.cam.ac.uk b8d1d84a4f VTPM_Tools: Fix error when closing only vtpm, and fix restore bug when
no dmis exist

The first bug prevented the TPM tests from running successfully more
than once in a row.

Signed-off-by: Vinnie Scarlata <vincent.r.scarlata@intel.com>
2006-03-03 10:46:06 +01:00
kaf24@firebug.cl.cam.ac.uk f7145c633e Ignore external (user-provided) CFLAGS when building vmxassist and hvmloader.
They do more harm than good.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-03 10:44:40 +01:00
kaf24@firebug.cl.cam.ac.uk 3e16170919 Add a 'clear trap table' path to set_trap_table hypercall, taken when
the input table is NULL.

Also, no need for set_trap_table to take the per-domain biglock.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-03 10:34:03 +01:00
kaf24@firebug.cl.cam.ac.uk b7c853b0ba Don't compile HVM_DBG_LOG into xen by default.
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2006-03-02 21:37:14 +01:00
kaf24@firebug.cl.cam.ac.uk c7466ca15d Fix libxc warnings with gcc-4.1 and glibc-2.3.90.
Signed-off-by: Charles Coffing <ccoffing@novell.com>
2006-03-02 21:36:03 +01:00
kaf24@firebug.cl.cam.ac.uk a78479d028 Many fixes and cleanups for lomount:
- Fixed several overflows, off-by-one, and uninitialized variables.
- Added well-defined exit codes.
- Proper handling of system()'s return value.
- Errors parsing partition table cause it to stop now.
- etcetera...

Tested on 32 and 64 bit, with valgrind, with physical disks and disk
images.

Signed-off-by: Charles Coffing <ccoffing@novell.com>
2006-03-02 21:35:17 +01:00
kaf24@firebug.cl.cam.ac.uk 7797b38e69 Change debug level of vmx_io_instruction to DBG_LEVEL_IO.
From: Himanshu Raj

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-02 21:34:16 +01:00
kaf24@firebug.cl.cam.ac.uk 08b20188e0 Add empty files need to fix ia64 build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-02 19:16:21 +01:00
kaf24@firebug.cl.cam.ac.uk bfded7ad04 Clean up use of wait_event_interruptible().
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-02 18:57:03 +01:00
cl349@firebug.cl.cam.ac.uk 9ff90bdaa1 linux-x86-64: eliminate duplicate exports
Symbols are exported from files shared with i386.

From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-03-02 15:41:45 +00:00
cl349@firebug.cl.cam.ac.uk 280c8383fd Remove unnecessary include statements.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-03-02 15:37:46 +00:00
cl349@firebug.cl.cam.ac.uk 99e08d6078 linux: clean up setup_arch_post.h
- machine_specific_memory_setup() was unused on x86-64
- machine_specific_modify_cpu_capabilities() must not be __init (for CPU hotplug)
- machine_specific_modify_cpu_capabilities() should be called in similar ways on 32- and 64-bits

From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-03-02 15:33:47 +00:00
kaf24@firebug.cl.cam.ac.uk 4ac792ac1d While native code range-checks the requested address, possibly
truncates the range, and then reads/writes page-wise until possibly
encountering a -EFAULT issue, Xen code accessed the whole range in a
single step, thus not allowing partially succeeding accesses.

From: Jan Beulich

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-02 16:06:51 +01:00
kaf24@firebug.cl.cam.ac.uk 2a335a7802 A few changes to the new 'guest handle' interface:
DEFINE_GUEST_HANDLE -> define_guest_handle

 GUEST_HANDLE        -> guest_handle

 New __define_guest_handle allows handle name different from
 encapsulated type's name (useful for awkward typenames).

 Got rid of xen_ulong, now use guest_handle(ulong).

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-02 14:43:24 +01:00
kaf24@firebug.cl.cam.ac.uk 3244faf9d5 Make sure that installed files have sensible permissions and are owned by the
user running install. Also clean up the install script a little.

Signed-off-by: Horms <horms@verge.net.au>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-02 11:41:48 +01:00
kaf24@firebug.cl.cam.ac.uk e3045add08 Fix problems when creating HVM guest on PAE host with >4G physical memory.
Signed-off-by: Yunhong Jiang yunhong.jiang@intel.com
Signed-off-by: Jun Nakajima jun.nakajima@intel.com
2006-03-02 11:03:34 +01:00
kaf24@firebug.cl.cam.ac.uk 5e167a1c0f merge 2006-03-02 11:00:49 +01:00
kaf24@firebug.cl.cam.ac.uk e9c36ae59a Fix printing of u64 value 'msr_content' to use PRIx64 format.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-02 10:59:34 +01:00
kaf24@firebug.cl.cam.ac.uk 2f760d09a8 Merge xen-ia64-unstable.hg 2006-03-02 10:49:19 +01:00
emellor@leeni.uk.xensource.com f40f145614 Merged. 2006-03-02 03:21:38 +01:00
emellor@leeni.uk.xensource.com 343da423ce Fix violation of C90 mixed-code-and-declarations restriction.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-02 03:21:17 +01:00
vhanquez@kneesa.uk.xensource.com dcb858b089 Removing out-of-date unused file.
current code available in io/xs_wire.h

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-03-02 02:14:45 +00:00
emellor@leeni.uk.xensource.com 03d3577c36 Fix printf.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-02 02:35:23 +01:00
emellor@leeni.uk.xensource.com 06d17943f0 Added a basic integrity checker, and some basic ability to recover from store
corruption, rather than just spewing error messages and exiting.

Added a xenstore-control executable, which sends commands to xenstored.
Currently, the only command is 'check', which triggers an integrity check.
(The integrity check is also triggered whenever a corrupted store is detected).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-02 02:09:23 +01:00
emellor@leeni.uk.xensource.com 8920f45cc8 Silence the messages that are emitted when removing nodes that already have
been removed.  This is fine, in a cleanup script.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-02 02:01:17 +01:00
emellor@leeni.uk.xensource.com 4749c682b0 Avoid a race between Xend removing the vm entries corresponding to a domain,
and the hotplug scripts checking whether that domain is still alive.  This
triggers the "xenstore-read: couldn't read path /local/domain/107/vm" message
in /var/log/xen-hotplug.log, followed by "Device XYZ is mounted in a guest
domain and so cannot be mounted now".

Closes bug #514.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-02 01:59:28 +01:00
kaf24@firebug.cl.cam.ac.uk af77e81a1c Fix problems with HVM PAE guests with >4GB memory.
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2006-03-01 23:41:43 +01:00
kaf24@firebug.cl.cam.ac.uk 4a8c3511f1 Add SVM 32bit msr support (combined both 32bit with 64bit functions)
and enable vlapic for 64bit.

Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-03-01 23:39:43 +01:00
kaf24@firebug.cl.cam.ac.uk 7595516fa0 Clean up SVM 32-bit exits.S file (remove all tsc/fpu).
Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-03-01 23:38:18 +01:00
kaf24@firebug.cl.cam.ac.uk 2c1a8a16e5 Revert two uses of CONFIG_PAGING_LEVELS to CPP rather than C predicate.
Fixes PAE and 64-bit builds.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-01 23:35:55 +01:00
awilliam@xenbuild.aw be6f876fc1 [IA64] sparse update for 2.6.16-rc5
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-03-01 15:06:24 -07:00
awilliam@xenbuild.aw 07d63fd0d0 [IA64] default to SMP
UP builds are not maintained on xen-unstable, we seem to be
running SMP well enough to make the transition.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-03-01 14:15:44 -07:00
awilliam@xenbuild.aw 33677d0c2e [IA64] Turn on CONFIG_XEN_BLKDEV_BACKEND
We relied on the Makefile for building this before, now we
need it set in our .config file.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-03-01 14:12:30 -07:00
awilliam@xenbuild.aw 8bda27c810 merge 2006-03-01 12:47:25 -07:00
kaf24@firebug.cl.cam.ac.uk 71a0b53a1a map_domain_page() now handles running on idle page tables.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-01 18:34:06 +01:00
kaf24@firebug.cl.cam.ac.uk 8c52f78fc5 Disallow cmpxchg8b ptwr emulation for non-pae. Also a few cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-01 18:33:36 +01:00
awilliam@xenbuild.aw f85031ea1e [IA64] Every processor call xen_early_setup (required on SMP-guest to set ivt).
Only BP set running_on_xen.
xensetup.S slightly compacted.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-03-01 10:01:54 -07:00
awilliam@xenbuild.aw 80ab525b55 [IA64] warning cleanup
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-03-01 09:53:17 -07:00
emellor@leeni.uk.xensource.com 3ef81423e2 Remove unused #include <sys/ioctl.h>.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-01 17:52:37 +01:00
awilliam@xenbuild.aw 5cc053b237 [IA64] VTI: updated vtlb, support_non_contiguous memory on vtidomain
Previously VTI-domain only supported contiguous memory,
this patch is intended to make VTI-domain support non-contiguous memory.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-03-01 08:29:00 -07:00
kaf24@firebug.cl.cam.ac.uk c9c1967cb0 Clean wrpt state when emulating CR3 write.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-01 14:49:31 +01:00
kaf24@firebug.cl.cam.ac.uk 10a6fd541c SVM patch to add 64bit hv support.
This patch only modifies svm files.
Tested with c/s 9015 with 32bit hv using UP Dom0, with UP linux and
winxpsp1 unmodified guests.
Tested with c/s 9015 with 64bit hv using UP Dom0, with 32bit and 64bit
UP linux and 32bit winxpsp1.

Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-02-28 22:57:38 +01:00
awilliam@xenbuild.aw f13717e1d9 [IA64] Unused fields in mm_struct commented out.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-02-28 13:18:08 -07:00