]> xenbits.xensource.com Git - xen.git/log
xen.git
19 years agomerge with xen-unstable.hg
awilliam@xenbuild.aw [Wed, 12 Apr 2006 00:54:18 +0000 (18:54 -0600)]
merge with xen-unstable.hg

19 years ago[IA64] Makefile fix for xenirq.c removal
awilliam@xenbuild.aw [Tue, 11 Apr 2006 19:55:47 +0000 (13:55 -0600)]
[IA64] Makefile fix for xenirq.c removal

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years ago[IA64] Remove xenirq.c.
awilliam@xenbuild.aw [Tue, 11 Apr 2006 19:55:40 +0000 (13:55 -0600)]
[IA64] Remove xenirq.c.

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
19 years ago[IA64] Cleanup to irq.c
awilliam@xenbuild.aw [Tue, 11 Apr 2006 19:55:36 +0000 (13:55 -0600)]
[IA64] Cleanup to irq.c

This patch is a big cleanup to irq.c, with only real
necessary interfaces kept now. The irq subsystem of
xen is very simple since most external devices are
controlled by dom0. Also especially there's no need
to keep CONFIG_XEN everywhere, since this file is
already out of sync of linux version for a long time.
Actually xen defines irq related structures differently
and it's worthy of creating a xen specific version here.

Another change of this patch is to remove ugly check
upon timer/ipi within irq handler. Instead now we'll
check IRQ_GUEST flag of irq_desc to decide whether
to deliver irq to guest. Now all vectors un-registered
are set with IRQ_GUEST enabled, which is identical to
current assumption. Later this flag should be set only
per guest's request. Then Xen_do_irq is not reuqired
as the result of this change.

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
19 years ago[IA64] warning fix
awilliam@xenbuild.aw [Tue, 11 Apr 2006 19:54:58 +0000 (13:54 -0600)]
[IA64] warning fix

Fixed some compilation warnings

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
19 years agoMerged.
emellor@leeni.uk.xensource.com [Tue, 11 Apr 2006 11:51:48 +0000 (12:51 +0100)]
Merged.

19 years agoFix KERNELS example, mkinitrd example.
emellor@leeni.uk.xensource.com [Tue, 11 Apr 2006 11:46:39 +0000 (12:46 +0100)]
Fix KERNELS example, mkinitrd example.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoThe maximum instruction length for both x86-32 and
kaf24@firebug.cl.cam.ac.uk [Tue, 11 Apr 2006 09:44:07 +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:41:08 +0000 (10:41 +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).=20

19 years agoMake event_pending() architecture-specific.
kaf24@firebug.cl.cam.ac.uk [Tue, 11 Apr 2006 09:40:03 +0000 (10:40 +0100)]
Make event_pending() architecture-specific.
PowerPC needs this because the domain can directly modify the hardware's
"interrupts enabled" bit, and we don't want to patch Linux to replace
all those accesses to use evtchn_upcall_mask instead.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
19 years agoRemove some bogus .PHONY Makefile declarations.
kaf24@firebug.cl.cam.ac.uk [Tue, 11 Apr 2006 08:58:04 +0000 (09:58 +0100)]
Remove some bogus .PHONY Makefile declarations.
Fixes xentop installation.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[IA64] get_pfn_list workaround
awilliam@xenbuild.aw [Mon, 10 Apr 2006 21:13:42 +0000 (15:13 -0600)]
[IA64] get_pfn_list workaround

As we know, the mechanism for hypervisor to pass parameter through pointer
is not complete. Hypervisor use copy_from/to_user functions to copy parameter
to hypervisor and copy result to user, if there is a tlb miss happening and
hypervisor can't handled this. This hypercall fails, there is no mechanism to
handle this failure, that may cause domain crash. Get_pfn_list hypercall copy
large data from hypervisor to user, it is easy to trigger this issue when
creating VTI-domain.

If fails, Get_pfn_list returns the number of pfn entries, and this patch will
Dummy access parameter memory block to cause this tlb mapping tracked by
Hypervisor, then continue to do get_pfn_list.

It's a workaround before we design a new mechanism of passing parameter thr
pointer.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
19 years ago[IA64] access reflect fix
awilliam@xenbuild.aw [Mon, 10 Apr 2006 20:54:35 +0000 (14:54 -0600)]
[IA64] access reflect fix

Before injecting fault to guest, VMM need to setup
guest itir by using guest region register.
But the lowest two bits of itir are reserved. VMM need
to reset these two bits.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
19 years ago[IA64] ptc.ga for SMP-g
awilliam@xenbuild.aw [Mon, 10 Apr 2006 20:51:38 +0000 (14:51 -0600)]
[IA64] ptc.ga for SMP-g

Implementation of ptc.ga for SMP-g.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
19 years agoNetfront must switch state using xenbus_switch_state() or this
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 17:56:34 +0000 (18:56 +0100)]
Netfront must switch state using xenbus_switch_state() or this
is not picked up by the waiting code in xenbus_probe.c.

Also clean up the waiting code a little.

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:30:07 +0000 (18:30 +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 agoMerged.
emellor@leeni.uk.xensource.com [Mon, 10 Apr 2006 17:18:03 +0000 (18:18 +0100)]
Merged.

19 years agoFix the test inside all_devices_ready, and move it from xenbus_probe (a
emellor@leeni.uk.xensource.com [Mon, 10 Apr 2006 17:17:54 +0000 (18:17 +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>
19 years agoFail the build if NR_hypercalls is not a power of two.
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 16:32:30 +0000 (17:32 +0100)]
Fail the build if NR_hypercalls is not a power of two.
Making this requirement clearer originally suggested by
Muli Ben Yehuda.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix a couple of typos.
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 16:28:02 +0000 (17:28 +0100)]
Fix a couple of typos.

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:25:42 +0000 (17:25 +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:16:25 +0000 (17:16 +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 agobuild: Clean up use of .PHONY
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 16:02:49 +0000 (17:02 +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@verge.net.au>
19 years agobuild: Clean pygrub's a.out
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 15:36:38 +0000 (16:36 +0100)]
build: Clean pygrub's a.out

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
Signed-Off-By: Horms <horms@valinux.co.jp>
19 years agoMerged.
emellor@leeni.uk.xensource.com [Mon, 10 Apr 2006 15:36:03 +0000 (16:36 +0100)]
Merged.

19 years agobuild: Document the use of XEN_PYTHON_NATIVE_INSTALL
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 15:35:30 +0000 (16:35 +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@verge.net.au>
19 years agobuild: clean up output of make help a little bit
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 15:34:59 +0000 (16:34 +0100)]
build: clean up output of make help a little bit

Signed-Off-By: Horms <horms@verge.net.au>
19 years agobuild: Make sure that DESTDIR is set
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 15:31:53 +0000 (16:31 +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 $(DESTDIR)/ instead of
$(DESTDIR). 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@verge.net.au>
19 years agoInitialise offsetopt when offset == 0. Closes bug #599.
emellor@leeni.uk.xensource.com [Mon, 10 Apr 2006 15:28:52 +0000 (16:28 +0100)]
Initialise offsetopt when offset == 0.  Closes bug #599.

Report and diagnosis by Robert Hendrickx <robert.hendrickx@advalvas.be>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agobuild: Remove iptables and python loging helper targets
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 15:27:46 +0000 (16:27 +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@verge.net.au>
19 years agoRemove unused netbsd build fragments.
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 15:26:52 +0000 (16:26 +0100)]
Remove unused netbsd build fragments.

Signed-Off-By: Homrs <horms@verge.net.au>
19 years agoFix call to server, using new XendClient syntax.
emellor@leeni.uk.xensource.com [Mon, 10 Apr 2006 15:26:23 +0000 (16:26 +0100)]
Fix call to server, using new XendClient syntax.

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 [Mon, 10 Apr 2006 15:21:44 +0000 (16:21 +0100)]
Updated to reflect new KERNELS defaults, and properly describe make install and
make dist.

19 years agofix bug #609 - error: PIC register `bx' clobbered in `asm'
vhanquez@kneesa.uk.xensource.com [Mon, 10 Apr 2006 14:51:10 +0000 (14:51 +0000)]
fix bug #609 - error: PIC register `bx' clobbered in `asm'

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
19 years agoI used the wrong operator in a couple places for putting together some
emellor@leeni.uk.xensource.com [Mon, 10 Apr 2006 13:47:51 +0000 (14:47 +0100)]
I used the wrong operator in a couple places for putting together some
error messages out of format strings. This patch corrects those
operators and fixes the strings.

Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
19 years ago'make mkpatches' diffs against pristine tree rather than
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 12:24:58 +0000 (13:24 +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 agoIntroduce page_to_bus() and use it in pci-dma-xen.c and swiotlb.c. On
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Apr 2006 10:39:32 +0000 (11:39 +0100)]
Introduce page_to_bus() and use it in pci-dma-xen.c and swiotlb.c. On
xen/ia64 with the P2M/VP model pseudo physical address(gpaddr) is
fully virtualized so it defines
xen_features(XENFEAT_auto_translated_physmap) = 1.  In this case
page_to_phys(page) should return pseudo physical address like
pfn_to_mfn() and its families.  However dma is not virtualized, it
can't be used for pci-dma-xen.c, swiotlb.c.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agofix x86_32 default linux builds
ack@kneesa.uk.xensource.com [Mon, 10 Apr 2006 09:57:38 +0000 (10:57 +0100)]
fix x86_32 default linux builds

19 years agoRemove various compile-time options from SEDF scheduler and
kaf24@firebug.cl.cam.ac.uk [Sun, 9 Apr 2006 17:23:16 +0000 (18:23 +0100)]
Remove various compile-time options from SEDF scheduler and
clean up formatting.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoBuild CONFIG_PNP_ACPI by default.
kaf24@firebug.cl.cam.ac.uk [Sat, 8 Apr 2006 11:10:04 +0000 (12:10 +0100)]
Build CONFIG_PNP_ACPI by default.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoClean up IO-APIC update tracing and demote to DPRINTK().
kaf24@firebug.cl.cam.ac.uk [Sat, 8 Apr 2006 11:09:25 +0000 (12:09 +0100)]
Clean up IO-APIC update tracing and demote to DPRINTK().

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix remove_pin_at_irq(), introduced with changeset
kaf24@firebug.cl.cam.ac.uk [Sat, 8 Apr 2006 10:01:17 +0000 (11:01 +0100)]
Fix remove_pin_at_irq(), introduced with changeset
9586:f84a333d8aa6e1a25e2b73b07610e95007267f6a.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdded trace buffer virtual irq to implement non-polling trace record access.
kaf24@firebug.cl.cam.ac.uk [Sat, 8 Apr 2006 08:05:53 +0000 (09:05 +0100)]
Added trace buffer virtual irq to implement non-polling trace record access.

Signed-off-by: Rob Gardner <rob.gardner@hp.com>
19 years ago[IA64] dom0 vp model linux part: import agp.h from linux-2.6.16-rc3
awilliam@xenbuild.aw [Fri, 7 Apr 2006 20:06:44 +0000 (14:06 -0600)]
[IA64] dom0 vp model linux part: import agp.h from linux-2.6.16-rc3

[note: verified same as linux-2.6.16]

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[IA64] dom0 vp model linux part: import machvec.h from linux-2.6.16-rc3
awilliam@xenbuild.aw [Fri, 7 Apr 2006 20:05:40 +0000 (14:05 -0600)]
[IA64] dom0 vp model linux part: import machvec.h from linux-2.6.16-rc3

[note: verified same as linux-2.6.16]

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[IA64] dom0 vp model linux part: import dma-mapping.h from linux-2.6.16-rc3
awilliam@xenbuild.aw [Fri, 7 Apr 2006 20:04:28 +0000 (14:04 -0600)]
[IA64] dom0 vp model linux part: import dma-mapping.h from linux-2.6.16-rc3

[note: verified same as linux-2.6.16]

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[IA64] dom0 vp model linux part: import pgalloc.h from linux-2.6.16-rc3
awilliam@xenbuild.aw [Fri, 7 Apr 2006 20:02:31 +0000 (14:02 -0600)]
[IA64] dom0 vp model linux part: import pgalloc.h from linux-2.6.16-rc3

[note: verified same as linux-2.6.16]

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[IA64] dom0 vp model linux part: import page.h from linux-2.6.16-rc3
awilliam@xenbuild.aw [Fri, 7 Apr 2006 20:01:13 +0000 (14:01 -0600)]
[IA64] dom0 vp model linux part: import page.h from linux-2.6.16-rc3

[note: verified same as linux-2.6.16]

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[IA64] dom0 vp model linux part: import io.h from linux-2.6.16-rc3
awilliam@xenbuild.aw [Fri, 7 Apr 2006 19:46:23 +0000 (13:46 -0600)]
[IA64] dom0 vp model linux part: import io.h from linux-2.6.16-rc3

[note: verified same as linux-2.6.16]

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[IA64] dom0 vp model: xen side update README.orig for efi.h move.
awilliam@xenbuild.aw [Fri, 7 Apr 2006 19:42:47 +0000 (13:42 -0600)]
[IA64] dom0 vp model: xen side update README.orig for efi.h move.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[IA64] dom0 vp model xen part: moved efi.h from linux to linux-xen to modify.
awilliam@xenbuild.aw [Fri, 7 Apr 2006 19:41:32 +0000 (13:41 -0600)]
[IA64] dom0 vp model xen part: moved efi.h from linux to linux-xen to modify.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agoRobustify and add tracing to the IO-APIC update hypercall.
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Apr 2006 17:41:28 +0000 (18:41 +0100)]
Robustify and add tracing to the IO-APIC update hypercall.
If this patch, and any others that follow it, fix some of the
prblems that various users have been seeing then they may
be good candidates for backporting to 3.0.2 (assuming no
regressions for other users).

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[IA64] MAX_VIRT_CPUS and NR_CPUS
awilliam@xenbuild.aw [Fri, 7 Apr 2006 17:40:33 +0000 (11:40 -0600)]
[IA64] MAX_VIRT_CPUS and NR_CPUS

Increase MAX_VIRT_CPUS and NR_CPUS to 64.
Check maxcpus < MAX_VIRT_CPUS.
Check size of shared_info (<= PAGE_SIZE).

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
19 years ago[IA64] Fixed DOM0_PHYSINFO
awilliam@xenbuild.aw [Fri, 7 Apr 2006 17:35:29 +0000 (11:35 -0600)]
[IA64] Fixed DOM0_PHYSINFO

This patch fixed the DOM0_PHYSINFO hypercall.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years agoFix my slightly broken change to pirq_mask logic -- we must
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Apr 2006 15:15:44 +0000 (16:15 +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>
19 years agoAdditional sanity / compatability checks during guest build.
smh22@firebug.cl.cam.ac.uk [Fri, 7 Apr 2006 14:58:00 +0000 (15:58 +0100)]
Additional sanity / compatability checks during guest build.

Signed-off-by: Steven Hand <steven@xensource.com>
19 years agoTurn pirq_mask into a generic bitmap type.
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Apr 2006 13:27:46 +0000 (14:27 +0100)]
Turn pirq_mask into a generic bitmap type.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAvoid double slashes in linker object file lists.
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Apr 2006 13:26:02 +0000 (14:26 +0100)]
Avoid double slashes in linker object file lists.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoDo not disable spurious irq debugging in i386 xenlinux. It may
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Apr 2006 12:41:58 +0000 (13:41 +0100)]
Do not disable spurious irq debugging in i386 xenlinux. It may
be masking underlying problems, and the problem it was intended
to work around should be fixed properly.

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 [Fri, 7 Apr 2006 12:40:22 +0000 (13:40 +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 agoMerged.
emellor@leeni.uk.xensource.com [Fri, 7 Apr 2006 10:52:00 +0000 (11:52 +0100)]
Merged.

19 years agoClean up xenoprof code a bit. The main remaining TODO is to
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Apr 2006 10:00:28 +0000 (11:00 +0100)]
Clean up xenoprof code a bit. The main remaining TODO is to
clean up the xenoprof hypercall interface.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoDo not accept empty definition of __XEN_INTERFACE_VERSION__
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Apr 2006 08:57:36 +0000 (09:57 +0100)]
Do not accept empty definition of __XEN_INTERFACE_VERSION__
in xen-compat.h. It leads to building a broken kernel image
where the kernel sources end up using an unexpected interface
version. In the case of Linux, the kernel expects to use
the new sched_op() hypercall but ends up calling the
legacy hypercall -- this breaks poll, reboot, and save/restore.

A more acceptable patch would be to detect the empty
definition in xen-compat.h and give a reasonable #error message
to fail the build: the current error message is confusing.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoSupport __XEN_INTERFACE_VERSION__ defined to the empty string.
cl349@firebug.cl.cam.ac.uk [Thu, 6 Apr 2006 23:32:54 +0000 (00:32 +0100)]
Support __XEN_INTERFACE_VERSION__ defined to the empty string.
This can happen when building Linux with an old .config file which
doesn't have a value for CONFIG_XEN_INTERFACE_VERSION.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
19 years ago[IA64] cleanup in regionreg.c
awilliam@xenbuild.aw [Thu, 6 Apr 2006 21:51:59 +0000 (15:51 -0600)]
[IA64] cleanup in regionreg.c

get_impl_rid_bits: use pal call to get implemented_rid_bits.
clean up in regionreg.c

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
19 years agomerge
ack@kneesa.uk.xensource.com [Thu, 6 Apr 2006 17:58:39 +0000 (18:58 +0100)]
merge

19 years agoAdd xenoprof support
ack@kneesa.uk.xensource.com [Thu, 6 Apr 2006 17:58:01 +0000 (18:58 +0100)]
Add xenoprof support
Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
19 years agoDo not create blkback vbd kernel thread until fully connected
kaf24@firebug.cl.cam.ac.uk [Thu, 6 Apr 2006 17:39:00 +0000 (18:39 +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.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMerge.
smh22@firebug.cl.cam.ac.uk [Thu, 6 Apr 2006 16:49:21 +0000 (17:49 +0100)]
Merge.

19 years agoMerge.
smh22@firebug.cl.cam.ac.uk [Thu, 6 Apr 2006 16:47:37 +0000 (17:47 +0100)]
Merge.

19 years agoThis adds proper cleanup in case of a failure.
emellor@leeni.uk.xensource.com [Thu, 6 Apr 2006 16:41:07 +0000 (17:41 +0100)]
This adds proper cleanup in case of a failure.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoMake root page table sanity check on restore more generic.
smh22@firebug.cl.cam.ac.uk [Thu, 6 Apr 2006 16:34:54 +0000 (17:34 +0100)]
Make root page table sanity check on restore more generic.

Signed-off-by: Steven Hand <steven@xensource.com>
19 years agoRename and clean up 'error_code' path in entry.S.
kaf24@firebug.cl.cam.ac.uk [Thu, 6 Apr 2006 16:32:47 +0000 (17:32 +0100)]
Rename and clean up 'error_code' path in entry.S.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoCleanups to do_callback_op() new hypercall changeset.
kaf24@firebug.cl.cam.ac.uk [Thu, 6 Apr 2006 16:25:24 +0000 (17:25 +0100)]
Cleanups to do_callback_op() new hypercall changeset.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoUse machine_halt() where it makes sense, to halt all processors
kaf24@firebug.cl.cam.ac.uk [Thu, 6 Apr 2006 15:41:53 +0000 (16:41 +0100)]
Use machine_halt() where it makes sense, to halt all processors
rather than just the current one.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix long-standing save/restore bug on x86-64.
smh22@firebug.cl.cam.ac.uk [Thu, 6 Apr 2006 15:15:28 +0000 (16:15 +0100)]
Fix long-standing save/restore bug on x86-64.

Signed-off-by: Steven Hand <steven@xensource.com>
19 years agoSaner error handling in iret hypercall (x86/64).
kaf24@firebug.cl.cam.ac.uk [Thu, 6 Apr 2006 14:55:37 +0000 (15:55 +0100)]
Saner error handling in iret hypercall (x86/64).

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoClean up files created by the XenLinux boot-xen code.
kaf24@firebug.cl.cam.ac.uk [Thu, 6 Apr 2006 14:25:26 +0000 (15:25 +0100)]
Clean up files created by the XenLinux boot-xen code.

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
19 years agoAdd code to make handling domain poweroff/reboot symmetrical between
kaf24@firebug.cl.cam.ac.uk [Thu, 6 Apr 2006 14:24:00 +0000 (15:24 +0100)]
Add code to make handling domain poweroff/reboot symmetrical between
paravirtualized and fully virtualized.  This approach uses the new
sched_op to handle other domains than the current domain.  The new
code, SCHEDOP_remote_shutdown, is very much like SCHEDOP_shutdown, but
is called with the id of the domain which is to be shut down. This
allows fully virtualized shutdown and para-virtualized shutdown to be
identical from that point forward.

A paravirtualized domain uses sched_op to shut down and set the reason
code. This will send a VIRQ_DOM_EXC, which can be handled in dom0 by
control software.  In some ways, this resembles SIGCHILD/waitpid, and
is a reasonable model.

The fully virtualized case has qemu invoke xm directly. This is a
different path than paravirtualized. It also removes decision and
policy making choices from the rest of the control software and places
it within qemu. When any dom0 logic eventually gets a VIRQ_DOM_EXC,
the information about the domain is gone having been destroyed by xm.

A libxenctrl wrapper, xc_shutdown_domain has been added and qemu now
calls it.

As a freebie, #if 0 some very verbose logging code in qemu.  Totally
unrelated, but as long as I was there...

Signed-off-by: Ben Thomas <ben@virtualiron.com>
19 years agoMove misplaced CONFIG_KEXEC code chunk in setup-xen.c to its proper location.
kaf24@firebug.cl.cam.ac.uk [Thu, 6 Apr 2006 14:22:46 +0000 (15:22 +0100)]
Move misplaced CONFIG_KEXEC code chunk in setup-xen.c to its proper location.

From: Jan Beulich

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix the example xend init.d script so it correctly detects when it is running
apeace@paploo.uk.xensource.com [Thu, 6 Apr 2006 13:58:55 +0000 (14:58 +0100)]
Fix the example xend init.d script so it correctly detects when it is running
in a guest.

Signed-off by: Andrew Peace <andrew@xensource.com>

19 years agoFactor out the parsing of XAUTHORITY, so that it can be used by the unit test,
emellor@leeni.uk.xensource.com [Thu, 6 Apr 2006 13:22:52 +0000 (14:22 +0100)]
Factor out the parsing of XAUTHORITY, so that it can be used by the unit test,
and fix that test to use it.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix test to match change to DCE formatting of UUIDs.
emellor@leeni.uk.xensource.com [Thu, 6 Apr 2006 13:21:45 +0000 (14:21 +0100)]
Fix test to match change to DCE formatting of UUIDs.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdd new hypercall "set_callback" taking a callback identifier and the
Ian.Campbell@xensource.com [Thu, 6 Apr 2006 11:03:53 +0000 (12:03 +0100)]
Add new hypercall "set_callback" taking a callback identifier and the
callback address.

This new hypercall incorporates the functionality of the existing set_callbacks
hypercall in a more flexible manner. set_callbacks is retained for compatibility.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoMore simplifications to blkback:
kaf24@firebug.cl.cam.ac.uk [Thu, 6 Apr 2006 10:34:14 +0000 (11:34 +0100)]
More simplifications to blkback:
 1. Remove blkif->status field as it's really not needed.
 2. Simplify connection logic.
 3. Get rid of atomic_t io_pending. There's no need for
    atomic r-m-w updates to the work-to-do flag, so replace
    with an integer and add barriers where serialisation is
    required.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoStupidly forgot there is a separate waitqueue for free pending request
kaf24@firebug.cl.cam.ac.uk [Thu, 6 Apr 2006 10:13:33 +0000 (11:13 +0100)]
Stupidly forgot there is a separate waitqueue for free pending request
structures in blkback. Fix my changes to blkif_schedule().

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix the blkif_schedule() kthread loop. Much simpler; much more correct.
kaf24@firebug.cl.cam.ac.uk [Thu, 6 Apr 2006 09:20:32 +0000 (10:20 +0100)]
Fix the blkif_schedule() kthread loop. Much simpler; much more correct.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAllow CONFIG_DEBUG_INFO to be specified when building
kaf24@firebug.cl.cam.ac.uk [Thu, 6 Apr 2006 08:47:58 +0000 (09:47 +0100)]
Allow CONFIG_DEBUG_INFO to be specified when building
x86/64 XenLinux. Builds and boots fine. Leave the option
disabled by default, as with all other defconfigs.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoRemove some unnecessary code from the vTPM hotplug scripts.
kaf24@firebug.cl.cam.ac.uk [Thu, 6 Apr 2006 08:40:15 +0000 (09:40 +0100)]
Remove some unnecessary code from the vTPM hotplug scripts.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoFix a problem that was caused by recent changes to the xenbus's
kaf24@firebug.cl.cam.ac.uk [Thu, 6 Apr 2006 08:39:30 +0000 (09:39 +0100)]
Fix a problem that was caused by recent changes to the xenbus's
behavior that cause the .remove function not to be called anymore
during suspend. Due to that the driver allocated one more interrupt on
every suspend/resume cycle.  Otherwise some code reformatting,
cleanups and improvements on allocation and freeing of data structure.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoUpdate the user manual appendix to describe bow to get a mouse working
kaf24@firebug.cl.cam.ac.uk [Thu, 6 Apr 2006 08:36:54 +0000 (09:36 +0100)]
Update the user manual appendix to describe bow to get a mouse working
properly in a VNC window. Also add 'pae' configuration introduction for
HVM guests.

Signed-off-by: You, Yongkang <yongkang.you@intel.com>
Signed-off-by: Dugger, Donald D <donald.d.dugger@intel.com>
19 years agoRemove unused code in netback's net_rx_action():
kaf24@firebug.cl.cam.ac.uk [Thu, 6 Apr 2006 08:34:30 +0000 (09:34 +0100)]
Remove unused code in netback's net_rx_action():
new_mfn and old_mfn are set in the end half of the function
but they are not used.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agoUse PAGE_OFFSET instead of __PAGE_OFFSET in netfront.c.
kaf24@firebug.cl.cam.ac.uk [Thu, 6 Apr 2006 08:32:55 +0000 (09:32 +0100)]
Use PAGE_OFFSET instead of __PAGE_OFFSET in netfront.c.
__PAGE_OFFSET is not defined on all platforms.
Linux/ia64 and Linux/ppc don't have __PAGE_OFFSET definition.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agoRemove unused teardown_irq() definition. Removes two files from sparse tree.
kaf24@firebug.cl.cam.ac.uk [Thu, 6 Apr 2006 08:22:00 +0000 (09:22 +0100)]
Remove unused teardown_irq() definition. Removes two files from sparse tree.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMerged.
emellor@leeni.uk.xensource.com [Wed, 5 Apr 2006 23:59:18 +0000 (00:59 +0100)]
Merged.

19 years agoFurther workarounds for the broken string marshalling in xmlrpclib. Regardless
emellor@leeni.uk.xensource.com [Wed, 5 Apr 2006 23:59:06 +0000 (00:59 +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 agoBacktrack on the new interface for reserved event-channel
kaf24@firebug.cl.cam.ac.uk [Wed, 5 Apr 2006 18:30:02 +0000 (19:30 +0100)]
Backtrack on the new interface for reserved event-channel
ports, as binding them in user space via the evtchn driver
would be a pain. Instead extend VIRQs so they can be
classified as 'global' or 'per vcpu'. The former can only
be allocated once per guest, but can be re-bound to
an arbitrary VCPU.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[IA64] print domain id and vcpu id when panic
awilliam@xenbuild.aw [Wed, 5 Apr 2006 18:19:52 +0000 (12:19 -0600)]
[IA64] print domain id and vcpu id when panic

made show_regs() to print domain id and vcpu id.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[IA64] fix paging_init()
awilliam@xenbuild.aw [Wed, 5 Apr 2006 18:17:44 +0000 (12:17 -0600)]
[IA64] fix paging_init()

fix paginig_init() to initialize mpt_table properly.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
G: manifest hash ca7d4ed1b47fcd1f85fbf0005c810796b1f0c6cb

19 years ago[IA64] fix gnttab_shared_gmfn()
awilliam@xenbuild.aw [Wed, 5 Apr 2006 18:15:10 +0000 (12:15 -0600)]
[IA64] fix gnttab_shared_gmfn()

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>