Commit Graph
6761 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk a6869d9d5c synch_bitops.h is an arch-specific header file.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-13 10:40:29 +00:00
kaf24@firebug.cl.cam.ac.uk dfadead31c Newer binutils is a bit stricter and errors out when you try
to use movl on a 16 bit word on x86_64.  Using just a "mov"
compiles fine and should result in the same code.

{standard input}: Assembler messages:
{standard input}:2138: Error: suffix or operands invalid for `mov'
{standard input}:2140: Error: suffix or operands invalid for `mov'
{standard input}:2142: Error: suffix or operands invalid for `mov'
{standard input}:2144: Error: suffix or operands invalid for `mov'

Signed-off-by: Rik van Riel <riel@redhat.com>
2005-09-13 10:21:22 +00:00
cl349@firebug.cl.cam.ac.uk 92c31657be merge? 2005-09-13 10:14:20 +00:00
cl349@firebug.cl.cam.ac.uk 1a93386154 Fixed consoled race condition.
Signed-off by: Andy Peace <andrew.peace@xensource.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-13 10:13:52 +00:00
kaf24@firebug.cl.cam.ac.uk 343e4992d1 domain_crash_synchronous() on x86_64 causes Xen to crash because
it tries to dereference an invalid stack address. The patch below
fixes this. The patch also updates show_registers() to print the
same information as its x86_32 equivalent.

Signed-off-by: Leendert van Doorn <leendert@watson.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-13 10:12:40 +00:00
cl349@firebug.cl.cam.ac.uk 398a3f5679 Prevent opening the xenbus device if the store isn't connected yet.
Running xenstore clients using the xenbus device before the store
connection has been set up causes a crash because the store page
won't have been allocated yet.  This is only a problem in dom0 where
we setup the store page from the PRIVCMD_INITDOMAIN_STORE ioctl.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-13 10:05:49 +00:00
cl349@firebug.cl.cam.ac.uk a7184036ff merge? 2005-09-13 09:11:58 +00:00
kaf24@firebug.cl.cam.ac.uk d9ce2a8e73 Fix a bug in shadow_remove_all_access_in_page.
Fixes a fairly obvious bug, in which an if statement was reversed.  The
bug has been present for a while, so apparently this code isn't well
tested.

Signed-off-by: Michael Vrable <mvrable@cs.ucsd.edu>
2005-09-13 09:09:59 +00:00
cl349@firebug.cl.cam.ac.uk 7c24518512 Fix up testsuite from recent changes.
(1) Make TESTDIR relative (my directory exceeded 108 chars, breaking sockets)
(2) Make TESTDIR if it doesn't exist
(3) Add dummy xc_domain_getinfo and xc_evtchn_bind_virq for fake libxc
(4) Fix tests broken by b594bb976a743d509f1ffabb5bc698874ab90d8f
(5) domain_cleanup() can be static, as it's not used elsewhere.
(6) With -Werror, "use" unused variable in domain_init() if TESTING
(7) Remove debugging printf on watch without perms.
(8) Loosen timeout in xs_test (valgrind + slow machine == bogus timeouts)

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (authored)
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-13 09:09:13 +00:00
cl349@firebug.cl.cam.ac.uk af94cd2a06 Put xenstored.h in linux-public include dir.
Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-13 08:35:41 +00:00
cl349@firebug.cl.cam.ac.uk bd843d47d8 Always allow overriding where clients connect through XENSTORED_PATH.
Detect if we're connecting to a socket or to the domain device and
open accordingly.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-12 21:42:26 +00:00
cl349@firebug.cl.cam.ac.uk 493519fd23 Change xenbus_dev interface from ioctl to read/write.
Check boundaries so we can recover if userspace dies.
Also simplifies libxenstore.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-12 21:12:16 +00:00
cl349@firebug.cl.cam.ac.uk 849d58c0c2 Add xenstore-list and xenstore-exists clients
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-12 20:46:37 +00:00
cl349@firebug.cl.cam.ac.uk 84592bf97c Check the return value of chdir(2) and write(2).
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-12 20:24:58 +00:00
cl349@firebug.cl.cam.ac.uk d75b89f0b5 merge? 2005-09-12 20:00:41 +00:00
cl349@firebug.cl.cam.ac.uk 79b6a582e9 Switch vtpm device setup/teardown over to xstransact.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-12 19:59:40 +00:00
cl349@firebug.cl.cam.ac.uk d880fc6ac1 Switch block device setup/teardown over to xstransact.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-12 19:55:57 +00:00
cl349@firebug.cl.cam.ac.uk ce38a72dc5 Remove debug output.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-12 19:49:59 +00:00
cl349@firebug.cl.cam.ac.uk eccd1bf398 Move block device bind/unbind into hotplug scripts.
Fixes file: devices since unbind now runs after the backend driver
closes the loopback device.
Also moves name -> node translation into the backend domain.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-12 19:49:03 +00:00
cl349@firebug.cl.cam.ac.uk 781cbee39d Don't remove backend store directory before device_unregister.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-12 19:46:30 +00:00
cl349@firebug.cl.cam.ac.uk 9905251946 Export backend device store path to hotplug script.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-12 19:45:54 +00:00
kaf24@firebug.cl.cam.ac.uk b29fc06bed This patch remove the L2 pin for 1:1 page table on control panel.
L2 pin for 1:1 page table on control panel cause entries for top 64M
address changed by alloc_l2_table().

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
2005-09-12 17:48:07 +00:00
kaf24@firebug.cl.cam.ac.uk 999ef6d9c5 The last vnet patch was missing some files that had been added
to my tree but did not appear in 'hg diff'. This patch adds them.

Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-09-12 14:11:59 +00:00
kaf24@firebug.cl.cam.ac.uk 0cbc2f5eb4 Re-indent xc_linux_restore, and add code to force PAE
root pgdirs below 4GB on restore.

Signed-off-by: Ian Pratt <ian@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-12 12:48:33 +00:00
cl349@firebug.cl.cam.ac.uk b694a06279 merge? 2005-09-12 12:32:20 +00:00
cl349@firebug.cl.cam.ac.uk d9d954e187 Always fire watches, even on the connection which caused the watch to fire.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-12 12:31:41 +00:00
kaf24@firebug.cl.cam.ac.uk 15a40c9975 Xen_version hypercalls takes two args, not one.
Signed-off-by: Ian Pratt <ian@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-12 12:29:40 +00:00
kaf24@firebug.cl.cam.ac.uk fbfaadacd8 mlock argument to version hypercall in libxc.
Signed-off-by: Ian Pratt <ian@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-12 12:17:31 +00:00
kaf24@firebug.cl.cam.ac.uk 47717fb60b Improve debug tracing from HYPERVISOR_memory_op().
Signed-off-by: Ian Pratt <ian@xensource.com>
2005-09-12 12:10:43 +00:00
vh249@arcadians.cl.cam.ac.uk bf4e85d392 removing XEN_LOCALVERSION for a smaller alternative
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-09-12 10:54:30 +00:00
kaf24@firebug.cl.cam.ac.uk ec564e53d5 Re-indent vmx code.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-11 16:44:23 +00:00
kaf24@firebug.cl.cam.ac.uk 9c56a98430 Yes, that fixes the problem, our patches crossed. I saw Keir already
integrated my patch and while it is harmless, it is redundant and
here is the diff to take it out.

The patch also addresses some indent problems and aligns instructions
up with the rest of the block.

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
2005-09-11 16:36:24 +00:00
vh249@arcadians.cl.cam.ac.uk da6356e5ae add XEN_LOCALVERSION to the dist building process
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-09-11 16:34:38 +00:00
kaf24@firebug.cl.cam.ac.uk 795972d0a4 An FC4/i386 install inside VMX on an x86_64 system fails because byte
size is not handled by __set_reg_value. This patch adds that support.

This patch also reindents Chengyuan Li cmpb patch so that is aligns
with the rest of the code in that block.

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
2005-09-11 09:28:21 +00:00
cl349@firebug.cl.cam.ac.uk 658616e334 Restore NULL checks before calling kfree().
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-10 20:14:50 +00:00
vh249@arcadians.cl.cam.ac.uk 98806d61af add a simple usage string to xenconsoled
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-09-10 14:44:31 +00:00
vh249@arcadians.cl.cam.ac.uk e3683d26f5 fix ballooning out logic to handle dying domain freeing memory.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-09-10 14:43:46 +00:00
vh249@arcadians.cl.cam.ac.uk 8871e563d4 use XEN_FULLVERSION variable where possible
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-09-10 14:42:39 +00:00
vh249@arcadians.cl.cam.ac.uk 911029bbef remove pointless NULL check before calling kfree
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-09-10 14:41:16 +00:00
vh249@arcadians.cl.cam.ac.uk 6fb79305d3 convert initializers to C99 initializers
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-09-10 14:38:01 +00:00
kaf24@firebug.cl.cam.ac.uk 8574ea5619 With this patch, 32-bit binary can work on 64-bit VMX guest.
Signed-off-by: Chengyuan Li <chengyuan.li@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Asit Mallick <asit.k.mallick@intel.com>
2005-09-10 14:24:39 +00:00
kaf24@firebug.cl.cam.ac.uk 068dccf437 This patch fixes xenlinux timer interrupt.
In xenlinux timer interrupt variable cpu is sometimes uesd in a for
loop, but later it is used to access per cpu data i.e.
per_cpu(processed_system_time, cpu), which causes an invalid pointer.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2005-09-10 14:22:12 +00:00
kaf24@firebug.cl.cam.ac.uk 6c78d04f75 This patch fix a bug in set_reg_value() for x86_64 VMX guest.
Signed-off-by: Chengyuan Li <chengyuan.li@intel.com>
2005-09-10 14:20:29 +00:00
kaf24@firebug.cl.cam.ac.uk 642c5961d3 One more instruction for the VMX MMIO decoder.
This patch is to handle the instruction with opcode 0x80.
Without this patch, the 64-bit VMX guest can't boot.

Signed-off-by: Chengyuan Li <chengyuan.li@intel.com>
2005-09-10 14:19:09 +00:00
kaf24@firebug.cl.cam.ac.uk c834c5e778 Fix bug that service os & vmx guest can't communicate with
each other. The bug was physical packets smaller than
minimal packet size of 60 bytes were gettign thrown away.
Hence ARP traffic for example was dropped.

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
2005-09-10 14:17:02 +00:00
shand@ubuntu.eng.hq.xensource.com b1f3138ed7 Fix xm info handling of empty strings (fix bugzilla bug #216)
Signed-off-by: Steven Hand <steven@xensource.com>
2005-09-09 15:11:18 -08:00
shand@ubuntu.eng.hq.xensource.com cd75a1b28f Fix 'xm info' (sizeof(param) doesn't do that one might hope).
Signed-off-by: Steven Hand <steven@xensource.com>
2005-09-09 10:36:48 -08:00
cl349@firebug.cl.cam.ac.uk 288f60bb0b merge? 2005-09-09 17:40:39 +00:00
cl349@firebug.cl.cam.ac.uk c51551e9e9 Make vif cleanup use xstransact and use classmethods for setup.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-09 17:36:39 +00:00
cl349@firebug.cl.cam.ac.uk f27cc5f7c7 Add remove and list support. Also make all class methods "safe".
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-09 17:34:40 +00:00