Commit Graph
5536 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk ef6edef8f8 bitkeeper revision 1.1739 (42ba886dkLcSLF35FYJLZkKeANRJYg)
Trivial cleanup in netfront driver.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-23 10:01:17 +00:00
kaf24@firebug.cl.cam.ac.uk deddd053dd bitkeeper revision 1.1738 (42ba87barFA27QtqNiI4v7D2u57koA)
This is a patch to the README file to provide the missing
info on building from the source tree. It's by no means
clean, complete or even necessarily correct - just a first
draft to get the doc/instructions going.

All cleanups would be appreciated.

Signed-off-by: Nivedita Singhvi <niv@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-23 09:58:18 +00:00
kaf24@firebug.cl.cam.ac.uk e24b80a505 bitkeeper revision 1.1737 (42ba86724fSOFpp6L107qJDWXNKxug)
Attached is the patch with
        1. Cleanup of code & correct error handling for MMIO
instructions.
        2. Decoding of 64bit instructions for MMIO.


  Signed-Off-By: Chengyuan Li <chengyuan.li@intel.com>
  Signed-Off-By: Yunhong Jiang <hunhong.jiang@intel.com>
  Signed-Off-By: Jun Nakajima <jun.nakajima@intel.com>
  Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
2005-06-23 09:52:50 +00:00
arun.sharma@intel.com[kaf24] d79fbdeea9 bitkeeper revision 1.1736 (42ba85d8Vh1WXA4F1eQpFRpsTyq1xg)
[PATCH] sysenter-msr.patch

Handle MSR reads/writes to sysenter related MSRs.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
Signed-off-by: Chengyuan Li <chengyuan.li@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-06-23 09:50:16 +00:00
kaf24@firebug.cl.cam.ac.uk 18dc46379c bitkeeper revision 1.1735 (42ba857eIL9j0maam3-Dv-gI3hOJUw)
Don't zero the vcpu flags in domain builder.
Signed-off-by: Scott Parish <srparish@us.ibm.com>
2005-06-23 09:48:46 +00:00
kaf24@firebug.cl.cam.ac.uk 4dbc47c461 bitkeeper revision 1.1734 (42ba83ba7bRweVDldhJ4nYZQomQ8Lg)
Fix the x86/64 build. My change to make PAGE_SIZE a signed quantity
also made it int rather than long, which turns out to break stuff.
Debugged by Xin Li at Intel.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-23 09:41:14 +00:00
kaf24@firebug.cl.cam.ac.uk f5484a99a5 bitkeeper revision 1.1733 (42ba827d4k5gz1Dasgd0gorMu-SSmQ)
The 32-bit x86 LTP exposed bugs with LDT handling with x86_64 Xen and
XenLinux:
- fill the code for arbitrary_virt_to_machine(XenLinux)
- set 64-bit value for the base address for LDT (Xen)
- fix a bug (64-bit cleanup) in map_ldt_shadow_page (Xen)

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2005-06-23 09:35:57 +00:00
kaf24@firebug.cl.cam.ac.uk d67f8a3d01 bitkeeper revision 1.1732 (42ba7fc5JvRaJiT14LMkB8SUdohfeA)
The attached patch now allows x86_64 xenlinux to run 32-bit x86 binaries
as the native x86_64 Linux does. I checked LTP using 32-bit binaries,
and got the same results on the native x86_64 Linux. At this point, 'int
0x80' is used for system calls, as it's unlikely that the fast systems
(sysenter or syscall) are significantly faster under the current
trampoline mechanism. However, it should be easy to replace
vsyscall-int80 with the fast system calls if one wants to do so (look at
USE_INT80 in the patch).

I found bugs with LDT handling in x86_64 Xen/XenLinux (exposed by 32-bit
LTP testcases fork05 and modify_ldt02), and the bugs have been fixed by
a separate patch in the next email:=20
[PATCH] [x86_64] Fixing LDT handling with x86_64 Xen

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2005-06-23 09:24:21 +00:00
kaf24@firebug.cl.cam.ac.uk 07b33c0a71 bitkeeper revision 1.1731 (42ba7ea7qvujqMf6s6vK-pJzJhkEBA)
The attached patch replaces the three hypercalls with a signle
multi-call in switch_mm, as x86 xenlinux does.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2005-06-23 09:19:35 +00:00
kaf24@firebug.cl.cam.ac.uk 61724bdcde bitkeeper revision 1.1730 (42ba7dbdkTADQfBqHaC_Ynqo3i1ZVw)
The xc_domain_getinfo does not clear the info structure before filling 
it in, and in some circumstances it doesn't completely fill in the 
structure for each domain.  In particular, it sets the crashed flag if 
the domain has crashed, but does not clear it if the domain has not 
crashed, so the crashed flag may be random stack garbage from the 
calling program.  With the attached patch (against the latest nightly), 
xc_domain_getinfo zeroes the array of info structures before filling 
them in.

Signed-off-by: Josh Triplett <josht@us.ibm.com>
2005-06-23 09:15:41 +00:00
arun.sharma@intel.com[kaf24] dee0a637a4 bitkeeper revision 1.1729 (42ba7d48EFeRBiv6YMxK_aR9binchA)
[PATCH] novnc-dryrun.patch

Don't start VNC on a dry run.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-06-23 09:13:44 +00:00
cl349@firebug.cl.cam.ac.uk 2ad3ddaca5 bitkeeper revision 1.1728 (42ba7c8fYqjC4xLUEtbo7JJInxdnqA)
Merge firebug.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into firebug.cl.cam.ac.uk:/local/scratch/cl349/xen-unstable.bk
2005-06-23 09:10:39 +00:00
smh22@firebug.cl.cam.ac.uk 063a38978a bitkeeper revision 1.1726.2.5 (42ba7c68cP1Z3SmHyVl4grEnN-Yf8g)
minor xense tool updates

Signed-off-by: Steven Hand <steven@xensource.com>
2005-06-23 09:10:00 +00:00
kaf24@firebug.cl.cam.ac.uk 0857c2fc47 bitkeeper revision 1.1726.2.4 (42ba7764ufxk9A-swAcfL3FabbYQ2w)
Fix alloc_{l2,l3}_table to correctly compute longword-sized virtual
address from int-sized pagetable index. Based on discussion from
Scott Parish and Jan Beulich.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-23 08:48:36 +00:00
kaf24@firebug.cl.cam.ac.uk 8a6c33ded1 bitkeeper revision 1.1726.2.3 (42ba7587nwhnhQJ_hDkHTk8kTKtAFw)
Make sure we save errno across error-path printfs and munlocks. Based
on a patch from Anthony Liguori.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-23 08:40:39 +00:00
kaf24@firebug.cl.cam.ac.uk 40c6180f82 bitkeeper revision 1.1726.2.2 (42ba6dec5qH_zwE0b8JXa-7ZaJ825w)
More user friendly panic line if dom0 kernel not specified to Xen.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2005-06-23 08:08:12 +00:00
kaf24@firebug.cl.cam.ac.uk 8d0dbee96a bitkeeper revision 1.1726.2.1 (42ba6dcaSODxvHIftq9c1t2jDb4htA)
Include ACM header file in libxc header file.
2005-06-23 08:07:38 +00:00
kaf24@firebug.cl.cam.ac.uk aa124bc09a bitkeeper revision 1.1726.1.4 (42b9a3227hiEkDxIFEfJ234PDK9C8w)
Enable NX bit support in 32-bit pae mode.
Signed-off-by: Gerd Knorr <kraxel@bytesex.org>
2005-06-22 17:42:58 +00:00
kaf24@firebug.cl.cam.ac.uk 8db6546ae8 bitkeeper revision 1.1726.1.3 (42b9a279xCcev3J_vAFv3hHoqI8lVw)
Add cmpxchg8b support for writable page tables
(emulation code path), which is needed to make atomic pae l1
page table updates work.
Signed-off-by: Scott Parish <srparish@us.ibm.com>
2005-06-22 17:40:09 +00:00
kaf24@firebug.cl.cam.ac.uk f53c886022 bitkeeper revision 1.1726.1.2 (42b9799cvxl7PK_CkhwRTPueXP17ew)
Fix defintion of PAGE_MASK so that pae builds again.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-22 14:45:48 +00:00
kaf24@firebug.cl.cam.ac.uk 09ae1e9ce6 bitkeeper revision 1.1726.1.1 (42b973245ua3LQyqFtGRwXDwnRLDPw)
Compile-time ACM null-ops disables build of acm files.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-22 14:18:12 +00:00
cl349@firebug.cl.cam.ac.uk 3f31e24775 bitkeeper revision 1.1727 (42b7f582gUHqAUb5mTuwLQl2pH6LXA)
ignore: Add tools/policy/policy_tool and tools/policy/xen/*.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-21 11:09:54 +00:00
cl349@firebug.cl.cam.ac.uk be51472d62 bitkeeper revision 1.1726 (42b7f1bfzMUFLRiUR9wWkzc2mh-Ing)
Add new control messages for vcpu hotplug events.  Via the
xm vcpu-hotplug sub-program, vcpus in domains can be enabled/disabled
when CONFIG_HOTPLUG_CPU is enabled in the target domain's kernel.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-21 10:53:51 +00:00
cl349@firebug.cl.cam.ac.uk 116e79a98f bitkeeper revision 1.1725 (42b7e4fcombAuDB0AR2i8hfnOEMfOQ)
sched.h, xen.h, schedule.c, dom0_ops.c, hypercall.h, smpboot.c, process.c:
  Extend the CONFIG_HOTPLUG_CPU behavior down into the hypervisor.
  Adds two SCHEDOPS (vcpu_down/vcpu_up) which set/clear VCPU flag VCPU_down.
  The domain_runnable() check now looks at this flag and subsequently the
  vcpu is not scheduled when VCPU_down is set.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-21 09:59:24 +00:00
cl349@firebug.cl.cam.ac.uk 1e6b0c78d8 bitkeeper revision 1.1724 (42b7d6f60v0z2ZEkw36W_1joFfySfw)
Make xs_read/read_reply allocate an extra byte and put a nul character
at the end of objects to allow easy use as a string.
From: Rusty Russell <rusty@rustcorp.com.au>                                     
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-21 08:59:34 +00:00
smh22@firebug.cl.cam.ac.uk 26922e5f08 bitkeeper revision 1.1723 (42b7c4f7lKvZiHctN9YxRzuWreG0iQ)
quiet xm ssid-ref output for now - use policy tool or -l for details
2005-06-21 07:42:47 +00:00
leendert@watson.ibm.com[iap10] 65227c4552 bitkeeper revision 1.1722 (42b7bcc4JmG_ITQ35E28L1mWc_g_ZQ)
[PATCH] ioemu-monitor.patch

The following patch adds back qemu monitor commands to qemu-dm which
make sense. That is, eject and change devices, and show some device
state.

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>

===== tools/ioemu/monitor.c 1.1 vs edited =====
2005-06-21 07:07:48 +00:00
leendert@watson.ibm.com[iap10] ddacfe870c bitkeeper revision 1.1721 (42b7bc5cSB_7vlyUCCpWT0qq4GN_xg)
[PATCH] vmxassist-cleanup.patch
Some minor fixups and improved debug output.

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
2005-06-21 07:06:04 +00:00
iap10@freefall.cl.cam.ac.uk 22e32f8c3c bitkeeper revision 1.1720 (42b7bb86ag6KD5OEx2v6YdSnS1BhGQ)
Merge freefall.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into freefall.cl.cam.ac.uk:/auto/groups/xeno/users/iap10/xeno-clone/xen-unstable.bk
2005-06-21 07:02:30 +00:00
iap10@spot.cl.cam.ac.uk 677f37671b bitkeeper revision 1.1718.1.10 (42b7b19aqOS_1M8I4pIOFjiTPYWV-g)
Merge bk://xenbits.xensource.com/xen-unstable.bk
into spot.cl.cam.ac.uk:C:/Documents and Settings/iap10/xen-unstable.bk
2005-06-21 06:20:10 +00:00
smh22@firebug.cl.cam.ac.uk f21629e0cc bitkeeper revision 1.1718.1.9 (42b7443fk-ybxUDza1p_kN1D8hzjRw)
Many files:
  new file
2005-06-20 22:33:35 +00:00
smh22@firebug.cl.cam.ac.uk 198553df06 bitkeeper revision 1.1718.1.8 (42b7436bQ2MohyJ9wW6onfFsyW6VGg)
shype4xen_readme.txt:
  new file
2005-06-20 22:30:03 +00:00
smh22@firebug.cl.cam.ac.uk 80070b4a6c bitkeeper revision 1.1718.1.7 (42b742f8NxTuN2pqCHFAWI78dbEYKw)
Initial MAC (sHype) support from IBM. 
Defaults to NULL policy for now. 

Signed-off-by: Reiner Sailer <sailer@us.ibm.com>
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Signed-off-by: Steven Hand <steven@xensource.com>
2005-06-20 22:28:08 +00:00
kaf24@firebug.cl.cam.ac.uk 6b76d296bb bitkeeper revision 1.1718.1.6 (42b5a5f3otSuOxDZ6KTFKrxR1U1m4Q)
Extend the xen_version hypercall to return extraversion and compile 
info.
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-19 17:05:55 +00:00
kaf24@firebug.cl.cam.ac.uk 6c25db681a bitkeeper revision 1.1718.1.5 (42b59f7dHnuJ9AFj24zaneKCDkFTCg)
This patch adds dual-core support to xen, and improves HT detection.
Adapted from linux 2.6.12.
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-19 16:38:21 +00:00
kaf24@firebug.cl.cam.ac.uk 10a20d0601 bitkeeper revision 1.1718.1.4 (42b59a8dca4vxae_1vlE_W95_lDsNg)
Merge firebug.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into firebug.cl.cam.ac.uk:/local/scratch/kaf24/xen-unstable.bk
2005-06-19 16:17:17 +00:00
iap10@spot.cl.cam.ac.uk 38539de55f bitkeeper revision 1.1718.2.1 (42b548b7ux2RLNcFOrtdJXuEMvLNEw)
This patch allows user to choose mirror to get linux kernel source instead of getting it from kernel.org (which set as default)
2005-06-19 10:28:07 +00:00
cl349@firebug.cl.cam.ac.uk 26892e4715 bitkeeper revision 1.1718.1.3 (42b5315dLCz3iIB7jiQxJQjbRXXdoQ)
Merge firebug.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into firebug.cl.cam.ac.uk:/local/scratch/cl349/xen-unstable.bk
2005-06-19 08:48:29 +00:00
cl349@firebug.cl.cam.ac.uk bca61ae472 bitkeeper revision 1.1713.3.15 (42b53156pSSLSNwQRl51kxkAtBPgTQ)
xsnode.py:
  fileno is a method now.
netif.py, blkif.py, XendDomainInfo.py:
  Cleanup interface to DB.
xs.c:
  Don't special case xs_fileno.
  Update comments.
Signed-off-by: Mike Wray <mike.wray@hp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-19 08:48:22 +00:00
vh249@arcadians.cl.cam.ac.uk 27aa0dbf05 bitkeeper revision 1.1718.1.2 (42b40c3akEkhBrLzUFb8IOJmt33HQA)
new linux kernel tar use extended pax headers. remove the file wrongly
created by older version of tar which make the build fail.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-06-18 11:57:46 +00:00
vh249@arcadians.cl.cam.ac.uk 7b672cd36d bitkeeper revision 1.1718.1.1 (42b3d9b3dbLlrBark4MWafH2yPtcRA)
Fixed compiler warnings of "cast to pointer from integer of different
size" which were caused by referencing memory addresses as 32bits on a 64bit
system.

Signed-off-by: Jon Mason <jdmason@us.ibm.com>
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-06-18 08:22:11 +00:00
iap10@freefall.cl.cam.ac.uk 0338f79f59 bitkeeper revision 1.1719 (42b36f87tzUHBhdJfZKC_wBV271T0g)
manual merge
2005-06-18 00:49:11 +00:00
iap10@tetris.cl.cam.ac.uk ac5c611d78 bitkeeper revision 1.1159.258.170 (42b3572cZGo7alQhMs_J2gWAK56DCg)
Subject: [Xen-devel] [PATCH] allow make O=/path/to/build/dir ARCH=XEN

kbuild allows building outside the source tree. this is useful when
building multiple configs (such as privileged and unprivileged domains).
this patch unbreaks this feature for xen-linux.

Signed-off-by: Avi Kivity <avi.kivity@qumranet.com>
Signed-off-by: ian@xensource.com
2005-06-17 23:05:16 +00:00
iap10@freefall.cl.cam.ac.uk 85b8054ceb bitkeeper revision 1.1718 (42b354a2M210uRAoeEEWX9FSzlNu-Q)
Add -fPIC tools/xenstore/Makefile 

From: Jerone Young <jyoung5@us.ibm.com>
Signed-off-by: ian@xensource.com
2005-06-17 22:54:26 +00:00
dsteklof@us.ibm.com[iap10] 90865c024e bitkeeper revision 1.1159.258.169 (42b35222QJFB1A-V4mSUnrUrLfA8xA)
[PATCH] RE: [Xen-devel] DOM0_GETDOMAININFO intended behavior

Ok... now that I (unintentionally) went overboard on this, why not just
document how it works and leave it as is?

signed-off-by: dsteklof@us.ibm.com
signed-off-by: ian@xensource.com
2005-06-17 22:43:46 +00:00
iap10@tetris.cl.cam.ac.uk 54a0093d82 bitkeeper revision 1.1159.258.168 (42b351653L3XVvz6UCiRgtfHHvj-Eg)
Subject: [Xen-devel] [PATCH] _perform_err

the declaration of _perform_err needs at least three arguments
(exlcuding self), but gets onky called with two args at many
places. This messes up xend-debug.log.
Patch is against 2.0-testing, but applied cleanly to unstable
as well, when I checked last.
 
From: Kurt Garloff <kurt@garloff.de>
Signed-off-by: ian@xensource.com
2005-06-17 22:40:37 +00:00
iap10@tetris.cl.cam.ac.uk 227aeb4d79 bitkeeper revision 1.1717 (42b3442b7kXKhXN5lvR9spIGT5LsYQ)
When xend starts, it fires off xcs.  If you're running on a slow
machine its possible that xcs started but xend didnt wait long 
enough to notice.  The attached patch loops several times while 
waiting for xcs to come up.  It seems to be working here while the 
original is not (slow machine here).

From: Tim Newsham [newsham@lava.net]
Signed-off-by: ian@xensource.com
2005-06-17 21:44:11 +00:00
iap10@freefall.cl.cam.ac.uk 86d6165ed3 bitkeeper revision 1.1716 (42b336f8VKVQeJVq9gIppvvdYPrMmw)
Merge freefall.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into freefall.cl.cam.ac.uk:/auto/groups/xeno/users/iap10/xeno-clone/xen-unstable.bk
2005-06-17 20:47:52 +00:00
cl349@firebug.cl.cam.ac.uk 6d76d5803f bitkeeper revision 1.1713.3.14 (42b31404a5lBMKNKYzOsHXWQ0k_d-Q)
xsnode.py:
  Updated watches/event code from Mike Wray.
Signed-off-by: Mike Wray <mike.wray@hp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-17 18:18:44 +00:00
cl349@firebug.cl.cam.ac.uk b00fe9d709 bitkeeper revision 1.1713.3.13 (42b30f66_kcj5tkDzz9DSBmqEbyHrQ)
xs.c:
  Update comment.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-17 17:59:02 +00:00