]> xenbits.xensource.com Git - people/vhanquez/xen.git/log
people/vhanquez/xen.git
18 years agoAdded tag RELEASE-3.0.2-3 for changeset 5a47baf9b70103b9f2a48ff24bddb30dbc5c5041
jbulpin@bridport.uk.xensource.com [Fri, 26 May 2006 08:23:33 +0000 (09:23 +0100)]
Added tag RELEASE-3.0.2-3 for changeset 5a47baf9b70103b9f2a48ff24bddb30dbc5c5041

18 years ago[XEND] Wait sufficient time for memory to balloon out before creating a new domain.
kaf24@firebug.cl.cam.ac.uk [Thu, 25 May 2006 20:41:59 +0000 (21:41 +0100)]
[XEND] Wait sufficient time for memory to balloon out before creating a new domain.

On the ES7000 when Dom0 boots up with all of system memory and you try
to bring up a DomU with more than 2GB of memory, xend times out before
the memory is freed causing the domain not to be created. This patch
increases the timeout depending on the amount of memory that needs to be
freed. It also places a cap on the sleep time so that it does not grow
without a limit. This fixes bug# 650

http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=3D650

Signed-off-by: Aravindh Puthiyaparambil
<aravindh.puthiyaparambil@unisys.com>
xen-unstable changeset:   10165:93db1b536f383ee93359080097b0870ea3add01a
xen-unstable date:        Thu May 25 21:41:04 2006 +0100

18 years agoFix VMEXIT tracing.
kaf24@firebug.cl.cam.ac.uk [Thu, 25 May 2006 20:20:02 +0000 (21:20 +0100)]
Fix VMEXIT tracing.
Signed-off-by: Bruce Rogers <brogers@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10163:218daa547e8afdd3a327df6402cef1af8ae54f2c
xen-unstable date:        Thu May 25 21:18:55 2006 +0100

18 years agoBump the version to 3.0.2-3 RELEASE-3.0.2-3
jbulpin@bridport.uk.xensource.com [Thu, 25 May 2006 11:04:50 +0000 (12:04 +0100)]
Bump the version to 3.0.2-3

Signed-off-by: James Bulpin <james@xensource.com>
18 years agoFix IDE CD-drive PIO mode.
cl349@firebug.cl.cam.ac.uk [Wed, 24 May 2006 18:46:22 +0000 (19:46 +0100)]
Fix IDE CD-drive PIO mode.
CD drives in PIO mode don't work under Xen because of a change in Linux
between 2.6.12 and 2.6.16, as a result of the following thread:
http://lists.parisc-linux.org/pipermail/parisc-linux/2005-August/027197.html

The change breaks systems which have highmem and a swiotlb because the
ide-cd driver doesn't use the swiotlb, resulting in read/writes to/from
highmem pages in PIO mode not working any longer.  Xen kernels usually have
both highmem and a swiotlb.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
xen-unstable changeset: 10151:ad33b3882867f6ab4466383129aa3827c64508d3
xen-unstable date: Wed May 24 19:41:47 2006 +0100

18 years agoRemove unnecessary x86-specific mapping code from privcmd interface.
kaf24@firebug.cl.cam.ac.uk [Wed, 24 May 2006 14:02:57 +0000 (15:02 +0100)]
Remove unnecessary x86-specific mapping code from privcmd interface.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10150:2436cc71de508f409b957e9eb24c1f34b1ab615d
xen-unstable date:        Wed May 24 14:49:24 2006 +0100

18 years agoRemove broken inline-asm string functions from Xen/x86. The
kaf24@firebug.cl.cam.ac.uk [Wed, 24 May 2006 10:54:00 +0000 (11:54 +0100)]
Remove broken inline-asm string functions from Xen/x86. The
generic implementations in string.c are quite sufficient.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10144:1345b20cca565950c0209971a0a71d19498cc765
xen-unstable date:        Wed May 24 11:52:25 2006 +0100

18 years agoSeveral page allocations, done in the hypervisor when starting an HVM
kaf24@firebug.cl.cam.ac.uk [Fri, 19 May 2006 15:14:54 +0000 (16:14 +0100)]
Several page allocations, done in the hypervisor when starting an HVM
domain, are not checked.  This can cause the physical machine to crash
when starting the HVM domain during low-memory conditions.

Kudos to Charles Arnold for catching the problem with
shadow_direct_map_init.

Signed-off-by: Charles Coffing <ccoffing@novell.com>
xen-unstable changeset:   10042:d714f923b7cfff705dcf9aae30a06709340059aa
xen-unstable date:        Fri May 19 16:10:52 2006 +0100

18 years agoRemove i386/x8664 differences in vmx reg store/load routines.
kaf24@firebug.cl.cam.ac.uk [Thu, 18 May 2006 16:24:16 +0000 (17:24 +0100)]
Remove i386/x8664 differences in vmx reg store/load routines.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   9912:72d1cf383c679e1db24c92c7d89d7816b947eabe
xen-unstable date:        Tue May  2 17:17:15 2006 +0100

18 years agoEnsure segment bases are consistent with their
kaf24@firebug.cl.cam.ac.uk [Thu, 18 May 2006 15:07:49 +0000 (16:07 +0100)]
Ensure segment bases are consistent with their
selectors for VMX guests in VM86 mode.
Signed-off-by: David Lively <dlively@virtualiron.com>
xen-unstable changeset:   9915:e1409c2ace46afd67b54de1f5c0b2b6d3721ca3b
xen-unstable date:        Wed May  3 10:56:19 2006 +0100

Fix mismerge of vmx vm86 patch: 9915:e1409c2ace46afd67b54de1f5c0b2b6d3721ca3b
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   9920:915d5af5dc18f40f9ae9ac160263edb214ab0b0e
xen-unstable date:        Wed May  3 13:33:01 2006 +0100

18 years agoRemove Emacs variables settings from tail of our Linux files.
kaf24@firebug.cl.cam.ac.uk [Thu, 18 May 2006 10:41:08 +0000 (11:41 +0100)]
Remove Emacs variables settings from tail of our Linux files.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10030:48c0f5489d44feb74d0982652072eb0cf0aed048
xen-unstable date:        Thu May 18 11:39:03 2006 +0100

18 years agoFix the build after SVM patches.
kaf24@firebug.cl.cam.ac.uk [Thu, 18 May 2006 07:56:14 +0000 (08:56 +0100)]
Fix the build after SVM patches.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10017:56444cd2805cf1b4bec168117305bcc9c64a80f4
xen-unstable date:        Thu May 18 08:55:20 2006 +0100

18 years agoSVM patch to add a host save area per core for the hypervisor and also
kaf24@firebug.cl.cam.ac.uk [Wed, 17 May 2006 23:09:13 +0000 (00:09 +0100)]
SVM patch to add a host save area per core for the hypervisor and also
for the microcode.  The microcode area is not guaranteed to be
compatible with the vmcb layout, therefore will require it's own
"scratch pad".  Consolidate the per core areas into a single structure.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
xen-unstable changeset:   10016:1d2e4a87300359d1f82a5a8f546798391c0d9afa
xen-unstable date:        Thu May 18 00:03:13 2006 +0100

Fix register corruption caused by c/s 9922.
From: Tom Woller <thomas.woller@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10015:0fbec683690550d6f4c9ee8a39cc0e98301af871
xen-unstable date:        Thu May 18 00:01:59 2006 +0100

SVM patch to cleanup guest event injection logic, remove unnecessary
event_injecting variable.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
xen-unstable changeset:   10014:b4361ae1aabc2a6bbc65c9d9bdc9843915b2eb09
xen-unstable date:        Wed May 17 23:53:01 2006 +0100

SVM patch to reverse the logic of the general1 intercepts for easier
reading, also add the INVD intercept with print/eip increment only.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
Signed-off-by: Mats Petersson <mats.petersson@amd.com>
xen-unstable changeset:   10013:3d85f350a66a006fd5df2c228cfd8b75e3240984
xen-unstable date:        Wed May 17 23:51:39 2006 +0100

SVM patch to cleanup IOIO handling, do not use "real" mode but rather
the correct "bitness".
Signed-off-by: Tom Woller <thomas.woller@amd.com>
Signed-off-by: Mats Petersson <mats.petersson@amd.com>
xen-unstable changeset:   10012:632ad28f2fd7a6602b08a9d054dc1b44efaf93f3
xen-unstable date:        Wed May 17 23:50:23 2006 +0100

18 years agoFix MOVS instruction emulation for HVM MMIO.
kaf24@firebug.cl.cam.ac.uk [Tue, 16 May 2006 18:52:53 +0000 (19:52 +0100)]
Fix MOVS instruction emulation for HVM MMIO.
From: Gerd Hoffman
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   10003:7fdc4a8b782b1e17fc473d418236ab44cc31b35f
xen-unstable date:        Tue May 16 19:50:23 2006 +0100

18 years agoPrevent an oops in Dom0 that occurs when a CD device, specified as one
kaf24@firebug.cl.cam.ac.uk [Tue, 16 May 2006 08:41:36 +0000 (09:41 +0100)]
Prevent an oops in Dom0 that occurs when a CD device, specified as one
of the 'hardrives' in the 'disk=' line of a para-virtualized guest's
def file, has no media when the guest is started.

The oops occurs in vbd.c when vbd_size() is called from connect() (in
xenbus.c) and the vbd pointer is really an error code that comes from
the failed open that occurred in vbd_create().

Based on a patch from Ross Maxfield at Novell.

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   9998:df1521633fb519727adb80f15ea1f2e5b69dc3df
xen-unstable date:        Tue May 16 09:40:38 2006 +0100

19 years agoFix spelling errors in man pages.
kaf24@firebug.cl.cam.ac.uk [Mon, 15 May 2006 06:51:55 +0000 (07:51 +0100)]
Fix spelling errors in man pages.
Signed-off-by: Charles Coffing <ccoffing@novell.com>
xen-unstable changeset:   9992:cb70d4f8d7182b0d1b5bcee7044f59fbe4dc9839
xen-unstable date:        Mon May 15 07:51:07 2006 +0100

19 years agoFix the performance issues of 2-level paging HVM guests on the PAE
kaf24@firebug.cl.cam.ac.uk [Mon, 15 May 2006 06:49:08 +0000 (07:49 +0100)]
Fix the performance issues of 2-level paging HVM guests on the PAE
Xen. With this, the performance will be basically same as 2-on-2.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
xen-unstable changeset:   9991:d20a2a971103e4c9cd09d9284707437cd1c28b77
xen-unstable date:        Mon May 15 07:46:57 2006 +0100

19 years agoRemove unused LINUX_SRCS.
cl349@firebug.cl.cam.ac.uk [Fri, 12 May 2006 21:35:11 +0000 (22:35 +0100)]
Remove unused LINUX_SRCS.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
xen-unstable changeset: 9932:d36ac8bf715ebd874f963eee9819edcff409dfc6
xen-unstable date: Thu May  4 16:49:58 2006 +0100

Linux: upgrade to 2.6.16.13.

Signed-off-by: Christian Limpach <Christian.Limpach.cam.ac.uk>
xen-unstable changeset: 9933:44e5abbf333b8d393423d99f89d2191dba022659
xen-unstable date: Thu May  4 17:38:25 2006 +0100

Linux: upgrade patches to 2.6.16.13.

Signed-off-by: Christian Limpach <Christian.Limpach.cam.ac.uk>
xen-unstable changeset: 9934:ad5b833122a8d88be39629751e1ee5c1d8629f96
xen-unstable date: Thu May  4 17:44:14 2006 +0100

Don't try to write to pmd pages, there is no writeable-pmd support.

Signed-off-by: Christian Limpach <Christian.Limpach.cam.ac.uk>
xen-unstable changeset: 9936:5afb142646294a6c446e275c5bef60ff7d477881
xen-unstable date: Fri May  5 00:27:10 2006 +0100

19 years agoAdd hvm headers to HDRS variable.
kaf24@firebug.cl.cam.ac.uk [Fri, 12 May 2006 21:35:05 +0000 (22:35 +0100)]
Add hvm headers to HDRS variable.

xen-unstable changeset: 9540:c1d53788a25e07b4ac4ef49c3e3d76f7ad3f6b8f
xen-unstable date: Wed Apr  5 15:42:01 2006 +0100

Clean up HDRS Makefile variable.

Signed-off-by: Keir Fraser <keir.com>
xen-unstable changeset: 9541:133ce326febdae137e106c0b0089a8c127631662
xen-unstable date: Wed Apr  5 15:46:01 2006 +0100

Clean up build system some more. No need to explicitly
include Rules.mk/Post.mk all over the place.

Signed-off-by: Keir Fraser <keir.com>
xen-unstable changeset: 9542:68ef2efa929b26f9e5ab71a5590c899d044c48ce
xen-unstable date: Wed Apr  5 17:15:34 2006 +0100

Avoid double slashes in linker object file lists.

Signed-off-by: Keir Fraser <keir.com>
xen-unstable changeset: 9582:b84517e3fc3042f4bfe822d39eca87be0fad5932
xen-unstable date: Fri Apr  7 14:26:02 2006 +0100

Remove unused netbsd build fragments.

Signed-Off-By: Homrs <horms.net.au>
xen-unstable changeset: 9597:c83da0012e87e4b1d83bb61ec338616fbcf3b141
xen-unstable date: Mon Apr 10 16:26:52 2006 +0100

build: Remove iptables and python loging helper targets

These targets don't really fit into the build infastructure,
for instance there is no faclilty for them to be removed
on make distclean. I posted a patch that fleshed out the targets,
but Christian Limpach suggested to me that removing them
would be a better idea.

Signed-Off-By: Horms <horms.net.au>
xen-unstable changeset: 9598:095519654079f55af70943004e448fb779ac4c5a
xen-unstable date: Mon Apr 10 16:27:46 2006 +0100

build: Make sure that DESTDIR is set

In the case where XEN_PYTHON_NATIVE_INSTALL is in effect,
if DESTDIR is not set then the install will go into a relative
directory rather than under the default prefix (usually /usr).

An alternate solution would be to update the fragments
that do the python install to use 2062 2062 141 126DESTDIR)/ instead of
2062 2062 141 126DESTDIR). This is not an incredible burden as there
are only two such fragments in the tree. However, it
seems prone to error as new makefiles are created
in the future.

Signed-Off-By: Horms <horms.net.au>
xen-unstable changeset: 9599:baa1742637b7e4a2d94db08b4f12c2a0f8b07128
xen-unstable date: Mon Apr 10 16:31:53 2006 +0100

build: clean up output of make help a little bit

Signed-Off-By: Horms <horms.net.au>
xen-unstable changeset: 9600:82dfb97fe5ea6d9e0c279b0c2de0688c09c1e4e4
xen-unstable date: Mon Apr 10 16:34:59 2006 +0100

build: Document the use of XEN_PYTHON_NATIVE_INSTALL

Document the use of the XEN_PYTHON_NATIVE_INSTALL environment variable

Signed-Off-By: Horms <horms.net.au>
xen-unstable changeset: 9601:066a233ee3659fb1e52a4bca05727e5cdd12004a
xen-unstable date: Mon Apr 10 16:35:30 2006 +0100

build: Clean up use of .PHONY

* Move .PHONY directives next to targets,
  this makes them a lot harder to miss
* Add missing .PHONY directives
* Remove nonexistent .PHONY directives
* Hopefully I didn'T miss anything...

Signed-Off-By: Horms <horms.net.au>
xen-unstable changeset: 9607:b454a09cddb1a4ba44e8a810f8f6779c5e5bb3ef
xen-unstable date: Mon Apr 10 17:02:49 2006 +0100

Fix a couple of typos.

Signed-off-by: Keir Fraser <keir.com>
xen-unstable changeset: 9610:7a41b35d73f40246ea839a0628f50dd937b21d50
xen-unstable date: Mon Apr 10 17:28:02 2006 +0100

Remove some bogus .PHONY Makefile declarations.
Fixes xentop installation.

Signed-off-by: Keir Fraser <keir.com>
xen-unstable changeset: 9616:c783f340bef82223eb5fcd88093fd919f41790b6
xen-unstable date: Tue Apr 11 09:58:04 2006 +0100

This fixes the Xen Makefile to allow correct building of cscope, TAGS
and tags. Prior to this the asm directory was not constructed correctly
for the "find" command. "xen\13cope.*" has been added to ".hgignore".

Signed-off-by: Aravindh Puthiyaparambil
               <aravindh.puthiyaparambil.com>
xen-unstable changeset: 9629:4f0ecc016cd1ebda3bff176c8c01113c35b05c7b
xen-unstable date: Thu Apr 13 10:45:43 2006 +0100

Clean up xen Makefile. Use _-prefixed rules to avoid a
comparsion with XEN_ROOT variable.

Signed-off-by: Keir Fraser <keir.com>
xen-unstable changeset: 9630:c9d706834d25a9efe5bd3a98cbf32c6998f30ab4
xen-unstable date: Thu Apr 13 10:57:57 2006 +0100

In some cases, say for instance for some bizzare reason
the tree was checked out of CVS, which doens't neccessarily
store file permissions, mkbuildtree may not be executable.
So run them explicitly via bash.

Signed-Off-By: Horms <horms.net.au>
xen-unstable changeset: 9636:3c05406f5e0acc37eb3e59311c7d1c3cf245dc29
xen-unstable date: Thu Apr 13 11:24:00 2006 +0100

Fix "make debug" in Xen subtree. Pointed out by Aravindh
at Unisys.

Signed-off-by: Keir Fraser <keir.com>
xen-unstable changeset: 9736:25e4cd1c3d269022dc6c75dfddac9710e092f575
xen-unstable date: Tue Apr 25 08:54:36 2006 +0100

Fix fault handler for both 32 and 64 bit architecture. Clean up unused code.
Signed-off-by: Grzegorz Milos <gm281.ac.uk>
Signed-off-by: Aravindh Puthiyaparambil
<aravindh.puthiyaparambil.com>
xen-unstable changeset: 9923:62c8e97d56cfea3708a2bd308330d71047623888
xen-unstable date: Thu May  4 11:19:27 2006 +0100

Make Xen version numbers more flexible.

Signed-off-by: Christian Limpach <Christian.Limpach.cam.ac.uk>
xen-unstable changeset: 9958:c51c1e7ce0a343e02d31c691b317092387505f4c
xen-unstable date: Mon May  8 16:41:22 2006 +0100

Make cscope hgignore wildcard a little bit less permissive.

Signed-off-by: Christian Limpach <Christian.Limpach.cam.ac.uk>
xen-unstable changeset: 9959:4bc1229b257391aa4de6c95796d42d6d7009dc33
xen-unstable date: Mon May  8 17:18:19 2006 +0100

19 years agoFix an out-of-bounds memory access in xc_ptrace.c.
kaf24@firebug.cl.cam.ac.uk [Fri, 12 May 2006 14:49:11 +0000 (15:49 +0100)]
Fix an out-of-bounds memory access in xc_ptrace.c.

Currently, Xen always copies the entire 512 byte extended
FPU state (fxsave) even if only the "regular" FPU state was
requested.

This breaks since the memory buffer allocated in
linux-xen-low.c:regsets_fetch_inferior_registers() is only large
enough to hold the "plain" FPU registers.

Signed-Off-By: Simon Kagstrom <simon.kagstrom@bth.se>
xen-unstable changeset:   9987:8e6835fa7c4bf262a02fe63418eee1ae3fd16516
xen-unstable date:        Fri May 12 15:47:25 2006 +0100

19 years agoFix a typo in xc_ptrace() and fix single-stepping when attached
kaf24@firebug.cl.cam.ac.uk [Thu, 11 May 2006 10:34:34 +0000 (11:34 +0100)]
Fix a typo in xc_ptrace() and fix single-stepping when attached
to a live guest.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   9973:e96f98f9c289ca23b0b3ff7e5d897290ef2b142f
xen-unstable date:        Thu May 11 11:33:07 2006 +0100

19 years agoWhen we copy packets in netback/netfront make sure the new skb has
kaf24@firebug.cl.cam.ac.uk [Wed, 10 May 2006 16:32:22 +0000 (17:32 +0100)]
When we copy packets in netback/netfront make sure the new skb has
all the necessary fields initialised. In particular, before we were
not copying ip_summed and that screws up checksum offload.

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   9972:91c77df11b43894a2940b03029be46f6a1c85319
xen-unstable date:        Wed May 10 17:30:42 2006 +0100

19 years agoSimply do not declare module_exit() handlers for netback/blkback, rather
kaf24@firebug.cl.cam.ac.uk [Wed, 10 May 2006 15:48:12 +0000 (16:48 +0100)]
Simply do not declare module_exit() handlers for netback/blkback, rather
than declaring the modules unsafe.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   9970:60f7b567bb2b00d9dcf6ed86847feba4f9462177
xen-unstable date:        Wed May 10 16:47:00 2006 +0100

19 years agoproto_csum_blank field gets lost if packet is copied in netback driver.
kaf24@firebug.cl.cam.ac.uk [Wed, 10 May 2006 15:26:27 +0000 (16:26 +0100)]
proto_csum_blank field gets lost if packet is copied in netback driver.
Signed-off-by: James Dykman <dykman@us.ibm.com>
xen-unstable changeset:   9969:b61908e30015809a18afb55207f95e232577643a
xen-unstable date:        Wed May 10 16:23:22 2006 +0100

19 years agoSet up and tear down phys_proc_id, cpu_core_id, cpu_sibling_map
kaf24@firebug.cl.cam.ac.uk [Wed, 10 May 2006 14:46:08 +0000 (15:46 +0100)]
Set up and tear down phys_proc_id, cpu_core_id, cpu_sibling_map
and cpu_core_map when CPUs come online and go offline.

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   9962:d8954fc3b76b6bdbe0cd301924b51dffa43409d1
xen-unstable date:        Wed May 10 15:44:56 2006 +0100

19 years agoFix blkif and netif backend teardown -- do not remove devices from
kaf24@firebug.cl.cam.ac.uk [Wed, 10 May 2006 12:42:10 +0000 (13:42 +0100)]
Fix blkif and netif backend teardown -- do not remove devices from
sysfs (and hence trigger hotplug callbacks) until the devices really
are dead. This fixes a bug where the deferred code to free a blk
device was running concurrently with a hotplug-remove callback which
would try to reclaim the underlying storage. In some cases the race
would be lost and the hotplug script would fail.

Thanks to the Zhu Han at Intel for finding the root cause of this
long-term and annoying bug!

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   9961:019411cc3ae564adf62f1d098e99df26f32e952e
xen-unstable date:        Wed May 10 13:27:17 2006 +0100

19 years agoAdd module license to xenbus_be, otherwise the module cannot be loaded.
kaf24@firebug.cl.cam.ac.uk [Mon, 8 May 2006 13:56:18 +0000 (14:56 +0100)]
Add module license to xenbus_be, otherwise the module cannot be loaded.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   9957:85de2de6469912deb98511e6052b50d357f5682b
xen-unstable date:        Mon May  8 14:54:22 2006 +0100

19 years agoThe current Xen code for VMX is setting the gp fault vmexiting in
kaf24@firebug.cl.cam.ac.uk [Mon, 8 May 2006 13:55:42 +0000 (14:55 +0100)]
The current Xen code for VMX is setting the gp fault vmexiting in
the EXCEPTION_BITMAP vmcs control. There is no need for that as VMM is
just plainly re-injecting back to the guest. The attached is a simple
patch to set the vmcs control properly.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
xen-unstable changeset:   9956:a658da3a22dd3413a87b35496a490db028f98b19
xen-unstable date:        Mon May  8 14:53:09 2006 +0100

19 years agoFix injection of guest faults resulting from failed injection of a
kaf24@firebug.cl.cam.ac.uk [Fri, 5 May 2006 13:07:53 +0000 (14:07 +0100)]
Fix injection of guest faults resulting from failed injection of a
previous event. We enter an infinite loop if the original failed
injection cannot be fixed up by Xen (e.g., because it's not a shadow
pagetable issue).

   The RHEL4 HVM guest hang issue was actually a side effect of
change-set 9699. In the rhel4 guest hang rc.sysinit init-script was
calls kmodule program to probe the hardware. The kmodule uses the kudzu
library call probeDevices(). For probing the graphics hardware in the
vbe_get_mode_info() function, sets up the environment and goes into the
vm86 mode to do the int x10 call. For returning back to protected mode
it sets up a int 0xff call. At the time of calling the int 0xff the
guest process pages were not filled up. And it was causing an infinite
loop of vmexits with the IDT_VECTORING_INFO on the int 0xff instruction.

        The reason for the infinite loop is changeset 9699. With that
the guest page fault was always getting overridden by the int 0xff gp
fault coming from the IDT_VECTORING_INFO. With the attached patch if VMM
is injecting exceptions like page faults or gp faults then
IDT_VECTORING_INFO field does not override it, and that breaks the
vmexit infinite loop for the rhel4.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
xen-unstable changeset:   9945:0c586a81d941ab0a18aecca87cffe1500a9185c5
xen-unstable date:        Fri May  5 14:05:31 2006 +0100

19 years agoFix python pciif script to reference correct 2.0 compatibility variable.
kaf24@firebug.cl.cam.ac.uk [Fri, 5 May 2006 13:02:40 +0000 (14:02 +0100)]
Fix python pciif script to reference correct 2.0 compatibility variable.

In the Xen 2.0.x compatibility section of xend (where we try to parse
the s-expressions if they came from an SXP configuration file for Xen
2.0.x), the wrong variable is referenced. This fix corrects the python
script to use the correct variable.

Thanks to Mike Wright for reporting this.

Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
xen-unstable changeset:   9944:7801e09f518cfdf566a405bce2c3f41553e35218
xen-unstable date:        Fri May  5 14:01:43 2006 +0100

19 years agoSVM patch for 64bit hv, to reset the ss, es, ds host selectors to NULL
kaf24@firebug.cl.cam.ac.uk [Thu, 4 May 2006 20:26:02 +0000 (21:26 +0100)]
SVM patch for 64bit hv, to reset the ss, es, ds host selectors to NULL
during a context switch to the SVM domain's vcpu. This patch also
initializes the tlb_control to 1 for the initial do_launch().
Signed-off-by: Tom Woller <thomas.woller@amd.com>
xen-unstable changeset:   9935:8761333499ae2874647eb5d67d8cb091fbc5b14b
xen-unstable date:        Thu May  4 21:24:39 2006 +0100

19 years agoSVM patch to add add init intercept handler.
kaf24@firebug.cl.cam.ac.uk [Thu, 4 May 2006 16:08:19 +0000 (17:08 +0100)]
SVM patch to add add init intercept handler.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
xen-unstable changeset:   9632:cff23e96eae7af54c7b4e5cae80ed1565d6f4941
xen-unstable date:        Thu Apr 13 11:00:54 2006 +0100

SVM patch to add PAE support.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
xen-unstable changeset:   9633:9849bd4a86dd319d8d791e767e37e0d586459c90
xen-unstable date:        Thu Apr 13 11:06:43 2006 +0100

SVM patch to init rsp properly.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
xen-unstable changeset:   9634:137b60a47d139dfaa7d202edb612bcaa1c595801
xen-unstable date:        Thu Apr 13 11:07:28 2006 +0100

SVM patch to add BP exception intercept support.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
xen-unstable changeset:   9635:b77ebfaa72b200af0cdfc38dd8f7dbe274e5e386
xen-unstable date:        Thu Apr 13 11:08:20 2006 +0100

SVM patch to cleanup the host save area allocation and deallocation,
including removing  memory leaks concerning these areas.  Also fixes
problem where the HSA MSR was not initialized properly for cores>0.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
xen-unstable changeset:   9922:e1a47a2696004087852cb9f2e09fe4eb8ad1b928
xen-unstable date:        Thu May  4 11:14:45 2006 +0100

19 years agoFix xenbus userspace device transaction tracking.
cl349@firebug.cl.cam.ac.uk [Thu, 4 May 2006 09:34:27 +0000 (10:34 +0100)]
Fix xenbus userspace device transaction tracking.
If a transaction end command fails, the semaphore which keeps track
of whether we're in a transaction or not was not getting updated.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
xen-unstable changeset: 9921:bbce4d11518910328380f6a3325268acfa5b3aff
xen-unstable date: Thu May  4 10:25:27 2006 +0100

19 years agoBalloon driver should hijack the ->lru list field rather than
kaf24@firebug.cl.cam.ac.uk [Tue, 2 May 2006 16:24:29 +0000 (17:24 +0100)]
Balloon driver should hijack the ->lru list field rather than
adding another list field to every page structure.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset:   9913:decf309fb47b3f4246540a5e1327663651d266fe
xen-unstable date:        Tue May  2 17:23:21 2006 +0100

19 years agoFix perfc array range on reset.
kaf24@firebug.cl.cam.ac.uk [Tue, 2 May 2006 14:25:22 +0000 (15:25 +0100)]
Fix perfc array range on reset.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   9908:7af8039b3c571af038277ab6d7d288d1f2a7acf6
xen-unstable date:        Tue May  2 15:21:19 2006 +0100

19 years agoFix Xen's interrupt acknowledgement routines on certain
kaf24@firebug.cl.cam.ac.uk [Fri, 28 Apr 2006 13:06:33 +0000 (14:06 +0100)]
Fix Xen's interrupt acknowledgement routines on certain
(apparently broken) IO-APIC hardware:
 1. Do not mask/unmask the IO-APIC pin during normal ISR
    processing. This seems to have really bizarre side effects
    on some chipsets.
 2. Since we instead tickle the local APIC in the ->end
    irq hook function, it *must* run on the CPU that
    received the interrupt. Therefore we track which CPUs
    need to do final acknowledgement and IPI them if
    necessary to do so.

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 9644:bb0dc0ae23bb1fe49c197f38951fc424eef2905e
xen-unstable date: Fri Apr 14 12:01:15 2006 +0100

New IO-APIC ACK method seems to cause problems on some systems
(e.g., Dell 1850). Disable it by default for now, but allow the
new mwethod to be tested by passing boot parameter 'new_ack'
to Xen.

You can tell which ACK method you are using because Xen prints
out "Using old ACK method" or "Using new ACK method" during boot.

This workaround can be removed if/when the problems with the new
ACK method are flushed out.

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 9645:9a273aabb839dff897be39a581d716dfed952c79
xen-unstable date: Fri Apr 14 14:14:24 2006 +0100

Big fixes for the new IO-APIC acknowledging method. The problems
were:
 1. Some critical Xen interrupts could get blocked behind
    unacknowledged guest interrupts. This is avoided by making
    all Xen-bound interrrupts strictly higher priority.
 2. Interrupts must not only be EOIed on the CPU that received
    them, but also in reverse order when interrupts are nested.
    A whole load of logic has been added to ensure this.

There are two boot parameters relating to all this:
 'ioapic_ack=old' -- use the old IO-APIC ACK method
 'ioapic_ack=new' -- use the new IO-APIC ACK method (default)
 'force_intack'   -- periodically force acknowledgement of
                     interrupts (default is no; useful for debugging)

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 9664:b39365343de08af6c76fa3492b2cffb436470b3f
xen-unstable date: Sat Apr 15 18:09:52 2006 +0100

Clean up new EOI ack method some more and fix unbinding
IRQ from guest (penidng EOIs must be forcibly flushed).

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 9667:3c1cd09801c047008e529aa03b56059e00c1f4f2
xen-unstable date: Sun Apr 16 15:04:21 2006 +0100

This patch defines a test_and_clear bitop for cpumask_t pointers.
Also fixes "wrong pointer type" for type specific bitops by using
&foo[0] instead of &foo.

Signed-off-by: Jimi Xenidis <jimix@us.ibm.com>
xen-unstable changeset: 9670:b550a93c6459c4f0f2a86b61a08768d040482d88
xen-unstable date: Wed Apr 19 18:24:49 2006 +0100

Replace &foo[0] with foo where the latter seems cleaner
(which is usually, and particularly when its an argument
to one of the bitops functions).

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 9671:72f9c751d3ea1f17ff513cd7fc2cbe671a9af7c9
xen-unstable date: Wed Apr 19 18:32:20 2006 +0100

19 years agoTurn pirq_mask into a generic bitmap type.
kaf24@firebug.cl.cam.ac.uk [Fri, 28 Apr 2006 13:04:56 +0000 (14:04 +0100)]
Turn pirq_mask into a generic bitmap type.

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 9583:3b0d07af46cb0c456912b287a0365172746ae9e0
xen-unstable date: Fri Apr  7 14:27:46 2006 +0100

Fix my slightly broken change to pirq_mask logic -- we must
pass the last seen bit *plus 1* to find_next_bit().

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 9585:05db1d61e031d2fb48e561b185fa42981547db9a
xen-unstable date: Fri Apr  7 16:15:44 2006 +0100

19 years agoAdd bounds check to get_mfn_from_gpfn().
kaf24@firebug.cl.cam.ac.uk [Thu, 27 Apr 2006 13:14:26 +0000 (14:14 +0100)]
Add bounds check to get_mfn_from_gpfn().
From: Jan Beulich
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoOccasionally large smp machines fail to reboot properly and die under
kaf24@firebug.cl.cam.ac.uk [Thu, 27 Apr 2006 08:58:50 +0000 (09:58 +0100)]
Occasionally large smp machines fail to reboot properly and die under
an IPI storm of smp_call_function() to machine_reboot.  Only the boot
processor needs to run machine_restart, so send an IPI to CPU0.

Original patch by: Ryan Harper <ryanh@us.ibm.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoCheck a write() return value in xenbaked.
kaf24@firebug.cl.cam.ac.uk [Thu, 27 Apr 2006 08:47:42 +0000 (09:47 +0100)]
Check a write() return value in xenbaked.

From: Jeremy Katz

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoJust allocate unbound irq only from dynirq range, since
kaf24@firebug.cl.cam.ac.uk [Thu, 27 Apr 2006 08:44:28 +0000 (09:44 +0100)]
Just allocate unbound irq only from dynirq range, since
pirq range is reserved for physical devices. This saves
unnecessary checks on pirq range.

Signed-off-by Kevin Tian <kevin.tian@intel.com>

19 years agoThis patch addresses CVE-2006-1056 (information leak from
kaf24@firebug.cl.cam.ac.uk [Thu, 27 Apr 2006 08:39:14 +0000 (09:39 +0100)]
This patch addresses CVE-2006-1056 (information leak from
fxsave/fxrstor on AMD CPUs) and also adjusts 64-bit handling so that
full 64-bit RIP/RDP values get saved/restored. More fine-grained
handling may be needed if 32-bit processes are expected to properly
see their selectors (native Linux doesn't currently do that either,
but there is a patch to adjust it there).

Original patch: Jan Beulich (based on Linux original by Andi Kleen)

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMake xen_features and force_evtchn_callback() non-GPL
kaf24@firebug.cl.cam.ac.uk [Wed, 26 Apr 2006 16:44:46 +0000 (17:44 +0100)]
Make xen_features and force_evtchn_callback() non-GPL
symbols as they are used in a variety of ubiquitous
kernel macros.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoWhile other aspects of the system configuration may still be
kaf24@firebug.cl.cam.ac.uk [Tue, 25 Apr 2006 13:51:10 +0000 (14:51 +0100)]
While other aspects of the system configuration may still be
controlled by the outcome of the table scan, if apic= was given on the
command line its effect should not be overridden here.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoChange the xenbus_map_ring_valloc() interface and implementation so
kaf24@firebug.cl.cam.ac.uk [Tue, 25 Apr 2006 13:30:16 +0000 (14:30 +0100)]
Change the xenbus_map_ring_valloc() interface and implementation so
that it is buildable as a module.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoFix build.
cl349@firebug.cl.cam.ac.uk [Mon, 24 Apr 2006 19:29:36 +0000 (20:29 +0100)]
Fix build.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
19 years agoRemove \r characters.
cl349@firebug.cl.cam.ac.uk [Mon, 24 Apr 2006 17:08:24 +0000 (18:08 +0100)]
Remove \r characters.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
xen-unstable changeset: 9735:a5fcffc826f3c77a8b28a78fbf099fde7ea27f0b
xen-unstable date: Mon Apr 24 18:07:27 2006 +0100

19 years agoDo not create blkback vbd kernel thread until fully connected
cl349@firebug.cl.cam.ac.uk [Mon, 24 Apr 2006 17:06:10 +0000 (18:06 +0100)]
Do not create blkback vbd kernel thread until fully connected
to frontend driver. Otherwise the kernel thread may crash trying
to access the non-existent shared ring.

Replaces xen-3.0-testing cset: 9595:32b22f5286beba94318e60704a8058ac3833d502

Signed-off-by: Keir Fraser <keir@xensource.com>
xen-unstable changeset: 9571:24d25894f071bed67d5547c1790a075271ab1174
xen-unstable date: Thu Apr  6 18:39:00 2006 +0100

19 years agoThe Xen checksum offload feature attempts to insert a TCP/UDP
kaf24@firebug.cl.cam.ac.uk [Sat, 22 Apr 2006 09:42:34 +0000 (10:42 +0100)]
The Xen checksum offload feature attempts to insert a TCP/UDP
checksums into already encrypted packets (esp4) in dom0.  Obviously,
it is not possible to insert a checksum into an already encrypted
packet, so this patch inserts the checksum prior to encrypting
packets in net/ipv4/xfrm4_output.c.

To do this cleanly, the TCP/UDP header pointers need to be pointed to
the correct spot, so this functionality has been abstracted into a new
function.

This patch fixes bug 143 (verified by Jim Dykman).  Earlier version
verified by Jon McCune.

Signed-off-by: James Dykman <dykman@us.ibm.com>
Signed-off-by: Jon Mason <jdmason@us.ibm.com>
19 years agoAvoid spurious timer activations in migrate_timer().
kaf24@firebug.cl.cam.ac.uk [Sat, 22 Apr 2006 09:38:27 +0000 (10:38 +0100)]
Avoid spurious timer activations in migrate_timer().

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoRemove update_vcpu_system_time() call from the per-VCPU timer
kaf24@firebug.cl.cam.ac.uk [Sat, 22 Apr 2006 09:29:27 +0000 (10:29 +0100)]
Remove update_vcpu_system_time() call from the per-VCPU timer
callback function. It's unnecessary and in fact may occasionally
even run on the wrong CPU.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix command-line parsing in a few respects -- be more
kaf24@firebug.cl.cam.ac.uk [Fri, 21 Apr 2006 17:10:13 +0000 (18:10 +0100)]
Fix command-line parsing in a few respects -- be more
generous about what we accept, avoid stack overflow, and
print the command line during boot (rather useful!).

This should fix the 'lapic' and 'nolapic' boot options.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoDemote scary IO-APIC REGSEL message to DPRINTK.
kaf24@firebug.cl.cam.ac.uk [Fri, 21 Apr 2006 16:52:59 +0000 (17:52 +0100)]
Demote scary IO-APIC REGSEL message to DPRINTK.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix inverted BUG_ON().
kaf24@firebug.cl.cam.ac.uk [Fri, 21 Apr 2006 13:04:01 +0000 (14:04 +0100)]
Fix inverted BUG_ON().

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoPropagate information about bad (or good) REGSEL register
kaf24@firebug.cl.cam.ac.uk [Fri, 21 Apr 2006 09:45:31 +0000 (10:45 +0100)]
Propagate information about bad (or good) REGSEL register
of chipset IO-APICs to Xen. If REGSEL is bad (some old SiS
chipsets) then we have a slower read-modify-write routine.
Loosely based on an original patch from Jan Beulich.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix the "hda lost interrupt" issue when creating a VMX guest on a PAE
kaf24@firebug.cl.cam.ac.uk [Fri, 21 Apr 2006 09:11:37 +0000 (10:11 +0100)]
Fix the "hda lost interrupt" issue when creating a VMX guest on a PAE
host.

Occasionally when injecting an IDE DMA interrupt into the guest, a
page fault occurs (e.g., because the IDT mapping is not present in
shadow pagetables).  This causes an immediate vmexit and, because it
occurred during event delivery, the original VM_ENTRY_INTR_INFO_FIELD
is kept in IDT_VECTORING_INFO_FIELD.

The current code copies IDT_VECTORING_INFO_FIELD back to
VM_ENTRY_INTR_INFO_FIELD, intending that the interrupt will be
injected again on next vmresume.

However, there is a corner case: if, before the next vmresume, a timer
interrupt happened then vmx_intr_assist may overwrite the information
on VM_ENTRY_INTR_INFO_FIELD, and the IDE DMA interrupt is effectively
lost.

This patch checks the IDT_VECTORING_INFO_FIELD in vmx_intr_assist and,
if it is set, copies it to VM_ENTRY_INTR_INFO_FIELD and returns.

Signed-off-by: Yunhong Jiang <Yunhong.jiang@intel.com>
Signed-off-by: Eddie Dong <eddie.dong@intel.com>
19 years agoThere are instances where we DO NOT want an hvm guest to run an
kaf24@firebug.cl.cam.ac.uk [Fri, 21 Apr 2006 08:57:29 +0000 (09:57 +0100)]
There are instances where we DO NOT want an hvm guest to run an
MP enabled kernel.  In such situations we should have a workaround to
guarantee hvm guests will not detect MP.

For example, in the absence of ACPI and MPS the installation code in some
linux distributions key off the presence of cpuid edx/HTT bit (indicating
the presence of Hyper-Threading Technology) to determine if another
logical processor is present and if so load an MP enabled kernel instead
of a uniprocessor kernel.  SMBIOS is also looked at for the same purpose
and presents a potential problem as well.  While both approaches for
selecting an MP kernel are debatable (since using MPS or ACPI have long
been the standard for MP detection), these approaches are something we
have to live and work around with because making a change in the fully
virtualized guest is not an option.

To solve the problem we need to hide all secondary processors from the hvm
guest.  Since the hvm does not surface MPS tables, we only need to deal
with ACPI, cpuid HTT, and possibly SMBIOS.   (I did not have time right
now to look closely at the hvm BIOS to know if SMBIOS is also going to be
a problem.)

Also fixes a logic problem the code path where apic=0 was not
being handled correctly (vmx path only).

Signed-off-by: Clyde Griffin <cgriffin@novell.com>
19 years agoPAE pgd construction code should use clone_pgd_range().
kaf24@firebug.cl.cam.ac.uk [Fri, 21 Apr 2006 08:38:20 +0000 (09:38 +0100)]
PAE pgd construction code should use clone_pgd_range().
Also fix the loop that allocates users pmds.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix python installation on sles10. Install prefix is being
kaf24@firebug.cl.cam.ac.uk [Fri, 21 Apr 2006 08:14:47 +0000 (09:14 +0100)]
Fix python installation on sles10. Install prefix is being
passed along for some reason, so we explicitly redefine it
to nothing.

Signed-off-by: Ryan Grimm <grimm@us.ibm.com>
19 years agoMinor comment fix.
kaf24@firebug.cl.cam.ac.uk [Fri, 21 Apr 2006 08:11:54 +0000 (09:11 +0100)]
Minor comment fix.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix user manual regarding trace buffers.
kaf24@firebug.cl.cam.ac.uk [Fri, 21 Apr 2006 08:08:55 +0000 (09:08 +0100)]
Fix user manual regarding trace buffers.
 1. debug building is not needed for tracing buffer...
 2. ...but trace buffer default size is 0

Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
19 years agox86/64 e820-parse-and-map code should skip low 1GB now as that
kaf24@firebug.cl.cam.ac.uk [Thu, 20 Apr 2006 16:11:12 +0000 (17:11 +0100)]
x86/64 e820-parse-and-map code should skip low 1GB now as that
is mapped by the boot code.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoIncrease size of level-2 initial PDE identity map from first 64MB of
kaf24@firebug.cl.cam.ac.uk [Thu, 20 Apr 2006 16:10:51 +0000 (17:10 +0100)]
Increase size of level-2 initial PDE identity map from first 64MB of
physical RAM to first 1GB of physical RAM. This allows x86_64 xen to boot
larger dom0 images. Without this changes large dom0 images fail to
boot with "Unknown interrupt" on xen console and wedge.

Signed-off-by: Todd Clayton <todd.clayton@sun.com>
19 years agoSVM patch to ensure that PAE bit is set for 32bit guests on 32bit PAE,
kaf24@firebug.cl.cam.ac.uk [Thu, 20 Apr 2006 16:04:58 +0000 (17:04 +0100)]
SVM patch to ensure that PAE bit is set for 32bit guests on 32bit PAE,
by using paging levels>=3 rather than ifdef i386.  This patch fixes
the "black screen" hang issue when building w/XEN_TARGET_X86_PAE=y on
32bit.

Tested linux debian and win2003EE guests with pae=1.  The linux
guest boots without error, while the windows guest sometimes hits a
bug() in shadow.c.  Both VT and SVM encounter the same bug.

Signed-off-by: Tom Woller <thomas.woller@amd.com>
19 years agoCompile md-mod into the -xen linux kernel rather than as a module as otherwise s...
iap10@freefall.cl.cam.ac.uk [Thu, 20 Apr 2006 12:42:31 +0000 (13:42 +0100)]
Compile md-mod into the -xen linux kernel rather than as a module as otherwise s/w raid autodetect doesn't work.
Signed-off-by: ian@xensource.com
19 years agoOnly BSP can really do clear_all_shadow_status.
kaf24@firebug.cl.cam.ac.uk [Sun, 16 Apr 2006 14:45:57 +0000 (15:45 +0100)]
Only BSP can really do clear_all_shadow_status.
This fixes SMP IA32 VMX guest booting on IA32 xen.

Signed-off-by: Xin Li <xin.b.li@intel.com>
19 years agoRead the message type out of the message before sending it to xenstored, and
kaf24@firebug.cl.cam.ac.uk [Sat, 15 Apr 2006 21:48:08 +0000 (22:48 +0100)]
Read the message type out of the message before sending it to xenstored, and
use that saved value when handling the reply.  Xenstored will leave the
message type intact, _except_ when returning an error, in which case it will
change the type to XS_ERROR.  This meant that we failed to remove a
transaction from our internal list if xenstored returned EAGAIN, as we did not
realise that the message was XS_TRANSACTION_END.  This manifested itself as
the intended behaviour until the connection was closed, at which point all of
those failed transactions would erroneously be aborted.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove bogus extern declaration.
kaf24@firebug.cl.cam.ac.uk [Sat, 15 Apr 2006 14:54:35 +0000 (15:54 +0100)]
Remove bogus extern declaration.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoTouch softlockup watchdog while warning user about use of
kaf24@firebug.cl.cam.ac.uk [Sat, 15 Apr 2006 09:17:20 +0000 (10:17 +0100)]
Touch softlockup watchdog while warning user about use of
tls libraries.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAllow cpus parameter to xm create to accept a range string by removing the
kaf24@firebug.cl.cam.ac.uk [Sat, 15 Apr 2006 09:16:48 +0000 (10:16 +0100)]
Allow cpus parameter to xm create to accept a range string by removing the
restriction of cpus accepting only integers.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
19 years agoFix SETMAXMEM dom0_op with proper locking.
kaf24@firebug.cl.cam.ac.uk [Sat, 15 Apr 2006 08:53:52 +0000 (09:53 +0100)]
Fix SETMAXMEM dom0_op with proper locking.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoCurrently, it is possible to set the mem-max value to value lower than
kaf24@firebug.cl.cam.ac.uk [Sat, 15 Apr 2006 08:53:27 +0000 (09:53 +0100)]
Currently, it is possible to set the mem-max value to value lower than
what has been currently allocated to the domain causing the kernel to
crash. This patch validates the value passed in and prevents setting the
value below the current allocation level.

Signed-off-by: ksrinivasan@novell.com
19 years agoSince we don't reset the proto_csum_blank flag in the skb, the
kaf24@firebug.cl.cam.ac.uk [Fri, 14 Apr 2006 13:24:38 +0000 (14:24 +0100)]
Since we don't reset the proto_csum_blank flag in the skb, the
checksum calculation gets done twice, which is not twice as good as
once.

With this patch, TCP/UDP checksum errors from dom0 are fixed, and
domUs can use TCP/UDP without turning off TX checksum offload.  Normal
non-VLAN bridged configs still work fine, tested with xm-test.

Signed-off-by: Jim Dykman <dykman@us.ibm.com>
19 years agoTrivial patch to fix x86_64 builds in which XEN_TARGET_ARCH
kaf24@firebug.cl.cam.ac.uk [Fri, 14 Apr 2006 13:19:05 +0000 (14:19 +0100)]
Trivial patch to fix x86_64 builds in which XEN_TARGET_ARCH
is specified on the make command line, e.g.:
     make XEN_TARGET_ARCH=x86_64

This busted the vmxassist and hvmloader builds, which must
be done -m32.  Using "override" in the vmxassist/hvmloader
Makefiles fixes the problem by not allowing this to be
overridden from the command line.

Signed-off-by: Dave Lively <dlively@virtualiron.com>
19 years agoCall move_irq() during evtchn ->ack irq hook functions. This
kaf24@firebug.cl.cam.ac.uk [Fri, 14 Apr 2006 11:05:03 +0000 (12:05 +0100)]
Call move_irq() during evtchn ->ack irq hook functions. This
triggers SMP affinity work.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMust use __copy_to_user_inatomic() in swiotlb's sync_single()
kaf24@firebug.cl.cam.ac.uk [Fri, 14 Apr 2006 11:04:41 +0000 (12:04 +0100)]
Must use __copy_to_user_inatomic() in swiotlb's sync_single()
function, as we cannot sleep there.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix stack corruption in the libxs python interface. domid_t is a short;
kaf24@firebug.cl.cam.ac.uk [Thu, 13 Apr 2006 18:14:46 +0000 (19:14 +0100)]
Fix stack corruption in the libxs python interface. domid_t is a short;
instead use uint32_t like we do in xc.c.

Signed-off-by: John Levon <john.levon@sun.com>
19 years agoAllow PCI-E and PCMCIA config on 64-bit Xenlinux.
kaf24@firebug.cl.cam.ac.uk [Thu, 13 Apr 2006 14:18:37 +0000 (15:18 +0100)]
Allow PCI-E and PCMCIA config on 64-bit Xenlinux.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdded tag RELEASE-3.0.2-2 for changeset bb864e228d5566a34be91987c8be59af8dcb708d
jrb44@swoop.cl.cam.ac.uk [Thu, 13 Apr 2006 13:28:41 +0000 (14:28 +0100)]
Added tag RELEASE-3.0.2-2 for changeset bb864e228d5566a34be91987c8be59af8dcb708d

19 years agoBump extra version for 3.0.2-2 RELEASE-3.0.2-2
jrb44@swoop.cl.cam.ac.uk [Thu, 13 Apr 2006 13:28:30 +0000 (14:28 +0100)]
Bump extra version for 3.0.2-2

Signed-off-by: James Bulpin <james@xensource.com>
19 years agoMerged.
emellor@leeni.uk.xensource.com [Wed, 12 Apr 2006 17:54:35 +0000 (18:54 +0100)]
Merged.

19 years agoReset the cached state to XenbusStateInitialising on resume -- we're connecting
emellor@leeni.uk.xensource.com [Wed, 12 Apr 2006 17:54:27 +0000 (18:54 +0100)]
Reset the cached state to XenbusStateInitialising on resume -- we're connecting
to a new backend, so the state value needs to be reset.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded tag RELEASE-3.0.2-1 for changeset 9133a9c39a18e748928c31aa9aee4cf008c9877f
jrb44@swoop.cl.cam.ac.uk [Tue, 11 Apr 2006 21:14:24 +0000 (22:14 +0100)]
Added tag RELEASE-3.0.2-1 for changeset 9133a9c39a18e748928c31aa9aee4cf008c9877f

19 years agoUpdate version for 3.0.2-1 RELEASE-3.0.2-1
jrb44@swoop.cl.cam.ac.uk [Tue, 11 Apr 2006 21:13:44 +0000 (22:13 +0100)]
Update version for 3.0.2-1

Signed-off-by: James Bulpin <james@xensource.com>
19 years agoFix KERNELS example, mkinitrd example.
emellor@leeni.uk.xensource.com [Tue, 11 Apr 2006 11:50:56 +0000 (12:50 +0100)]
Fix KERNELS example, mkinitrd example.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoUpdated to reflect new KERNELS defaults, and properly describe make install and
emellor@leeni.uk.xensource.com [Tue, 11 Apr 2006 11:50:46 +0000 (12:50 +0100)]
Updated to reflect new KERNELS defaults, and properly describe make install and
make dist.

19 years agoMerged.
emellor@leeni.uk.xensource.com [Tue, 11 Apr 2006 11:42:28 +0000 (12:42 +0100)]
Merged.

19 years agoThe maximum instruction length for both x86-32 and
kaf24@firebug.cl.cam.ac.uk [Tue, 11 Apr 2006 09:44:58 +0000 (10:44 +0100)]
The maximum instruction length for both x86-32 and
x86-64 is 15 bytes (including all prefixes, opcode,
ModRM, SIB, displacement, and immediate bytes).
This patch adjusts the MAX_INST_LEN to the correct
value.  This should reduce the size of some variables
in the hypervisor code.  This patch also does some
minor code clean-up in the vm exit handler for VMX.

Signed-off-by: Khoa Huynh <khoa@us.ibm.com>
19 years agoWhen running test 5 in Memtest86+ v1.65, I got a "this opcode is not
kaf24@firebug.cl.cam.ac.uk [Tue, 11 Apr 2006 09:42:38 +0000 (10:42 +0100)]
When running test 5 in Memtest86+ v1.65, I got a "this opcode is not
supported", so I decided to add it. It's a compare operation, and it's
just the opposite of the already supported one (opcode 0x39), so it's
nothing spectacular. Why there's a page-fault when this instruction gets
executed, I haven't got a clue, but I have a feeling that Memtest86 is
doing something wrong :-( However, this fix may help some other code to
run too...

With this, Test 5 passes all the way through without crashing. I did see
some occassional memory errors in some other tests, and I'm not 100%
sure whether those are caused by the system or they are "real" memory
errors. At some time in the future I may get round to memory testing my
target system...

Signed off by: Mats Petersson (mats.petersson@amd.com)

19 years agoFix the test inside all_devices_ready, and move it from xenbus_probe (a
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 17:57:58 +0000 (18:57 +0100)]
Fix the test inside all_devices_ready, and move it from xenbus_probe (a
postcore_initcall) to a new late_initcall, so that it happens after the
drivers have initialised.

Fixes the reopened bug #549 (I hope).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
Netfront must switch state using xenbus_switch_state() or this
is not picked up by the waiting code in xenbus_probe.c.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdd a new config option for all backend drivers. This has two benefits:
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 17:33:04 +0000 (18:33 +0100)]
Add a new config option for all backend drivers. This has two benefits:
 1. All backend drivers can be disabled or modularised via
    one config option.
 2. Backend helper routines that are not specific to any particular driver
    can be disabled or modularised based on this config option. In
    particular this may allow backend drivers plus the service module
    to be upgraded separate from the kernel core as and when the backend
    interfaces change (and they will).

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix push/pop usage in tools/ioemu for x86/64.
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 16:27:07 +0000 (17:27 +0100)]
Fix push/pop usage in tools/ioemu for x86/64.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoIf the 'cdrom=' option is specified in the definition file but media is
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 16:17:07 +0000 (17:17 +0100)]
If the 'cdrom=' option is specified in the definition file but media is
not found in the CD drive then main() in vl.c exits and the guest appears
to hang.  This patch modifies vl.c slightly to check for the presents of
media.  If the cdrom cannot be opened then the cd entry is removed from
hd_filename[] and bs_table[] allowing the guest to continue initializing.
If the guest requires the CD media then the guest should report, gracefully
or otherwise, that it's missing.

From: Ross Maxfield <rmaxfiel@novell.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agofix bug #609 - error: PIC register `bx' clobbered in `asm'
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 16:14:36 +0000 (17:14 +0100)]
fix bug #609 - error: PIC register `bx' clobbered in `asm'

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
19 years ago'make mkpatches' diffs against pristine tree rather than
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 16:14:15 +0000 (17:14 +0100)]
'make mkpatches' diffs against pristine tree rather than
ref tree, so it includes extra patches under patches/ subdirectory.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFurther workarounds for the broken string marshalling in xmlrpclib. Regardless
emellor@leeni.uk.xensource.com [Mon, 10 Apr 2006 15:38:48 +0000 (16:38 +0100)]
Further workarounds for the broken string marshalling in xmlrpclib.  Regardless
of the encoding used, one still may not include non-printable characters in an
XML document.  When a dmesg contains a ^D character, something seen on one of
our test machines, an invalid XML document is generated.

Use a trick by David Mertz to work around this -- escape the string using
Python's repr function.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoIO-APIC update hypercall fixes. These are known to fix issues with
kaf24@firebug.cl.cam.ac.uk [Sat, 8 Apr 2006 11:14:27 +0000 (12:14 +0100)]
IO-APIC update hypercall fixes. These are known to fix issues with
'pnpacpi' in domain 0.  Incorporates the following three changesets
from xen-unstable.hg:
 9589:e36892ad41444b5d2deb2fbea6b4ee2e52b7edac
 "Clean up IO-APIC update tracing and demote to DPRINTK()."
 9588:70837ac15cadf83e1fda27ae8468317afeb88ab0
 "Fix remove_pin_at_irq()."
 9586:f84a333d8aa6e1a25e2b73b07610e95007267f6a
 "Robustify and add tracing to the IO-APIC update hypercall."

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoPower down an x86 system directly within domain0 rather than
kaf24@firebug.cl.cam.ac.uk [Sat, 8 Apr 2006 08:07:54 +0000 (09:07 +0100)]
Power down an x86 system directly within domain0 rather than
executing a shutdown hypercall. Domain0 is able to execute
ACPI power-off code.

Signed-off-by: Harry Butterworth <butterwo@uk.ibm.com>
19 years agoAdditional sanity / compatability checks during guest build.
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Apr 2006 17:33:36 +0000 (18:33 +0100)]
Additional sanity / compatability checks during guest build.

Signed-off-by: Steven Hand <steven@xensource.com>
19 years agoFix another blkback kernel thread I introduced. :-( The kernel thread
kaf24@firebug.cl.cam.ac.uk [Thu, 6 Apr 2006 17:34:32 +0000 (18:34 +0100)]
Fix another blkback kernel thread I introduced. :-( The kernel thread
is created before we are fully connected to the front end, so before
entering the main loop we must make sure that the shared ring is
mapped, otherwise we can fault.

This patch is an essential companion to the other two blkback
patches I committed earlier today. Hopefully this ends the saga.

Signed-off-by: Keir Fraser <keir@xensource.com>