Commit Graph
207 Commits
Author SHA1 Message Date
cl349@firebug.cl.cam.ac.uk 3887ad07b3 bitkeeper revision 1.1446 (428b4307MH3U7T8lRzS3M2j3aIil2w)
xc_linux_restore.c:
  g/c p_gdt left over from previous cleanup.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-18 13:28:39 +00:00
kaf24@firebug.cl.cam.ac.uk 9aeab194c2 bitkeeper revision 1.1443 (428b3f59xxbCVcbUBrHu1R1TkWcYhg)
Cleaner GDT interface. Xen now reserves the last 2 pages of a full-size
(16 page) GDT. A guest can register a GDT with up to 7k entries. Xen
automatically makes the GDT up to max size with empty page mappings,
and turns page faults in that area to #GP(selector).
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-05-18 13:12:57 +00:00
kaf24@firebug.cl.cam.ac.uk bfad555857 bitkeeper revision 1.1415 (42887ada_Jmkta2rYHnpJBE2EVpy4w)
Remove generic 'fast trap' from the Xen public interfaces. Internally
within Xen, we automatically set up direct trap for int 0x80, which is
the only 'fast trap' vector that we ever supported anyway.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-05-16 10:50:02 +00:00
kmacy@netapp.com[kaf24] 8f30481cc5 bitkeeper revision 1.1411 (42884f321efBfAPblIV0mrlYL-DYpA)
[PATCH] [PATCH] SMP coredump fix

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2005/05/15 18:03:44-07:00 kmacy@octopus.eng.netapp.com
#   Fix SMP coredumps
#   Signed-off-by: Kip Macy <kmacy@netapp.com>
#
# BitKeeper/etc/logging_ok
#   2005/05/15 18:03:43-07:00 kmacy@octopus.eng.netapp.com +1 -0
#   Logging to logging@openlogging.org accepted
#
# tools/libxc/xc_core.c
#   2005/05/15 18:03:21-07:00 kmacy@octopus.eng.netapp.com +11 -7
#   handle discontiguous CPUs correctly
#   make offsets in core header correct for MP case
#
2005-05-16 07:43:46 +00:00
smh22@firebug.cl.cam.ac.uk 43c44b436d bitkeeper revision 1.1389.1.60 (4284eff8xPCiJXQdVwPYSYL7MEB5zA)
fix calls to xc_domain_getinfo()

Signed-off-by: Steven Hand <steven@xensource.com>
2005-05-13 18:20:40 +00:00
kaf24@firebug.cl.cam.ac.uk 7ef0d92af9 bitkeeper revision 1.1389.1.49 (4283701cNLgzy29rE9Sw2-Jbp4DdZA)
Remove 'exec_domain' from Xen public interfaces. Replace with 'vcpu'.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-05-12 15:02:52 +00:00
kaf24@firebug.cl.cam.ac.uk 6962e18db6 bitkeeper revision 1.1389.19.6 (4283326fLInxsBy4d19FLaiMPEMO4w)
Some more mmap() error-return fixes.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-05-12 10:39:43 +00:00
rusty@rustcorp.com.au[kaf24] 3b0a5597b0 bitkeeper revision 1.1389.19.5 (42833116hOft6cekTRSGqSIk2tNzGA)
[PATCH] [PATCH] libxc: mmap doesn't return NULL on error...

Hi, was reading libxc code, and noticed this.  Patch is bigger than
strictly necessary due to indent adjust.

Against latest bk.
Rusty.
2005-05-12 10:33:58 +00:00
cl349@firebug.cl.cam.ac.uk ea15b5bc90 bitkeeper revision 1.1389.15.15 (428242f7nXN4g9eyz6qI4P8iLGAGTg)
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-05-11 17:37:59 +00:00
cl349@firebug.cl.cam.ac.uk 1ab02347d8 bitkeeper revision 1.1389.15.14 (428242a6WycHvjFblUGQbKtJd94NPg)
Many files:
  Merge interface changes from previous 'Split out context fetching into
  separate DOM0 op' and 'xen,tools: pincpu use vcpu and cpumap_t' checkins.
xc_linux_save.c:
  Undo incorrect change from previous patch.
xc.h, xc_domain.c:
  Cleanup whitespace.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-11 17:36:38 +00:00
kaf24@firebug.cl.cam.ac.uk b1b326b91a bitkeeper revision 1.1389.17.3 (42823d4825o1wYghBqsaekhllO6ocQ)
Domain builders need only set bit 9 of EFLAGS (Interrupt Enable).
Setting this bit is enforced by Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-05-11 17:13:44 +00:00
cl349@firebug.cl.cam.ac.uk[cl349] 6d6ca3b27e bitkeeper revision 1.1389.15.13 (42821f23dLMLc5Ql8Y-rUwoatYBI6g)
Split out context fetching into separate DOM0 op
make GETDOMAININFO a little more sensible with respect to MP
make coredump dump all cpu contexts
Signed-off-by: Kip Macy <kmacy@netapp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-11 15:05:07 +00:00
cl349@firebug.cl.cam.ac.uk[cl349] 0ececa920d bitkeeper revision 1.1389.15.11 (428212beixWz2Ftz7Wj0NeY03LmBnA)
sched.h, dom0_ops.h, dom0_ops.c, xc_domain.c, xc.h:
  Minor cleanups.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-11 14:12:14 +00:00
cl349@firebug.cl.cam.ac.uk[cl349] b7c498208c bitkeeper revision 1.1389.15.10 (428202c9Vz9xfNsG-q-WtZpPrER7xQ)
[PATCH] xen,tools: pincpu use vcpu and cpumap_t

The following patch updates the dom0 pincpu operation to read the VCPU
value from the xend interface rather than hard-coding the exec_domain to
0.  This prevented pinning VCPUS other than 0 to a particular cpu.  The
pincpu cpu argument is replaced with cpumap, a u64 bitmap representing
which CPUs a VCPU can use.

I added the number of VCPUS to the main xm list output and also included
a new sub-option to xm list to display the VCPU to CPU mapping.  While
working on the pincpu code, I fixed an out-of-bounds indexing for the
pincpu operation that wasn't previously exposed since the
vcpu/exec_domain value was hard-coded to 0.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-11 13:04:09 +00:00
kaf24@firebug.cl.cam.ac.uk bb5ae6b5cc bitkeeper revision 1.1389.5.37 (427f9fd5lvofpMsmBQ2h16fsuXQH6Q)
Manual merge.
2005-05-09 17:37:25 +00:00
kaf24@firebug.cl.cam.ac.uk 9e11829aa9 bitkeeper revision 1.1389.5.21 (427a5ee3rBlRFupS4xBvv_nWVHQlsA)
Clean up IO-APIC handling in domain0, and the hypercall interface
exported by Xen (inc. removal of PCI-related calls). This hopefully
fixes acpi=off.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-05-05 17:58:59 +00:00
smh22@tempest.cl.cam.ac.uk 1d5464775f bitkeeper revision 1.1389.5.16 (427a2d48fB11IAeFlv0AL07RxME0vg)
build privcmd even in unpriv domains; minor libxc fix

Signed-off-by: Steven Hand <steven@xensource.com>
2005-05-05 14:27:20 +00:00
kaf24@firebug.cl.cam.ac.uk e286f60403 bitkeeper revision 1.1389.7.5 (4279f582pwUD_gXMbX8w4RQ2aYmGDA)
Fix return code from xc_domain_create.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-05-05 10:29:22 +00:00
kaf24@firebug.cl.cam.ac.uk 47d73f74d8 bitkeeper revision 1.1389.1.23 (4275e716ZM2AFvimq_UhqQK8jiiq5g)
Fix xc_ptrace interface to get rid of pid_t.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-05-02 08:38:46 +00:00
kaf24@firebug.cl.cam.ac.uk[kaf24] b61e6cb4e9 bitkeeper revision 1.1389.1.16 (4273458eyxEjHSppjkQyDsXHHxOY9Q)
coredump.patch
Extend libxc and gdb server to coredump a domain.
Signed-off-by: Kip Macy <kmacy@fsmware.com>
2005-04-30 08:45:02 +00:00
arun.sharma@intel.com[kaf24] 927084f0d4 bitkeeper revision 1.1389.1.15 (4273436eypuqO7C1_MKQjhBV2kylZw)
[PATCH] vmx-mach-to-phys.patch

VMX domains need to setup their machine to physical maps.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-04-30 08:35:58 +00:00
kaf24@firebug.cl.cam.ac.uk 6e88ee268d bitkeeper revision 1.1389.1.14 (427343557mBKHXIKNWB3vC3vSFMQ7g)
Fix xc_ptrace for paravirtualized guests.
Signed-off-by: Kip Macy <kmacy@fsmware.com>
2005-04-30 08:35:33 +00:00
kaf24@firebug.cl.cam.ac.uk 3ba18b6857 bitkeeper revision 1.1389.1.4 (427125bdwah0mehgnafVLP-gRLDM_w)
Avoid field duplication between vcpu_guest_context and arch_exec_domain
structures. The latter now includes the former as a sub-field.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-04-28 18:04:45 +00:00
kaf24@firebug.cl.cam.ac.uk 162dad1cfb bitkeeper revision 1.1389.1.2 (4270ed5dZvr_HdIQR0eBM2m4Kj81_A)
Renames:
 execution_context/xen_regs -> cpu_user_regs
 full_execution_context     -> vcpu_guest_context
[defined both 'struct xxx' and 'xxx_t' forms]
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-04-28 14:04:13 +00:00
kaf24@firebug.cl.cam.ac.uk 4f7f0d5578 bitkeeper revision 1.1385.1.3 (426f6b05kK8EBkiTLCXBeJZCPG2ZgQ)
Cset exclude: bren@br260.wolfson.cam.ac.uk|ChangeSet|20050426221254|30123
2005-04-27 10:35:49 +00:00
bren@br260.wolfson.cam.ac.uk 06418b32fe bitkeeper revision 1.1385.1.2 (426ebce6uikcKvm56neQ1G3uFEGApw)
Properly set memory parameters for newly created domains.

Signed-off-by: Bin Ren <bin.ren@cl.cam.ac.uk>
2005-04-26 22:12:54 +00:00
smh22@firebug.cl.cam.ac.uk 324df1cf56 bitkeeper revision 1.1385.1.1 (426e50841dwkW8TPBgE1y4h3O71bsQ)
build when DEBUG=1 + whitespace fixes
2005-04-26 14:30:28 +00:00
leendert@watson.ibm.com[kaf24] 6d59ce88ba bitkeeper revision 1.1379 (426ca278F5TOjFztt77FKYt8v457dg)
[PATCH] [PATCH] Assorted VMX patches

This patch contains the following VMX patches:

- ioemu: Update the address when doing a stosb/stosw/stosl. Without this patch
  stosb writes req->count times at the same location req->addr. Not exactly
  the intended semantics.

- xc_ptrace.c: Use the page_array to refer to partition memory. This allows
  you to use gdbserver on a VMX partition (and presumably partitions that use
  shadow page tables).

- dom0_ops.c: Preserve ECF_VMX_GUEST flag for gdbserver. Without it you
  cannot (re)set the VMX domain state.

- vmx.c: Added support for lmsw. Unmodified FreeBSD uses this when running
  inside a VMX partition.

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

===== tools/ioemu/iodev/cpu.cc 1.8 vs edited =====
2005-04-25 07:55:36 +00:00
kaf24@firebug.cl.cam.ac.uk f50cd74cf2 bitkeeper revision 1.1373 (426a2bc8m7wX71OOkLtSOgNXcrObMA)
xc_domain.c:
  Ensure ctxt is mlocked in xc_domain_getfullinfo.
2005-04-23 11:04:40 +00:00
kaf24@firebug.cl.cam.ac.uk 0ebae1de2a bitkeeper revision 1.1367 (4269220d42QVzUVVn9-Tn1tb9fNSWw)
Remove memory and cpu parameters from DOM0_CREATEDOMAIN, and remove
DOM0_SETINITIALMEM. You can get the same effect via PINCPU, 
SETMAXMEM, and do_mem_op(increase_reservation).
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-04-22 16:10:53 +00:00
iap10@freefall.cl.cam.ac.uk e631a47cf6 bitkeeper revision 1.1346.1.1 (42670505dNhgnJm5dQD81pCalXMZgw)
manual merge
2005-04-21 01:42:29 +00:00
iap10@freefall.cl.cam.ac.uk 8b521bdf6b bitkeeper revision 1.1159.170.111 (4266fe71ppAIWyNXyP9cTS2-29x3_A)
Merge freefall.cl.cam.ac.uk:/auto/anfs/scratch/font/sd386/xen-2.0-testing.bk
into freefall.cl.cam.ac.uk:/auto/groups/xeno/users/iap10/xeno-clone/xen-2.0-testing.bk
2005-04-21 01:14:25 +00:00
iap10@freefall.cl.cam.ac.uk 1ce3ac326d bitkeeper revision 1.1321 (42642eb1DhlDvDKcX1gTZhvys-xHJQ)
fix single-stepping
make persistent context per-cpu
Signed-off-by: Kip Macy <kmacy@fsmware.com>
Signed-off-by: ian@xensource.com
2005-04-18 22:03:29 +00:00
iap10@freefall.cl.cam.ac.uk 7fbf26132f bitkeeper revision 1.1320 (42642ddapSMPP0vKzhY_zJP6GaMQ7A)
Merge freefall.cl.cam.ac.uk:/auto/groups/xeno/users/iap10/xeno-clone/xen-2.0-testing.bk
into freefall.cl.cam.ac.uk:/auto/groups/xeno/users/iap10/xeno-clone/xen-unstable.bk
2005-04-18 21:59:54 +00:00
iap10@freefall.cl.cam.ac.uk d25f5a7f56 bitkeeper revision 1.1159.258.103 (42642c5djs1dzMOSs-vIJLlGCQyrMQ)
Allow xc_domain_info_t to be optional in xc_domain_getfullinfo
From: Kip Macy
Signed-off-by: ian@xensource.com
2005-04-18 21:53:33 +00:00
katzj@redhat.com[iap10] 2cc5addc8f bitkeeper revision 1.1305 (42603ffeunTyoZX2egpGvfR_Km2tBw)
[PATCH] Install libraries into libdir

Attached makes it so that libxc and libxutil get installed
into /usr/lib64 instead of /usr/lib on x86_64.

Signed-off-by: Jeremy Katz <katzj@redhat.com>

===== Config.mk 1.3 vs edited =====
2005-04-15 22:28:14 +00:00
iap10@tetris.cl.cam.ac.uk 56b13d9892 bitkeeper revision 1.1294 (425d9f852SL8ULzr5896Y6r81VmGmQ)
Manual merge
2005-04-13 22:39:01 +00:00
mafetter@fleming.research b10a1d453c bitkeeper revision 1.1291.1.1 (425bebf9aCUxgH4Es3NJxOCwIS_yVA)
Remove debug hooks that shouldn't be enabled by default.
2005-04-12 15:40:41 +00:00
mafetter@fleming.research 700d1f8579 bitkeeper revision 1.1272.1.1 (425b95a8cRhux_vtKXZDHhnHcViWRg)
Patch to run a domU in shadow test mode.
2005-04-12 09:32:24 +00:00
ccoffing@novell.com[iap10] e4c215974f bitkeeper revision 1.1159.258.90 (425a82f9SNVZLPiwpO07IDSTr_VE7g)
[PATCH]  stream fixes for migration

I've attached a patch for libxutil/libxc.  This fixes one of the hangs =
I've seen during migrations.  It applies against 2.0 and 2.0-testing.

Changes:
 * Encountering EOF or error when xfrd reads from stream could cause an =
infinite loop.
 * Cleaned up the closing of streams.
 * Fixed several memory leaks.

Signed-off-by: Charles Coffing <ccoffing@novell.com>
2005-04-11 14:00:25 +00:00
sd386@font.cl.cam.ac.uk 2208888f15 bitkeeper revision 1.1159.170.110 (42527636gInunc40rkIVZVCuDC-_OQ)
Merge
2005-04-05 11:27:50 +00:00
mafetter@fleming.research 5d54f397bd bitkeeper revision 1.1269 (42524412_qy8UFAnO7-nfNL1poTqIg)
Hand merge

Signed-off-by: michael.fetterman@cl.cam.ac.uk
2005-04-05 07:53:54 +00:00
kaf24@firebug.cl.cam.ac.uk 976f6fc92c bitkeeper revision 1.1236.1.209 (42517173PR-QieAWB-SNd4qnSxKmMQ)
Remove broken atropos and round-robin schedulers. Clean up the
scheduler plugin interface a little.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-04-04 16:55:15 +00:00
mafetter@fleming.research 52367cb022 bitkeeper revision 1.1267 (4251679dHqcry__n_OW9aNhfUtjZ_A)
Hand merged

Signed-off-by: michael.fetterman@cl.cam.ac.uk
2005-04-04 16:13:17 +00:00
kaf24@viper.(none) 556c27d483 bitkeeper revision 1.1236.1.206 (424fd1e3OF1dIgDtN9JonRnCv2YHrQ)
Clean up symtab loading in elf loader.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-04-03 11:22:11 +00:00
leendert@watson.ibm.com[kaf24] b67d9ea723 bitkeeper revision 1.1236.1.197 (424e4a83Uiv2R3w5XZIvsLYfRc7fhQ)
[PATCH] [PATCH] tools/libxc/xc_vmx_build.c broken

xc_vmx_build pins the level 2 page table too early so that subsequent maps
(like those in zap_mmio_ranges) fail and consequently xc_vmx_build fails.
To solve this, this patch pins the l2pt at the end of the function when
all memory initializations are finalized.

Signed-off-by: Leendert van Doorn <leendert@watson.ibm.com>
2005-04-02 07:32:19 +00:00
kaf24@firebug.cl.cam.ac.uk 76d7931a0b bitkeeper revision 1.1236.1.183 (424d1ccaDlUUQZ1KrVHubRYFS5AKQA)
Batch p.t. pin requests during guest restore (after being suspended, or
after migration). Allow L1 tables to be pinned even after their va
backptr is fixed (no longer mutable).
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-04-01 10:04:58 +00:00
kaf24@firebug.cl.cam.ac.uk 99a84adadf bitkeeper revision 1.1236.1.165 (424ba95eSoKkDgTWnpIIuTJTyWdHJg)
Small gcc4 fix in xc_ptrace.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
2005-03-31 07:40:14 +00:00
kaf24@firebug.cl.cam.ac.uk 99d21671d5 bitkeeper revision 1.1236.1.164 (424aed36IaX4v3-NGAT_MnCdUsD1yQ)
Split mmu_update() hypercall into mmu_update() and mmuext_op().
All MMUEXT_* ops are now done via the latter hypercall. This allows
more arguments to be passed in a nicer way to mmuext operations.
Linux 2.4, 2.6 and control tools all use the new interface. The BSDs
will need some work, but shouldn't be too hard (and they can be moved
to writable pagetables at the same time :-) ).
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-03-30 18:17:26 +00:00
kaf24@firebug.cl.cam.ac.uk b90e35d94a bitkeeper revision 1.1236.1.161 (424a87d38l7A3H0bMHl_fsQl_ZRvuA)
Remove vmassist dom0_op. Can now adjust vm assists via setdomaininfo.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-03-30 11:04:51 +00:00