Commit Graph
15023 Commits
Author SHA1 Message Date
Alex Williamson 05ab0564f4 [IA64] Paravirtualize sba_iommu
This paravirtualizes the iommu driver for HP Integrity systems.  This
allows dom0 to use the iommu just as it would on native hardware.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-05-07 08:45:15 -06:00
Alex Williamson c88a772073 [IA64] Paravirtualize swiotlb
Paravirtualize our copy of swiotlb.  A lot of the s/virt_to_phys/virt_to_bus
converstions have already been done in upstream, so I won't special case
them here.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-05-07 08:41:50 -06:00
Alex Williamson 456c1672ce [IA64] Fix PCI front with CONFIG_NUMA
We get a bad pointer dereference if we don't fill something in
here.  -1 will give us a global allocation, which is good enough
until we have better NUMA support.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-05-07 08:32:26 -06:00
Alex Williamson 6816e515a8 [IA64] Add sparse files for machine vector support
These are necessary to create a Xen machine vector.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-05-06 20:34:15 -06:00
Alex Williamson 3dbd9d0219 [IA64] Add iommu drivers to sparse tree
These will be paravirtualized in upcoming commits.  We're copying
lib/swiotlb.c into arch/ia64/xen/swiotlb.c simply for convenience.
Changes should be merged back into lib/swiotlb.c once Xen support
merges into Linux.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-05-06 20:29:45 -06:00
Alex Williamson 5416852aab [IA64] Fix vcpu hotplug
When domain is saved and restored, the following message is printed out.
bind_ipi_to_irqhandler()/bind_virq_to_irqhandler() should be called
in process context.  Move the call from cpu_init() to __cpu_init() like x86.

BUG: sleeping function called from invalid context at /src1/yamahata/hg/xen/ia64
/my150/compile/test-0/xen-ia64-unstable.hg/linux-2.6.18-xen/mm/slab.c:2901
in_atomic():0, irqs_disabled():1

Call Trace:
 [<a00000010001b190>] show_stack+0x50/0xa0
                                sp=e0000000004ff8b0 bsp=e0000000004f9358
 [<a00000010001b210>] dump_stack+0x30/0x60
                                sp=e0000000004ffa80 bsp=e0000000004f9340
 [<a000000100070f40>] __might_sleep+0x2c0/0x2e0
                                sp=e0000000004ffa80 bsp=e0000000004f9318
 [<a00000010012c230>] __kmalloc+0xb0/0x320
                                sp=e0000000004ffa90 bsp=e0000000004f92e0
 [<a0000001001a98d0>] proc_create+0x110/0x1c0
                                sp=e0000000004ffa90 bsp=e0000000004f9298
 [<a0000001001a9ca0>] proc_mkdir_mode+0x40/0xe0
                                sp=e0000000004ffaa0 bsp=e0000000004f9268
 [<a0000001001a9d70>] proc_mkdir+0x30/0x60
                                sp=e0000000004ffab0 bsp=e0000000004f9240
 [<a0000001000e97e0>] register_handler_proc+0x1a0/0x1e0
                                sp=e0000000004ffab0 bsp=e0000000004f91f0
 [<a0000001000e6420>] setup_irq+0x440/0x4e0
                                sp=e0000000004ffb30 bsp=e0000000004f9198
 [<a0000001000e68c0>] request_irq+0x140/0x1a0
                                sp=e0000000004ffb30 bsp=e0000000004f9150
 [<a0000001003e7a20>] bind_ipi_to_irqhandler+0x260/0x2c0
                                sp=e0000000004ffb30 bsp=e0000000004f90e8
 [<a000000100019780>] xen_register_percpu_irq+0x2c0/0x880
                                sp=e0000000004ffb40 bsp=e0000000004f9098
 [<a00000010001a1f0>] xen_smp_intr_init+0x170/0x1c0
                                sp=e0000000004ffb40 bsp=e0000000004f9070
 [<a00000010003d350>] cpu_init+0x1090/0x10e0
                                sp=e0000000004ffb50 bsp=e0000000004f8fe0
 [<a0000001000607a0>] start_secondary+0xc0/0x520
                                sp=e0000000004ffe30 bsp=e0000000004f8f90
 [<a0000001000105f0>] __end_ivt_text+0x6d0/0x700
                                sp=e0000000004ffe30 bsp=e0000000004f8f90

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-05-03 14:38:26 -06:00
Alex Williamson 9810e8cdd8 [IA64] Mask event channel when vcpu boots
Actually XenLinux/ia64 disables interrupts right after SAL OS HAND OFF
and reinitialize all psr so that this won't be an issue.
Just to be make it sure.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-05-03 14:27:26 -06:00
Alex Williamson 1b6fdc1508 [IA64] Compilation fix of p2m module
nsec_t is replaced with s64 and update Makefile of expose_p2m.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-05-03 14:24:21 -06:00
Alex Williamson f63270d87b [IA64] Fix time_resume()
Add missing exclusion in time_resume() and steal time accounting
reinitialization after resume.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-05-03 14:21:39 -06:00
Alex Williamson 36723573e5 [IA64] Compliation work around for sparsemem
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-05-03 14:14:41 -06:00
Alex Williamson ffca2f0a46 [IA64] Remove unnecessary sparse tree files
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-05-03 14:10:19 -06:00
Alex Williamson f395f0ab65 [IA64] Sparse tree cleanup
With this patch we can remove linux-2.6-xen-sparse/arch/ia64/dig/setup.c,
linux-2.6-xen-sparse/include/asm-ia64/machvec.h.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-05-03 14:08:24 -06:00
Alex Williamson 0b062b25e1 [IA64] Always insert entry to VHPT's head, or double TLB miss occurs.
Always insert entry to VHPT head, or TLB miss will occur again although
the translation exists in its collision chain.

Signed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2007-05-03 14:01:19 -06:00
Alex Williamson 8be0513f37 [IA64] Optimize some functions
Optmize some functions by changing parameter passing mode from pointer to value.
This can reduce redundant memory access.

Signed-off-by: Xu, Anthony <Anthony.xu@intel.com>
Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
2007-05-03 13:55:28 -06:00
Alex Williamson 43ea72e6eb [IA64] Support debug_keys on ia64
This patch adds support for xm debugkeys.

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
2007-05-03 13:36:06 -06:00
kfraser@localhost.localdomain 0d03dd60a1 xend: Revert changeset 15002. Breaks xend restart in some cases.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-05-03 11:22:58 +01:00
kfraser@localhost.localdomain 320061b18e [IA64] Presently pygrub only looks in /efi/redhat/elilo.conf. It
should check for other distributions, plus a couple fallback
locations.

Signed-off-by: Aron Griffis <aron@hp.com>
2007-05-03 09:33:12 +01:00
kfraser@localhost.localdomain a20b52e572 ia64 doesn't use /usr/lib64 on any distribution. When it's present, it's a symlink to /usr/lib
Signed-off-by: Aron Griffis <aron@hp.com>
2007-05-03 09:32:35 +01:00
kfraser@localhost.localdomain dea6904c01 Even though 3.1.0 won't have an implementation for it, reserve
VCPUOP_register_vcpu_info anyway so that we can start talking about
the interface on the guest side.

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
2007-05-03 09:29:07 +01:00
Brendan Cully 5d93b6f183 Put blktap character device back into /dev/xen.
Changeset 14895:800aa9f5cec9 accidentally moved it into /var/run/tap
along with the control FIFOs.
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
2007-05-02 09:42:43 -07:00
Tom Wilkie ffed4cf8e8 [XEND] Move Vifctl.network('start') earlier in Xend startup so XendNode can find networks when its initialised.
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-05-02 17:14:52 +01:00
Tom Wilkie 7601e982d4 Fix the fix for XendPIF
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-05-02 16:43:45 +01:00
Tom Wilkie 2623ab58fe Fix PIFIsPhysical exception when starting Xend
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-05-02 16:33:05 +01:00
Tom Wilkie f48f5ded45 [XM] Fix some small bugs in XenAPI create code.
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-05-01 11:40:40 +01:00
Tom Wilkie 2b076853ac [XM] Fix get_single_vm bug
Stops traceback when given a bad domain name

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-05-01 11:36:44 +01:00
kfraser@localhost.localdomain 2816d048c5 xend: Interface capability identifiers are statically xen-3.0-*,
rather than being dynamically generated from actual Xen version
major/minor pair.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-05-02 15:25:02 +01:00
Tim Deegan e00a29ecd2 [HVM] Save/restore: fix cset 14995
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-05-02 14:53:27 +01:00
Tim Deegan b171a0d5e0 [HVM] Save/restore: save pending interrupts/events on HVM vcpus
along with the rest of the cpu state.  This stops us from dropping
interrupts after the vlapic has recorded them in the ISR but before the
guest has actually taken them.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-05-02 14:41:51 +01:00
Keir Fraser 12c9bce65c xend: Fix use of PIFIsPhysical (takes no arguments).
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-05-01 22:24:01 +01:00
Christian Limpach 596f933f56 [pv console] Move console information in xenstore to serial/0/.
Support information in console/ in a backwards compatible fashion.
This puts the serial port information for pv domains at the same
location where it is for hvm domains.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-05-01 14:17:01 +01:00
kfraser@localhost.localdomain 1f2d7a821f xend: Fix SrvDomain.op_save.
The xen.xend.server.SrvDomain class provides an op_save method for
saving guests. This just calls into the domain_save method on
xen.xend.XenDomain The latter recently gained an extra 'checkpoint'
argument, but the SrvDomain class is not providing this. The attached
patch simply makes the 'checkpoint' arg default to 'False' if not
provided by the caller which makes old calling convention.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2007-05-01 14:01:01 +01:00
kfraser@localhost.localdomain f92b83e597 xend: Ensure 2MB free before creating any domain. All domain creations
have an implicit memory overhead.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-05-01 10:20:55 +01:00
kfraser@localhost.localdomain 47d265319b xend: Fix spurious store changes on rename/migrate
_storeChanged() was incorrectly comparing a string to an sxpr, thus
always firing and causing unnecessary watches to be fired in the
domU.

Signed-off-by: John Levon <john.levon@sun.com>
2007-05-01 10:18:11 +01:00
kfraser@localhost.localdomain bb4adad4e1 save/restore: If ENABLE_LOGDIRTY fails, it may be because it is
already active. To find out, attempt to disable and then reenable the
mode.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
2007-05-01 10:16:26 +01:00
kfraser@localhost.localdomain dc8f50b150 xend: Ensure bootable flag is set in internal xend config for tap
devices.

Original patch by: Jim Fehlig <jfehlig@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-05-01 10:15:08 +01:00
kfraser@localhost.localdomain e1064ed499 linux blkback/blktap: Request/response identifiers are u64, not long.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-05-01 10:08:36 +01:00
kfraser@localhost.localdomain e050e9784b Handle ISO_Level3_Shift keysym as AltGr in ioemu/vncfb.
The modern (xkb) way of mapping the AltGr key (113) seems to be using
the ISO_Level3_Shift keysym (0xFE03) instead of the obsolete
Mode_switch keysym (0xFF7E).

This patch let the "keysym to scancode" translator handle the
ISO_Level3_Shift correctly, enabling the use of characters like
~#{[|`\^@]} on a french keyboard.

From: Cedric Schieli <cschieli@gmail.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-30 15:06:34 +01:00
Keir Fraser 14d89699f4 vnet: Another build fix for finding Linux build tree and version.
Signed-off-by: Robert Valentan <R.Valentan@solid-soft.at>
2007-04-28 09:44:24 +01:00
Keir Fraser 7ca2718722 Fix 'sched=sedf' boot.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-28 09:37:32 +01:00
Keir Fraser 1476bb2606 xen: Fix build with recent GCC (4.1+).
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-28 09:28:00 +01:00
ewan@localhost.localdomain 05c35c5e14 Bump all API version numbers to 1.0.0.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-27 18:53:23 -07:00
Jake Wires adfd9f4561 Ensure blk{tap/back}'s vm_area is not freed twice on error case.
Signed-off-by: Jake Wires <jwires@xensource.com>
2007-04-27 17:54:06 -07:00
kfraser@localhost.localdomain 56c09b2443 vnet: Fix build of the vnet module.
- correcting KERNEL_SRC ( ./build-linux... )
- typing errors in Makefile.ver
- module-params
Signed-off-by: Robert Valentan <R.Valentan@solid-soft.at>
2007-04-27 16:27:07 +01:00
kfraser@localhost.localdomain 96a333869f Add INIT INFO block to example init.d/xend file.
Without it SuSE (and others?) will start xend before the
network.
Signed-off-by: Robert Valentan <R.Valentan@solid-soft.at>
2007-04-27 16:21:20 +01:00
Steven Hand e6dc4d5108 Handle EOF on xenstored socket.
Suggested by Pavel Kankovsky <peak@argo.troja.mff.cuni.cz>.

Signed-off-by: Steven Hand <steven@xensource.com>
2007-04-27 16:17:44 +01:00
kfraser@localhost.localdomain 67cc36df17 xend: Auto-balloon a couple megabytes before creating an HVM domain as
Xen will allocate 1MB for shadow memory immediately.
Suggested by Daniel Berrange.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-27 15:22:34 +01:00
kfraser@localhost.localdomain 3734a7eda8 xend: Don't use -q flag to bootloader if activating text console.
In Xen 3.0.3 series release, if one did 'xm create -c someguest' then
you would be shown the pygrub boot menu, allowing one to pick a
kernel. If you didn't use the -c arg, then it'd just pick the default
kernel.

In Xen 3.0.5 testing, xm is forcing the addition of the '-q' flag
whenever the 'bootargs' parameter is not given in the config file. So
if one does not have 'bootargs' specified, and one uses 'xm create -c
someguest' you never get to see the pygrub boot menu.

This patch fixes 'xm create' so that it does not add the '-q' flag
to the bootloader args, if the '-c' flag is given to xm create. This
makes the default user experiance operate closer to user
expectations.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2007-04-27 15:12:48 +01:00
Tom Wilkie 1341c96dca [XEND] make *.get_all_records return dict of ref->record
Also clean up some handling of uuids and refs in xm

signed-of-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-27 15:09:39 +01:00
kfraser@localhost.localdomain cee87f9f44 xen: More 'IS_COMPAT' cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-27 15:06:55 +01:00
Steven Hand b8057a726d Allow dynamic_min/dynamic_max to (temporarily) be out of sync; in practice
we keep them identical but non-atomically.

Signed-off-by: Steven Hand <steven@xensource.com>
2007-04-27 14:45:06 +01:00