Commit Graph
6063 Commits
Author SHA1 Message Date
cl349@firebug.cl.cam.ac.uk dfc7e02e7a Fix bug where transaction fires multiple events.
Add general trace() call to help future debugging.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 15:24:28 +00:00
cl349@firebug.cl.cam.ac.uk df569ddb1c Fix bug where watch messages doesn't go out. Also change xs_test
to more closely represent xenbus behaviour so we can see the bug.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 15:23:50 +00:00
cl349@firebug.cl.cam.ac.uk b4ff7e6103 Allow test.sh to take arg: name of test to start with
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 15:21:32 +00:00
cl349@firebug.cl.cam.ac.uk c86032d118 Make testing more reliable: wait for event after async so we know
child has done command
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 15:21:00 +00:00
cl349@firebug.cl.cam.ac.uk ef07173654 Change watches: operations block until everyone has acked.
Watch events are no longer sent to self
Watches no longer take a priority
async and asyncwait commands for xs_test, now we need to continue
despite blocking ops.
Print test name at end of verbose run on failure.
Use --trace-file arg to xenstored when testing
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 15:20:09 +00:00
kaf24@firebug.cl.cam.ac.uk 71ae53ce26 This patch prevents you from getting a screen full of stack trace when
trying to run commands like xm list as a normal user, and instead provides a
helpful error message.

Signed-off-by: Sean Dague <sean@dague.net>
2005-07-26 15:16:39 +00:00
kaf24@firebug.cl.cam.ac.uk 9ced17e2ab Manual merge. 2005-07-26 15:16:12 +00:00
cl349@firebug.cl.cam.ac.uk e04c630cb2 Change from bool indicating blocked to an enum: when watches go
synchronous this makes it easier (because then we have two reasons
to block)
Instead of using return value, use explicit state member inside
struct connection.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 15:13:56 +00:00
cl349@firebug.cl.cam.ac.uk e08ecc0000 Test and fix acknowedge_watch from returning EINVAL.
Also ensure that daemon re-xmits event if they ack wrong thing
(otherwise confused clients get stuck, as we will send no more
data while awaiting ack).
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 15:09:43 +00:00
cl349@firebug.cl.cam.ac.uk a9c1da21e1 Fix testsuite to ignore tool/ dir.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 15:08:22 +00:00
cl349@firebug.cl.cam.ac.uk d461f09e21 Start of code to persistent store connections when xenstored restarts
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 14:02:33 +00:00
twilkie@paploo.uk.xensource.com 2145204551 Add XenSV back into the repository.
Now uses Python Server Pages, not twisted.
2005-07-26 13:56:30 +00:00
cl349@firebug.cl.cam.ac.uk 967dd235f5 # HG changeset patch
# User Rusty Russell <rusty@rustcorp.com.au>
# Node ID a92163adedcfcff0d05c965d09da747f3c8aa13e
# Parent  63ab20781afa311300f3a8e832744292014ea7f6

Remove ill-conceived concept of watches blocking reply on connection which did write/mkdir/rm/setperm etc.
This causes deadlocks in real life, and I can't see a sane way of avoiding them: it is reasonable for someone to ignore watch notifications while doing other actions, and that means that we can do other writes.  These writes can block pending other watchers; if one of these is the process blocked awaiting our ack, we deadlock.

diff -r 63ab20781afa -r a92163adedcf tools/xenstore/xenstored_core.c
2005-07-26 13:11:01 +00:00
kaf24@firebug.cl.cam.ac.uk a21324269e Fix restart/poweroff properly. From aq. 2005-07-26 10:09:06 +00:00
kaf24@firebug.cl.cam.ac.uk e39ba51523 - allows to optionally boot the system with a policy already being
active at startup; this works by adding a module line into the grub
  configuration file and placing the binary policy generated by the
  policy tool into the boot directory; This assumes that a maximum of
  one module line is used for the initrd in the grub configuration
  file - Question: do users pass more than one module to the kernel?
- enables the policy hypervisor call on x86/64
- some function prototypes moved to include files
- moves the version number in the java tool up to the current
  version (a better way of doing this will be submitted soon)

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Signed-off-by: Reiner Sailer <sailer@us.ibm.com>
2005-07-25 21:19:14 +00:00
kaf24@firebug.cl.cam.ac.uk 5102630952 Improve guest time keeping
Even though we accounted for lost ticks, the accounting was not precise.
Specifically, we didn't account for the delay in calling the ac_timer
handler.

Signed-off-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-07-25 21:03:40 +00:00
kaf24@firebug.cl.cam.ac.uk 2988ab5bf3 Really enable gdbserver for real mode code.
Missed out one instance where we need to check if we're running on
1:1 page tables with guest paging disabled.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-07-25 21:03:25 +00:00
kaf24@firebug.cl.cam.ac.uk accf538cb2 Use hg root instead of bk root.
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-07-25 21:03:05 +00:00
kaf24@firebug.cl.cam.ac.uk 969807247d Restore command line parsing code from qemu-0.6.1
This enables cdrom ejection (both file based and physical i.e. /dev/cdrom)

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-07-25 21:02:50 +00:00
kaf24@firebug.cl.cam.ac.uk 643aa19009 Allow multiple disk images per guest.
Signed-off-by: Yunfeng Zhao <yunfeng.zhao@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-07-25 21:02:34 +00:00
kaf24@firebug.cl.cam.ac.uk 5b459bb5c8 Fix the path to qemu-dm 2005-07-25 21:02:24 +00:00
kaf24@firebug.cl.cam.ac.uk 9412bd75a0 Implement the I/O bitmap vm execution control.
With this patch, we should not bee seeing any vmexits for debug port
accesses.

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-07-25 21:02:09 +00:00
kaf24@firebug.cl.cam.ac.uk ae7da5d7f3 Don't leave behind zombie device model processes
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-07-25 21:01:57 +00:00
kaf24@firebug.cl.cam.ac.uk 7ba92c7b98 Xen full virtualization does not handle unaligned IO with page crossing.
Disable 32-bit PIO as a workaround.

Signed-off-by: Asit Mallick <asit.k.mallick@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-07-25 21:01:42 +00:00
kaf24@firebug.cl.cam.ac.uk 4fb5e20a8d Translate some control characters in the qemu monitor.
This removes odd control characters displayed in the qemu monitor with vnc

Signed-off-by: Edwin Zhain <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-07-25 21:00:30 +00:00
kaf24@firebug.cl.cam.ac.uk 2e3653cb9b Remove extra definition of DBG in pci/irq.c in XenLinux. 2005-07-25 20:41:31 +00:00
kaf24@firebug.cl.cam.ac.uk 1c7d10e63a Fix cross-compile builds by using NM macro instead of nm
binary directly.
2005-07-25 20:33:41 +00:00
kaf24@firebug.cl.cam.ac.uk f1b4ae738d XenLinux restart/poweroff calls 'reboot' or 'poweroff'
as appropriate.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-07-25 20:32:11 +00:00
vh249@firebug.cl.cam.ac.uk a375a464b8 split deallocation from net_tx_action
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-07-25 17:26:32 +00:00
vh249@firebug.cl.cam.ac.uk d4b94c490c add grant table capabilities to netback and netfront.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-07-25 17:07:31 +00:00
vh249@arcadians.cl.cam.ac.uk b25ac30e08 regenerate smp-alt.patch for 2.6.12
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-07-25 09:56:50 +00:00
sd386@font.cl.cam.ac.uk bc8af12377 Local merge
Stephan.Diestelhorst@{cl.cam.ac.uk, inf.tu-dresden.de}
2005-07-22 17:58:52 +00:00
kaf24@firebug.cl.cam.ac.uk c1f454ab0c Port kallsyms to Xen, as 'symbols'.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-07-22 16:44:33 +00:00
sd386@font.cl.cam.ac.uk 100346c84d Fixed extratime scheduling bug, which caused a prioritised dom0 to overtake the whole cpu.
Signed-off by: Stephan.Diestelhorst@{cl.cam.ac.uk, inf.tu-dresden.de}
2005-07-22 15:32:31 +00:00
sos22@douglas.cl.cam.ac.uk b6d8dea8bf In 2.6.12-land, do_debug and do_int3 return void. Make sure we don't try
to use their return values anywhere.

Signed-off-by: Steven Smith, sos22@cam.ac.uk.
2005-07-22 14:25:10 +00:00
kaf24@firebug.cl.cam.ac.uk 55c771f676 Here is a patch to enable Xen to run on a Unisys ES7000 x86_64 system.
Signed-off-by: Aravindh Puthiyaparambil <aravindh.puthiyaparambil@unisys.com>
2005-07-21 15:50:11 +00:00
kaf24@firebug.cl.cam.ac.uk eadf155ee3 Fix problem of can not create two or more vmx guest.
The original gdb server patch will cause the new vmx guest break the=20
old one. This patch make the arch_set_guest_info modify the correct
vmcs and also skip modifying during  creating.


Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>^
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-07-21 14:15:35 +00:00
kaf24@firebug.cl.cam.ac.uk 448ea5b78e Save per cpu IDT information into the VMCS host area.
Without this, we may be saving the IDT info from the wrong cpu into the
vmcs.
This makes domU work in the presence of VMX domains on SMP/HT enabled
machines.

Signed-off-by: Chengyuan Li <chengyuan.li@intel.com>
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>=20
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-07-21 13:59:49 +00:00
kaf24@firebug.cl.cam.ac.uk 88490a29fe Propagate guest MSR writes to machine MSRs immediately
Right now, we have an exposure between the time the MSR is written
and used by an instruction such as syscall. If there is a context
switch and we do vmx_do_restore_msrs(), everything goes fine. But
if we don't, then we execute the syscall with the wrong MSR.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-07-21 13:59:08 +00:00
smh22@firebug.cl.cam.ac.uk a63fbe2fb4 Fix bug.
Signed-off-by: Steven Hand <steven@xensource.com>
2005-07-20 19:45:05 +00:00
kaf24@firebug.cl.cam.ac.uk d122e5411f No need to define io_remap_pfn_range in linux/mm.h. 2005-07-20 17:44:29 +00:00
maf46@burn.cl.cam.ac.uk cca4eb996c Merged by hand. 2005-07-19 12:20:24 +00:00
maf46@burn.cl.cam.ac.uk b9f9f42b3f Shadow mode's writable-PTs should only allow guest kernels access to PTs 2005-07-19 10:40:26 +00:00
kaf24@firebug.cl.cam.ac.uk cadfa803a9 Fix wallclock timebase extraction in XenLinux.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-07-19 09:26:18 +00:00
kaf24@firebug.cl.cam.ac.uk b32508c783 Simplify and fix the error-correction factor during
local timer calibration.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-07-19 08:52:32 +00:00
djm@kirby.fc.hp.com c64151839f Fix and turn back on unat checking in fast paths 2005-07-18 17:44:14 -07:00
djm@kirby.fc.hp.com 84c2249daf Get FPU working on context_switch 2005-07-18 14:05:04 -07:00
djm@kirby.fc.hp.com c1c7fbd0c1 Use hda1, not sda1 2005-07-18 13:23:36 -07:00
kaf24@firebug.cl.cam.ac.uk bbb0eb3225 First cut of new time interfaces and synchronisation mechanisms.
Based on an initial patch from Don Fry at IBM.
Still TODO: 
 1. Testing
 2. NTP synchronisation
 3. Fix wallclock interface a bit
 4. Support for platform timers other than PIT (e.g., HPET, IBM Cyclone)
 5. Scale 64-bit TSC diffs instead of 32-bit, just for sanity
 6. Error-correcting scale factor is still slightly wrong
 6. More testing
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-07-18 20:22:11 +00:00
djm@kirby.fc.hp.com ebdbf5d84e Properly implement PAL_PTCE_INFO for Xen
Pull out PAL_VM_SUMMARY, reimplement later
Turn off ar.unat code in fast paths by default for now
Fix vcpu_fc
Signed-off by: Dan Magenheimer <dan.magenheimer@hp.com>
2005-07-18 11:48:21 -07:00