Commit Graph
9248 Commits
Author SHA1 Message Date
vhanquez@kneesa.uk.xensource.com 9d34613c4e move XS_DEBUG code into a proper function
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-03-15 12:08:10 +00:00
kaf24@firebug.cl.cam.ac.uk 5ad9b84e65 Remove unused macro VMX_CPU_STATE_PG_ENABLED.
Use vmx_paging_enabled() instead.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-03-15 12:41:58 +01:00
kaf24@firebug.cl.cam.ac.uk 2cc7ae652d Fix 64-bit build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-15 12:40:42 +01:00
vhanquez@kneesa.uk.xensource.com ba07c577c6 Do not BUG when receiving unexpected message type from xenbus
print a warning and discard the query

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-03-15 11:09:45 +00:00
Ian.Campbell@xensource.com 65749e4633 There is no need to pin page tables when XENFEAT_writable_page_tables
is enabled.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-03-15 10:33:43 +00:00
kaf24@firebug.cl.cam.ac.uk 40caad2490 Fix x86/64 HVM assertion failure.
Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-03-15 11:09:20 +01:00
kaf24@firebug.cl.cam.ac.uk 2c8dbad938 I've found it useful to display the panic message *before* dropping into the
debugger. Once there it may be very difficult to find the original message, 
and often a debugger isn't even needed if you can see what panicked.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-03-15 11:07:26 +01:00
kaf24@firebug.cl.cam.ac.uk 72e3f22324 Unlike x86 and apparently ia64, PowerPC delivers timer interrupts as a
different exception than device interrupts. For PowerPC Xen, we emulate this 
exception rather than delivering timer events as virtual IRQs. This patch 
introduces no functional changes for x86 and ia64, but is a required change 
for xen/arch/ppc.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-03-15 11:06:45 +01:00
kaf24@firebug.cl.cam.ac.uk 92d6391152 Add extra tracing near a commonly-failing scheduler assertion.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-15 10:32:34 +01:00
kaf24@firebug.cl.cam.ac.uk badff410e4 Define a new sched_op hypercall called sched_op_new, which differs from the
legacy hypercall in that it takes a pointer to a block of extra arguments
rather than an opaque unsigned long. The old hypercall still exists, for
backwards compatibility.

The new hypercall supports new sub-command SCHEDOP_poll, which can be used to
wait on a set of event-channel ports with an optional timeout. This is exported
in XenLinux as HYPERVISOR_poll, and used in the pcifront driver to wait on a
response from the pciback driver.

Can also be used for debuggers. :-)

Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: John Levon <john.levon@sun.com>
2006-03-14 19:33:45 +01:00
kaf24@firebug.cl.cam.ac.uk a555857793 Add a read barrier to the time-values-uptodate xenlinux time checking function.
Also fix monotonic clock to use just a compile barrier instead of smp_rmb.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-14 17:35:38 +01:00
kaf24@firebug.cl.cam.ac.uk 682857ee1f Fix ASSERT failure caused by NX support code on x86_64
When turning on debug for x86_64, ASSERT(gpfn =3D=3D (gpfn & =
PGT_mfn_mask))
in __shadow_status will fail, this patch makes the NX support code
comply with this ASSERT.
NB: NX on PAE xen is not supported yet.

Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2006-03-14 16:09:34 +01:00
kaf24@firebug.cl.cam.ac.uk d90f68966f When both stolen and blocked are rounded down, it is possible for the
final increment of the cpu local processed_system_time to move the cpu
local system time ahead a bit further than expected - but still proper
wrt. wall clock time.

This gives problems on a next timer interrupt, when stolen and blocked
both get rounded up and end up incrementing the per cpu
processed_system_time too far.

These simple checks make sure that the cpu local processed_system_time
never gets advanced too far.  Not advancing the variable now should be
fine, since we'll increment it at the next timer tick...

This patch has made the "time went backwards" error messages go away
completely.

Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-14 16:00:16 +01:00
kaf24@firebug.cl.cam.ac.uk 2468b923c2 Xen/ia64 build fixes.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-03-14 15:45:00 +01:00
kaf24@firebug.cl.cam.ac.uk 8c491b9a9c Trivial ia64 tools build fix.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-03-14 15:44:04 +01:00
kaf24@firebug.cl.cam.ac.uk 2bf4b75ed5 Fix a bug which occurs when Xen is compiled with debug=y. Destroying a
32-bit HVM guest on x86/64 will cause a Xen hang.

Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
2006-03-14 15:43:10 +01:00
kaf24@firebug.cl.cam.ac.uk 98b23dd14f Fix the bug that hvm domain network breaks after xm reboot. Root
cause: qemu network related info is not saved in xenstore, so after
reboot, this information is missing, and qemu can not start network.

Signed-off-by: Haifeng Xue <haifeng.xue@intel.com>
2006-03-14 15:40:44 +01:00
kaf24@firebug.cl.cam.ac.uk 3ba36f3595 Fix build error with -Wstrict-prototype.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-14 15:36:40 +01:00
kaf24@firebug.cl.cam.ac.uk 0c5dfaeeb4 Fix memory leak in xc_domain_dumpcore and simplify copy_from_domain_page.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-14 15:33:57 +01:00
kaf24@firebug.cl.cam.ac.uk 596876059c Fix a typo in a comment -- vmxloader is now hvmloader.
Signed-off-by: Andrew D. Ball <aball@us.ibm.com>
2006-03-14 15:26:54 +01:00
kaf24@firebug.cl.cam.ac.uk d82dd13c9e Fix PAE ptep_get_and_clear_full(). The fast path requires us to manually clear
the low half before the high half. Otherwise the compiler may reorder the writes
and validation in Xen will fail.

From: Jan Beulich
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-14 15:25:33 +01:00
kaf24@firebug.cl.cam.ac.uk 021c621639 Initialise blkfront_info to zeroes after allocating it.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-14 15:18:35 +01:00
kaf24@firebug.cl.cam.ac.uk b239cb21c0 Revert some of the bigger changes in c/s 9217 as these have been
causing problems for a few people:
 1. HVM guests can now have page directories with unknown
    back pointers (I think this is the cause of problems that
    Jun Nakajima was seeing).
 2. L1 pagetable pinning requests are no longer ignored (may
    be the cause of problems Joe Bonasera was seeing).
 3. The PGT_va_mutable flag has been reintroduced, but for
    L1 pagetables only.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-14 13:01:43 +01:00
kaf24@firebug.cl.cam.ac.uk 4e20802918 Clean up block-device hotplug routines in xenlinux.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-13 15:06:58 +01:00
kaf24@firebug.cl.cam.ac.uk 1094009e12 Add a 't' debug key to Xen for displaying info about cross-cpu clock jitter.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-13 13:03:51 +01:00
kaf24@firebug.cl.cam.ac.uk 3fdba55fbb Make time-backwarsd warning a run-time configurable option.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-13 13:03:18 +01:00
kaf24@firebug.cl.cam.ac.uk 8a68ed87f8 The existing xc_domain_dumpcore is very specific to disk/file based
output.  Refactor the code slightly to allow more user-specified
control.  This is done by adding a parallel
xc_domain_dumpcore_via_callback, which allows the specification of a
callback routine and an opaque argument block.  The existing dumpcore
routine is modified to use the callback for all write operations and
to turn the single seek into a small write (it's for page alignment).

Signed-off-by: Ben Thomas <bthomas@virtualiron.com>
2006-03-13 11:47:56 +01:00
emellor@leeni.uk.xensource.com a04a7ff5d7 xm top was listed twice in the help message -- remove it from the Host Commands
section, leaving it in the Domain Commands section.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-13 11:10:27 +01:00
kaf24@firebug.cl.cam.ac.uk 8a61bf3f2f Fix broken assertion in SEDF scheduler.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-13 10:49:45 +01:00
kaf24@firebug.cl.cam.ac.uk 1e0419bfee No need to pin/unpin intermediate pagetables in x86/64 xenlinux.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-12 19:37:38 +01:00
kaf24@firebug.cl.cam.ac.uk f48224b208 Ignore pinning of other than root page directories. Disallow
creation of pagetables with 'va_unknown' page-directory backptrs.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-12 19:37:00 +01:00
kaf24@firebug.cl.cam.ac.uk d8864ab7b3 Add missing include of a header file to avoid a compile warning.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-12 10:03:33 +01:00
kaf24@firebug.cl.cam.ac.uk b4adf19334 pciback sends evtchn notification to pcifront when its request is processed.
This may in future allow pcifront to avoid spin-waiting.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-12 09:52:19 +01:00
emellor@leeni.uk.xensource.com a6ecc050ac Merged. 2006-03-11 15:40:33 +01:00
emellor@leeni.uk.xensource.com b8a074a337 Remove blank line -- this was causing all the tests to be run twice, because
the blank line is interpreted as running make check in tests/.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-11 15:40:26 +01:00
emellor@leeni.uk.xensource.com fa5d293962 Merged. 2006-03-11 11:53:22 +01:00
emellor@leeni.uk.xensource.com 47c5f83bbf Define TESTS to be the .test files, not the .py files, otherwise the chmod +x
doesn't get called.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-11 11:52:40 +01:00
root@dyn9047022116.beaverton.ibm.com 8f846225c2 HG Patch
Add feature to layer xm-test tests, grouping of tests by casename and
execution of tests by user specified lists.

Signed-off-by: Woody Marvel <marvel@us.ibm.com>
2006-03-11 11:46:38 +01:00
emellor@leeni.uk.xensource.com 99aa5b9d69 - Reworked to use your match_domid suggestion and filtering
- Aligned output and help to fit within 80 char limit
- User now deals in milliseconds instead of nanoseconds
- Fixed some missing parens in tests (I had pushed stale versions)
- Updated tests to deal with period/slice/latency in ms

root@bebop:~/xm-test.sedf/tests/sedf # xm sched-sedf
Name                              ID Period(ms) Slice(ms) Lat(ms) Extra Weight
Domain-0                           0      20.0      15.0     0.0      1      0

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
2006-03-11 11:45:10 +01:00
emellor@leeni.uk.xensource.com ac66d2a120 Merged. 2006-03-11 11:20:32 +01:00
emellor@leeni.uk.xensource.com 9956421b1d Trivial fix to bind implementation.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-11 11:19:11 +01:00
kaf24@firebug.cl.cam.ac.uk 42aaf2e8b4 Changeset 9134 introduced a caching mechanism when xenbus_switch_state
is invoked. This causes a problem in the resume part of a suspend-resume
cycle due to the backend not seeing that a state in the frontend was
set. This patch fixes this in the TPM frontend driver.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-03-11 10:49:28 +01:00
kaf24@firebug.cl.cam.ac.uk 228c2668d1 Currently if one tries to execute VMX instruction from inside the
VMX guest, the Xen hyper visor has no handling of it resulting in a
bug(). This patch handles such VMX instructions from the guest returning
invalid opcode to the guest. Also the macro VMX_INVALID_ERROR_CODE is
renamed to the more meaningful VMX_DELIVER_NO_ERROR_CODE.

Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-Off-By: Jun Nakajima <jun.nakajima@intel.com>=20
2006-03-11 10:47:55 +01:00
kaf24@firebug.cl.cam.ac.uk 996548fdac Enable the ejection of the physical cdrom tray, when user enters
"eject cdrom" in the control console of a VMX guest.

Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
2006-03-11 10:44:48 +01:00
kaf24@firebug.cl.cam.ac.uk 945758df89 More build config changes:
- Build -O2 rather than -O3
 - Build with -Wstrict-prototypes
 - Move target-specific generic compiler switches to Config.mk

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-10 17:32:04 +01:00
kaf24@firebug.cl.cam.ac.uk 27d7304ed7 Replace memory_op subcommands reserved_phys_area and map_shared_info
with new subcommand add_to_physmap.

This changes the domain0 tools interface, but only when building
shadow-translate-mode guests.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-10 16:00:36 +01:00
cl349@firebug.cl.cam.ac.uk 16c73f7f6c Map grant table pages in vmalloc kernel address space instead of fixmap.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-03-10 13:27:24 +00:00
emellor@leeni.uk.xensource.com 4c60bf6232 Minor fix to error message.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-10 11:47:24 +01:00
emellor@leeni.uk.xensource.com c785b4684e Simplify the interface into httpserver and UnixHttpServer -- the root and
interface parameters are always used, so there's no need for them to be named
parameters with defaults.

Remove unused httpserver.getRoot and getPort, and simplify the main request
loop.  This means that socket errors do not have to be squelched.

Coalesce the two identical bind methods, one in UnixHttpServer, one in
UnixListener.  Fix this bind method to set the permissions on the socket
explicitly.  This closes a security hole, and fixes the intermittent failure
of xm-test/06_list_nonroot.test.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-10 11:44:03 +01:00
emellor@leeni.uk.xensource.com 95c4e70768 Untangle XendRoot and XendLogging by having XendLogging check the global
params.XEND_DEBUG value itself.  This removes the need for addLogStderr and
removeLogStderr.  Remove the maxBytes and backupCount parameters to init, as
they are unused and we only use the hardcoded values anyway.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-10 11:38:15 +01:00