Commit Graph
5571 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk c2533bd68d bitkeeper revision 1.1748.1.2 (42bbd22bGsDJd8zBp_EBCg97pPrPqA)
With the patch attached, we can bring up x86_64 domU to the point where
it tries to mount the root fs (see the log below). We are looking at
problems around blkif_connect at this point.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Xin B Li <xin.b.li@intel.com>
2005-06-24 09:28:11 +00:00
kaf24@firebug.cl.cam.ac.uk b8cb514f93 bitkeeper revision 1.1748.1.1 (42bbd1c5CE48yPys_hWh-39fCz3QGw)
Patch below is needed to make my system work stable in PAE mode.
Havn't seen problems without PAE, not sure whenever thats just
pure luck or whenever there is a bug in my PAE xenlinux kernel.
To me it looks like a generic bug though.

I've actually trapped into problems with unpin only:  A process
exits, somewhere in exit_mm() the page tables are unpinned,
shortly thereafter the mappings are cleared.  While doing so the
kernel oopses in zap_pte_range(), on page table write access.
Probably due to some stale tlb entry where the page is still
tagged read-only.
2005-06-24 09:26:29 +00:00
cl349@firebug.cl.cam.ac.uk c8cf49e882 bitkeeper revision 1.1748 (42bbc14djIjScNrLp20eDhlxUjQl4g)
xenstored_transaction.c, xenstored_core.h, xenstored_core.c, TODO:
  Update TODO list
  Wrap opendir in talloc so it gets cleaned up on OOM.
  Remove last call to system by open-coding "cp -al" to create
  transaction.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-24 08:16:13 +00:00
cl349@firebug.cl.cam.ac.uk 8e6ffdae8e bitkeeper revision 1.1747 (42bbc01fY31MfvOqdz4Mq_h_2D4Usg)
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-24 08:11:11 +00:00
cl349@firebug.cl.cam.ac.uk bc3c530470 bitkeeper revision 1.1742.1.1 (42bbc016sc__D7n9oSLMG75cKXdixQ)
XendDomainInfo.py: Fix imports.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-24 08:11:02 +00:00
kaf24@firebug.cl.cam.ac.uk b1fe63ce24 bitkeeper revision 1.1746 (42badf41asjaKoYentyODb8CdFEydg)
Cset exclude: arun.sharma@intel.com[kaf24]|ChangeSet|20050623091344|24134
2005-06-23 16:11:45 +00:00
kaf24@firebug.cl.cam.ac.uk 3b3b9f8fb9 bitkeeper revision 1.1745 (42badeb1hE5PDZxZYF5DYBsU0Jya9w)
Fix ACM so that it can be built with NULL policy.
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2005-06-23 16:09:21 +00:00
kaf24@firebug.cl.cam.ac.uk d9b482137c bitkeeper revision 1.1744 (42baac12VHiYuszqWxXm5lsjjqZq4g)
This patch fixes some wrong comment in STE policy code.

Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
2005-06-23 12:33:22 +00:00
kaf24@firebug.cl.cam.ac.uk 5d6d0f25b9 bitkeeper revision 1.1743 (42baabd1aq7F8kKY4ptBZ39ebtEqOw)
null_set_binary_policy() should return ACM_OK instead of -1. This
patch also makes few cleanups.

Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
2005-06-23 12:32:17 +00:00
kaf24@firebug.cl.cam.ac.uk f03b529468 bitkeeper revision 1.1742 (42ba8bdbUMsXF10VHPltV1P5J9z0Ow)
added tag ia64-stable
2005-06-23 10:15:55 +00:00
kaf24@firebug.cl.cam.ac.uk c3f032a166 bitkeeper revision 1.1742 (42ba8b7fiNx5Cu0J91l9HCIo_TwvXQ)
Merge firebug.cl.cam.ac.uk:/local/scratch/kaf24/xen-unstable.bk
into firebug.cl.cam.ac.uk:/local/scratch/kaf24/xeno-unstable-ia64.bk
2005-06-23 10:14:23 +00:00
arun.sharma@intel.com[kaf24] 5ce68b82c6 bitkeeper revision 1.1741 (42ba8952xTiiA50azru9j4tKvXIVDA)
[PATCH] vmx-gdbserver-paging.patch

gdbserver should not try to convert guest physical to machine physical if
paging is not enabled.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-06-23 10:05:06 +00:00
arun.sharma@intel.com[kaf24] 7331904137 bitkeeper revision 1.1740 (42ba88cewc_4MMbiCLInZ8gEcgqwhQ)
[PATCH] vmx-pit-reset2.patch

A VMX guest can reprogram the same PIT channel twice. We should not create
two ac_timers to handle this case.

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-06-23 10:02:54 +00:00
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
xen-ia64.adm@bkbits.net 60ca0a2815 bitkeeper revision 1.1726.1.5 (42b9a3d8CVbjmdABZ5J06wW5p1TtXw)
Merge bk://xen.bkbits.net/xeno-unstable.bk
into  bkbits.net:/repos/x/xen-ia64/xeno-unstable-ia64.bk
2005-06-22 17:46:00 +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
djm@kirby.fc.hp.com 1bbe4f8d0e bitkeeper revision 1.1713.2.21 (42b8e40fW5sWcGtTukrQr1eZYIVyZw)
adds necessary put/get_user, copy_from/to_user, etc stuff for VTI 

Signed-off-by Kevin Tian <Kevin.tian@intel.com>
2005-06-22 04:07:43 +00:00
djm@kirby.fc.hp.com cbdb5e3d6c bitkeeper revision 1.1713.2.20 (42b8a39dyJz2b10psbnobavBUcjTTw)
Merge djm@sportsman.fc.hp.com:/home/djm/xeno-unstable-ia64.bk
into kirby.fc.hp.com:/home/djm/src/xen/xeno-unstable-ia64.bk
2005-06-21 23:32:45 +00:00
djm@kirby.fc.hp.com e420a590d9 bitkeeper revision 1.1713.2.19 (42b8a34exK8-Y4Kw6G2q3tZNzQF4oQ)
More hyperprivop stuff
Signed-off-by: Dan Magenheimer <dan.magenheimer@hp.com>
2005-06-21 23:31:26 +00:00
djm@sportsman.spdomain 4d1748d5fd bitkeeper revision 1.1713.4.1 (42b896ce_iXHcZjWxYV17vzV3fQhTA)
Adapt to recent patches in common
2005-06-21 22:38:06 +00:00
djm@kirby.fc.hp.com 36fcea6f58 bitkeeper revision 1.1713.2.18 (42b8744bIGngr2TXaEsslGtXBaQ79g)
Fix and re-enable hyperprivop for ptc.ga (slow path only for now)
Signed-off-by: Dan Magenheimer <dan.magenheimer@hp.com>
2005-06-21 20:10:51 +00:00
djm@kirby.fc.hp.com 43b6dbbfe3 bitkeeper revision 1.1713.2.17 (42b86c76S4xsXs1Za6J4vAne_33G_w)
Updated version to dom0_ops.c. After some discussion with Ian,
we decided to remove newly added hypercall and instead turn
to other means in user application level. Then rest stuff is
all IA64 specific without any touch to common code.

Signed-off-by Kevin Tian <Kevin.tian@intel.com>
2005-06-21 19:37:26 +00:00
djm@kirby.fc.hp.com ed0baaae8b bitkeeper revision 1.1713.2.16 (42b85de87qTaJfB_LqIZvXhK7xSqJg)
More hyperprivop stuff, fix set_rr, new get_rr
Signed-off-by: Dan Magenheimer <dan.magenheimer@hp.com>
2005-06-21 18:35:20 +00:00
djm@kirby.fc.hp.com 400540d69b bitkeeper revision 1.1713.2.15 (42b83cd9ZuKJm7KtLvrltP6UcgDu_A)
Handle dup tick in hyper_get_ivr
Signed-off-by: Dan Magenheimer <dan.magenheimer@hp.com>
2005-06-21 16:14:17 +00:00
djm@kirby.fc.hp.com 886dbb2fef bitkeeper revision 1.1713.2.14 (42b83897l9yCwRifZXvfuWUtymljvA)
Fix typo in cmpxchg_user (causes compile error in some compilers)
2005-06-21 15:56:07 +00:00
djm@kirby.fc.hp.com 0b6fdb21e6 bitkeeper revision 1.1713.2.13 (42b8385f7G_ZWD4cCDAhRx2ry3L3QA)
More hyperprivop stuff
Signed-off-by: Dan Magenheimer <dan.magenheimer@hp.com>
2005-06-21 15:55:11 +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