100 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk f55d16fa21 minios: Various small fixes.
- Fixed type of variables in hypervisor.c.
- Fixed not removing a waiter from watch_queue.
- Make wait_for_watch() global accessible.

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
2007-03-19 09:34:42 +00:00
kaf24@firebug.cl.cam.ac.uk 569b0bb3b9 Add parentheses to trace_do_casts macro.
The arguments to this macro didn't have parentheses around them where
they were used.  If a call to a TRACE macro included an expression as
an argument, the cast to (unsigned long) could bind to just part of
the expression and lead to unexpected results.

Signed-off-by: Michael Vrable <mvrable@cs.ucsd.edu>
2007-03-19 09:32:52 +00:00
kaf24@firebug.cl.cam.ac.uk ca039d0244 hvm: Fix platform-irq handling in presence of irqbalance daemon.
The HVM guest did not respond when PV-on-HVM driver was tested on
the following conditions.

1. RHEL4u4
2. vcpu 4
3. irqbalance on
4. pv-on-hvm driver used.

Eventhandler did not work because IRQ was delivered to another vcpu by
irqbalance.

Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
2007-03-19 09:31:04 +00:00
kaf24@firebug.cl.cam.ac.uk 47fd2b1be1 Fix xen-x86_32 defconfig to includean option needed for PAE builds.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-01 17:52:08 +00:00
kaf24@firebug.cl.cam.ac.uk f28756a627 [MINIOS] Clean up final link stage of the build.
Allow extra application objects to be linked against a partial link of
minios with non-global names localised. For now we assume that global
names ill be assigned a xenos_ prefix in due course. We may decide to
choose a different prefix.

Those who wish to finish the link from an external Makefile can link
their own objects against mini-os.o (which must be first in link
order!) and specify the appropriate architecture linker script.

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-15 12:25:04 +00:00
kaf24@firebug.cl.cam.ac.uk 050a4731aa [XEN] Add const attribute to elf_sanity_check() parameter on all arches.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-12-23 09:40:18 +00:00
kaf24@firebug.cl.cam.ac.uk c9deb7c4a3 More 'const' cleanups (and fixes, for Solaris).
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-23 09:38:07 +00:00
kaf24@firebug.cl.cam.ac.uk 0831896293 [XEN] Fix 32-bit build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-03 17:44:14 +00:00
kaf24@firebug.cl.cam.ac.uk 3e7ce38dce [NET] back: Fix bug in 12262:ac2097d71e06dbbf77279af10d6ae7359d921ab0.
Pointed out by Jan Beulich.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-16 08:56:58 +00:00
kaf24@firebug.cl.cam.ac.uk f8e7741960 [IA64] Fix build breakage.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-11-16 07:48:37 +00:00
kaf24@firebug.cl.cam.ac.uk 358a2d58c0 Xen trivial build fix. Oops.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-16 07:41:01 +00:00
kaf24@firebug.cl.cam.ac.uk e204ff2937 [LIBFSIMAGE] Fix printf-format warning on x86/64.
Signed-off-by: Ben Thomas <ben@virtualiron.com>
2006-11-10 07:48:25 +00:00
kaf24@firebug.cl.cam.ac.uk ce74e71bed [HVM] Avoid long delay between setting IRQ for PV drivers and
servicing it. Should call service_ioapic() synchronously.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-09 09:04:41 +00:00
kaf24@firebug.cl.cam.ac.uk 668c718e3f [HVM] Reserve 2 pages for ACPI tables in e820.
This is required when appending SSDTs to the core
ACPI data.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-08 19:48:46 +00:00
kaf24@firebug.cl.cam.ac.uk e935122cf5 [XEND] Compare result of blkdev_name_to_number() explicitly against None.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-02 07:46:06 +00:00
kaf24@firebug.cl.cam.ac.uk 8ec9ef184c [XEN] Add implicit "\n" back into MEM_LOG(). Removed by mistake.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-28 12:30:38 +01:00
kaf24@firebug.cl.cam.ac.uk 86d55ec10a [VMXASSIST] Some reports that macros do not get picked up by CPP
if they are prefixed with $. Fix by placing macro uses in ().
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-19 22:05:07 +01:00
kaf24@firebug.cl.cam.ac.uk 1febf1acf7 [BLKTAP] Remove bogus extra public definition of sig_handler().
Also do not build the daemon -fPIC.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-08 18:05:57 +01:00
kaf24@firebug.cl.cam.ac.uk 2eb4f7a7df [HVM][SVM] Revert changeset 11679:a949bd6ceb85
Although in the correct spirit, it seems there is some other
dependency in the code that assumes ExtInts are queued until
thay can be immediately delivered (EFLAGS.IF==1). This patch
therefore caused instability in Linux guests.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-06 08:09:52 +01:00
kaf24@firebug.cl.cam.ac.uk f58fdb8d02 [TPM] back: Allocate pages for foreign mappings individually rather than contiguously.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-05 23:16:21 +01:00
kaf24@firebug.cl.cam.ac.uk 10ac5cd887 [NET] back: Allocate pages for foreign mappings individually rather than contiguously.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-05 22:49:26 +01:00
kaf24@firebug.cl.cam.ac.uk e3478ac5ef [NET] back: Remove unused rx_mmap area. Copying happens inside Xen, so
there is no need for a mapping area inside the driver for copying
receive path.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-05 22:14:39 +01:00
kaf24@firebug.cl.cam.ac.uk 76c184f428 [BLK] back: Allocate pages for foreign mappings individually rather
than in one large contiguous region.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-05 22:11:24 +01:00
kaf24@firebug.cl.cam.ac.uk ff858e5b2f [MBOOTPACK] Fix building mbootpack on x86/64.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-05 12:08:08 +01:00
kaf24@firebug.cl.cam.ac.uk 4dd3045b5e [LIBXC] Fix ptrace memory-mapping code to map pagetables read-only.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-05 09:30:07 +01:00
kaf24@firebug.cl.cam.ac.uk d73abfd110 [IOEMU] When vncunused is specified, allocate a port from 5900
rather than 5898.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2006-10-04 09:43:45 +01:00
kaf24@firebug.cl.cam.ac.uk 87779442e9 [XEND] If 'vncused' is set, it won't specify an explicit display num to QEMU.
In the current xen-unstable.hg tree tough, XenD will always pass an
explicit '-vnc <display num>' parameter to qemu-dm, regardless of
whether 'vncunused' is set. So the 'vncunused' bit only takes effect
if the explicitly passed display already has something bound to it.

Consider what happens when the host machine has been up for a while -
the Domain ID's start getting very high. This plays havoc with
firewalls - for example an admin may know that only 10 domains will
ever be running at any time, so they should be able to simply open up
ports 5900 -> 5910.

The correct behaviour should be:

   - If 'vncdisplay' is set, use that explicit display
   - If 'vncunused' is set non-zero, allocate first port about 5900
   - Allocate fixed port based on domain-ID

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2006-10-04 09:42:41 +01:00
kaf24@firebug.cl.cam.ac.uk 5af2ee5b88 [XEND] If 'vncused' is set, it won't specify an explicit display num to QEMU.
In the current xen-unstable.hg tree tough, XenD will always pass an
explicit '-vnc <display num>' parameter to qemu-dm, regardless of
whether 'vncunused' is set. So the 'vncunused' bit only takes effect
if the explicitly passed display already has something bound to it.

Consider what happens when the host machine has been up for a while -
the Domain ID's start getting very high. This plays havoc with
firewalls - for example an admin may know that only 10 domains will
ever be running at any time, so they should be able to simply open up
ports 5900 -> 5910.

The correct behaviour should be:

   - If 'vncdisplay' is set, use that explicit display
   - If 'vncunused' is set non-zero, allocate first port about 5900
   - Allocate fixed port based on domain-ID

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2006-10-04 09:42:41 +01:00
kaf24@firebug.cl.cam.ac.uk 592a9a5792 [HVMLOADER] Fix SMBIOS table code. One of the string lengths is incorrectly computed.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2006-10-04 09:32:01 +01:00
kaf24@firebug.cl.cam.ac.uk fc7c643b21 [XEN] Never crash machine on int3 traps.
Do not enter debugger on dom0 shutdown unless dom0 crashed.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-04 09:10:17 +01:00
kaf24@firebug.cl.cam.ac.uk bd769a8dd5 [HVM][TOOLS] Improve warnign message when trying to create
an HVM guest on a non-capable platform.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-30 11:35:02 +01:00
kaf24@firebug.cl.cam.ac.uk 963edd2c4e [HVM] Mov to/from CR8 must be gated on whether VLAPIC device is created.
If APIC=0 in VMX configuration file, VLAPIC(v) in
mov_from_cr()/mov_to_cr() will be NULL, so calling
vlapic_get_reg()/vlapic_set_reg()/vlapic_update_ppr()
would crash Xen.

Original patch from Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-30 11:30:09 +01:00
kaf24@firebug.cl.cam.ac.uk 137a9ce8c7 [HVM] Add RDMSR/WRMSR instruction emulation to VMXAssist decoder
AP of PAE SMP windows will use it to set NX bit in EFER.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-09-30 11:11:54 +01:00
kaf24@firebug.cl.cam.ac.uk 918463b430 [HVM] Add sub instruction support to HVM MMIO decoder.
This is needed for SMP PAE windows XP SP2.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-09-30 11:08:41 +01:00
kaf24@firebug.cl.cam.ac.uk 57b01d8d98 [HVM][SVM] Do not delay ExtInt event injection if RFLAGS.IF==0.
AMD-V does not require the delaying of interrupt injection if the guest
IF_FLAG disallows interrupts.  Remove the code in svm_intr_assist()
that was checking the guest IF in eflags.

This patch fixes the problem with HVM Windows guests, with observing a
very slow timer countdown on the initial boot menu, when there is more
than one boot option.  Kbd response in this same Windows boot menu is
also acceptably responsive with this patch.

Signed-off-by: Tom Woller <thomas.woller@amd.com>=20
2006-09-30 10:49:08 +01:00
kaf24@firebug.cl.cam.ac.uk 2d5c2b773d [VMXASSIST] Small fix to virt-to-phys translation.
CR4.PSE is ignored in PAE mode, so remove test of it.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-26 08:36:39 +01:00
kaf24@firebug.cl.cam.ac.uk 7dd93351eb Remove static forward declaration in gdbstub code.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-26 08:34:52 +01:00
kaf24@firebug.cl.cam.ac.uk 776187826b [XEN] Support unconnected IRQ lines in pirq_acktype().
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-24 10:14:17 +01:00
kaf24@firebug.cl.cam.ac.uk 972938c817 [XEN] Add local-APIC-edge to list of PIC types supported by pirq_acktype()
function.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-24 10:07:18 +01:00
kaf24@firebug.cl.cam.ac.uk 0b1ef2a5bc [HVM] A few cleanups to i8259.c -- in particular change
ELCR semantics (should not be modified by PIC reset).

This effectively removes Steve Smith's changeset
11586:08a582a98471da30fb86bca620495f3d91d55800
but the real bug here is not that the ELCR was reset to
zero, but that it was touched at all.

Our BIOS code should set the ELCR correctly (level-triggered)
for PCI IRQs.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-23 12:39:18 +01:00
kaf24@firebug.cl.cam.ac.uk 68043a01dc [XEN] Scheduler pings only CPUs in a VCPU's affinity mask to balance load.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-15 11:17:26 +01:00
kaf24@firebug.cl.cam.ac.uk d1423b2882 [MINIOS] Fix to use new event-channel API properly.
Signed-off-by: Mark Williamson <mark.williamson@cl.cam.ac.uk>
2006-09-15 11:07:25 +01:00
kaf24@firebug.cl.cam.ac.uk eff691edc0 [HVM] Remove a useless header file include in hvm.c
Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-09-15 11:04:41 +01:00
kaf24@firebug.cl.cam.ac.uk 9f665fdd21 Small fix for xenoprof.
Update list of privileged xenoprof operations which were not in sync
with new added functions.
Since the number of privileged operations is larger than the non
privileged ones, change the logic to list unprivileged ones instead.
Also added a few printk statements on failed xenoprof initialization
to identify the source of the problem.

Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
2006-09-15 11:01:58 +01:00
kaf24@firebug.cl.cam.ac.uk e082c0eae9 [XEN] Fix array ngative accesses in figlet tool.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-15 10:59:18 +01:00
kaf24@firebug.cl.cam.ac.uk fe9a681dcf [XEN] Do not steal work from idle CPUs. This can happen
if a idle CPU is in the process of waking up.
This fix suggested by Anthony Xu <anthony.xu@intel.com> as
it can have a significant boost to HVM performance.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-14 16:01:46 +01:00
kaf24@firebug.cl.cam.ac.uk c7d036be92 [HVM] Fix an error when read from APIC registers like IRR, ISR and TMR.
From SDM3 spec, for APIC registers, all 32-bit registers should
be accessed using 128-bit aligned 32bit loads or stores.
And wider registers (64-bit or 256-bit) must be accessed using
multiple 32-bit loads or stores.

In old APIC virtualization code, we use IRR, ISR and TMR which are
256-bit registers as contiguous bit maps other than multiple 32-bit.

So guest always fetch error values.

Original patch was:
 * Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
 * Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
 * Signed-off-by: Eddie Dong <eddie.dong@intel.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-13 15:59:14 +01:00
kaf24@firebug.cl.cam.ac.uk 37a7b1e045 [GDBSERVER] make gdbbuild exit on error
If an error occurs, such as wget failing because the site (or proxy)
is unavailable, the script will now terminate, rather than trying
to soldier on without any real hope of success.

mkbuildtree should really get the same treatment, but that
can wait for another day.

Signed-Off-By: Simon Horman <horms@verge.net.au>
2006-09-13 15:15:27 +01:00
kaf24@firebug.cl.cam.ac.uk d90899c1d8 [XEN] Use C locale in bootup message.
LC_ALL=C is needed to ensure C locale output in date.
Without this locale-specific, and thus potentially
non-ascii data will end up in include/xen/compile.h which
is displayed on the (often only ascii capable) terminal
at bootup. In any case, its good to have a consistent bootup
message, regadless of the locale prevailing at build.

Signed-Off-By: Simon Horman <horms@verge.net.au>
2006-09-13 15:14:24 +01:00
kaf24@firebug.cl.cam.ac.uk 71e4fbbedc [XEN] Allow direct reads of port 0x61 by any guest.
Often used by BIOS code which may be executed e.g., when starting
an X server.
From: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-13 14:46:54 +01:00
kaf24@firebug.cl.cam.ac.uk 60ddf8d64d Fix unmodified drivers for PV-on-HVM on IA64.
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
2006-09-13 14:34:34 +01:00
kaf24@firebug.cl.cam.ac.uk da52271d2b [XEN][X86_64] Allocate multiple L2 page directories for
the read-only M2P table mapping, if required.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-09-13 14:30:06 +01:00
kaf24@firebug.cl.cam.ac.uk deb051deec Better PIC code production: Using #pragma GCC visibility, *all*
data references benefit, not just the ones to objects defined in the
same translation unit. However, as this now is a header file change,
detection logic cannot be used as nicely, so I guess we want to keep the
previous change and add this one on top.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-09-13 14:24:42 +01:00
kaf24@firebug.cl.cam.ac.uk 94170dd0f6 [HVM] Add broadcast destination for physical destination mode in
VLAPIC.
Based on a patch from Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-13 14:12:28 +01:00
kaf24@firebug.cl.cam.ac.uk d4b644873d Add new operation XENOPROF_get_buffer in xenoprof hypercall. Also
remove buffer related arguments from XENOPROF_init operation. This
is the first step to allow dynamic mapping/unmapping of xenoprof
buffers to
enable profiling a domain in passive mode and then switch to active
mode (or vice-versa). Currently a domain can only be profiled in a
single mode. Also passive domains cannot have oprofile builtin the
kernel or passive profiling will fail.

Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
2006-09-13 14:05:33 +01:00
kaf24@firebug.cl.cam.ac.uk 80f2588d2b [CONSOLED] Shouldn't call domain_create_ring() for a domU which is shutting down.
There is a race condition between domain_create_ring() and the removal
of the domU entry from xenstore. If the removal of the domU entry from xenstore
comes later than the first xs_gather() call in domain_create_ring(), it will go
on and bind the evtchn port to the dying domU, which will cause below error
message: (XEN) (file=event_channel.c, line=144) EVTCHNOP failure: domain 0, error -22, line 144

Signed-off-by: Max Zhen <max.zhen@sun.com>
2006-09-13 14:01:23 +01:00
kaf24@firebug.cl.cam.ac.uk 9f019b36fd [TOOLS] Enhance Python version check for v2.5.
From: Charles Coffing <ccoffing@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-13 13:54:59 +01:00
kaf24@firebug.cl.cam.ac.uk c6fed51d96 [XEN] Define -fvisibility=hidden in CFLAGS to reduce -fpic cost
when compiling for x86/64.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-13 13:52:03 +01:00
kaf24@firebug.cl.cam.ac.uk 84ef1509a4 [XEN] Revert changeset 11438. Needs fixing for PAE.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-11 01:55:03 +01:00
kaf24@firebug.cl.cam.ac.uk cda30a2a6c [HVM] pv drivers: Allocate hypercall area as an executable region.
We have to use __vmalloc() and __PAGE_KERNEL because vmalloc_exec()
and PAGE_KERNEL_EXEC are not exported to modules.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-08 19:15:11 +01:00
kaf24@firebug.cl.cam.ac.uk e026a54ad6 [LINUX] xenoprof: use alloc_vm_area instead of get_vm_area. The former
is exported to modules.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-01 16:11:51 +01:00
kaf24@firebug.cl.cam.ac.uk 6fd2fc155a [XEN] Improve Xen information in register dumps.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-01 01:25:15 +01:00
kaf24@firebug.cl.cam.ac.uk 9f5c2cdc38 [XEN] Include CR2 and CR4 in register dumps.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-09-01 01:07:45 +01:00
kaf24@firebug.cl.cam.ac.uk 8b7ee4cecb [XENBUS] Make frontend drivers shutdown cleanly.
This patch makes frontend drivers being shutdown when devices_shutdown()
is called and walks down the device tree.  Most of it is handled by the
xenbus core, which got a new function for the bus->shutdown callback.

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
2006-09-01 00:42:14 +01:00
kaf24@firebug.cl.cam.ac.uk 5182367c40 [XENBUS] Introduce new "online" node for backend drivers.
Driver changes:  Make backend drivers check it when entering Closed
state, only unregister devices when the "online" node is either "0" or
not present.  The later maintains backward compatibility.

Tools changes:  Update "online" node when creating and hot-unplugging
devices.

Background: When kexec'ing a new kernel, the old kernel's frontend
driver will shutdown, but the backend device should *NOT* disappear
due to that, so the new kernel instance can reconnect.

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
2006-09-01 00:33:19 +01:00
kaf24@firebug.cl.cam.ac.uk e957a7cb4a Add xenbus_strstate() helper function for more readable debug output.
From: Gerd Hoffmann <kraxel@suse.de>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-01 00:20:42 +01:00
kaf24@firebug.cl.cam.ac.uk 47ed30083c [HVM] Add a mmio decode for 0F BA /4 for HVM guest.
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
2006-08-31 23:59:11 +01:00
kaf24@firebug.cl.cam.ac.uk 2089ee9eab [HVM][VMX] Add CR8 virtualization. Needed for x86/64 Windows boot.
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
2006-08-31 23:58:23 +01:00
kaf24@firebug.cl.cam.ac.uk 34713594dc [HVM][VMX] Report MCE/MCA features in CPUID.
Required for x86/64 Windows guest.
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
2006-08-31 23:56:45 +01:00
kaf24@firebug.cl.cam.ac.uk 1bf84e45f8 [HVM][SVM] Remove redundant do_softirq in the VMEXIT_INTR handler.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-08-31 23:47:04 +01:00
kaf24@firebug.cl.cam.ac.uk 1a4d425438 [XEN] Clean up BASE_DISALLOW_MASK and fix for x86/64.
Original patch from Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-31 23:44:41 +01:00
kaf24@firebug.cl.cam.ac.uk 1a251c6632 [XEN] Use vcpu_info pointer in vcpu structure.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-08-31 22:53:46 +01:00
kaf24@firebug.cl.cam.ac.uk 60d146799b [XEN] Remove unused IS_INVALID_M2P_ENTRY macro.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-08-31 22:29:23 +01:00
kaf24@firebug.cl.cam.ac.uk 194fd7d7ec [XEN] interfaces: Remove explicit alignment/padding from domctl/sysctl hypercalls.
Generation of 32-on-64 compat shims is being semi-automated for all
other hypercalls. It seems sensible to teat all hypercalls uniformly
and do the same for the control-stack management interfaces too.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-31 19:53:27 +01:00
kaf24@firebug.cl.cam.ac.uk 39cda1cf3f [TOOLS] xenctrl.h defines __XEN_TOOLS__ if it's not already.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-31 18:54:50 +01:00
kaf24@firebug.cl.cam.ac.uk 5bfcf44bb8 [LINUX] Remove vm_map_xen_pages(), clean up __direct_remap_page_range.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-31 18:23:28 +01:00
kaf24@firebug.cl.cam.ac.uk 1a1adcfe49 [LINUX] /proc/iomem should not be initialised from pseudophysical e820 map.
This is because it should only contain real I/O memory address ranges,
otherwise we can get false conflicts between a real I/O range and a
'pseudophysical' RAM range, causing drivers to fail to work in a domU.
Also prevent kernel code/data being requested as iomem resources --
they are not contiguous in 'io memory' space so this would not make
sense.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-31 03:05:40 +01:00
kaf24@firebug.cl.cam.ac.uk 8a1ca3b97e Merge with xenppc-unstable-merge.hg. 2006-08-30 22:36:18 +01:00
kaf24@firebug.cl.cam.ac.uk 1b4f247ac5 Merge with xen-ia64-unstable.hg 2006-08-30 21:38:34 +01:00
kaf24@firebug.cl.cam.ac.uk 02980865d0 [NET] front: move register_netdev() + sysfs attribute registering from create_netdev() into the new open_netdev() function.
open_netdev is called as very last thing in netdev_probe.

This closes at least one initialization race: uninitialized
mac address is visible for a short time in
/sys/class/net/${if}/address

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
2006-08-30 18:40:40 +01:00
kaf24@firebug.cl.cam.ac.uk d96c9af4a3 [XEN] Add a start_pfn field in xen_domctl_getmemlist.
This is used by ia64 because it directly reads the P2M table.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-08-30 18:19:04 +01:00
kaf24@firebug.cl.cam.ac.uk c5332c3621 Revert powerpc build break after dom0_ops split.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-08-30 18:08:19 +01:00
kaf24@firebug.cl.cam.ac.uk 6eb53eac78 [XEN] Reserve hypercall number for kexec operations.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-30 18:03:55 +01:00
kaf24@firebug.cl.cam.ac.uk 4a83022207 [XEN] physdev: Check for negative irqs in alloc_irq_vector.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-08-30 18:02:32 +01:00
kaf24@firebug.cl.cam.ac.uk c398044d5d [LINUX][X86_64] P2M map must be allocated on page aligned boundary.
Otherwise save/restore can break.
Signed-off-by: Kazuo Moriwaka <moriwaka@valinux.co.jp>
2006-08-30 17:56:49 +01:00
kaf24@firebug.cl.cam.ac.uk 33d0648f73 [TOOLS] Fix gdbserver build.
Signed-off-by: Travis Betak <travis.betak@amd.com>
2006-08-30 17:52:35 +01:00
kaf24@firebug.cl.cam.ac.uk ee5f692173 [XEN] Fix silly transposition typo in previous changeset.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-25 22:35:24 +01:00
kaf24@firebug.cl.cam.ac.uk c730da041b [HVM] HVMOP_get_param return parameter value within the provided parameter struct,
not as a direct return value.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-13 09:44:07 +01:00
kaf24@firebug.cl.cam.ac.uk 07275b9747 Build tools/firmware only on x86.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-09 10:53:16 +01:00
kaf24@firebug.cl.cam.ac.uk a4cfaebb0b [XEN][IA64] IA64 build fixes after recent PER_CPU changes.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-08-09 10:44:33 +01:00
kaf24@firebug.cl.cam.ac.uk a3a905683d [XEN] Assorted further PER_CPU- or read_mostly-ifications.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-08 15:43:54 +01:00
kaf24@firebug.cl.cam.ac.uk 67a4f5634c [XEN] Implement proper __read_mostly memory arrangemengt for x86.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-08 15:14:43 +01:00
kaf24@firebug.cl.cam.ac.uk 1d82ec9774 [XEN] Make tracing structures and buffers explicitly PER_CPU.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-08 14:56:22 +01:00
kaf24@firebug.cl.cam.ac.uk 8eafa79a73 [XEN] Make multicall info explicitly PER_CPU.
Also remove cacheline alignment in a few places. We leave
the common timer and schedule_data structures aligned because
they may be accessed randomly by remoted CPUs: at least we can
contain cacheline bouncing to just the offending structures.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-08 14:48:43 +01:00
kaf24@firebug.cl.cam.ac.uk 1ac7758ecb [XEN] Make per-cpu pending EOI interrupt info explicitly PER_CPU.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-08 14:29:16 +01:00
kaf24@firebug.cl.cam.ac.uk bfedab9eef [XEN] Make per-cpu mm information explicitly PER_CPU.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-08 14:18:57 +01:00
kaf24@firebug.cl.cam.ac.uk cb805ea0f2 [XEN] Make per-cpu time information explicitly PER_CPU.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-08 14:02:14 +01:00
kaf24@firebug.cl.cam.ac.uk 62e16a8285 [XEN] Make per-cpu schedule data explicitly PER_CPU.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-08 13:55:22 +01:00
kaf24@firebug.cl.cam.ac.uk 8513c2357d [XEN] Place per-cpu timer info in PER_CPU space.
Signed-of-fby: Keir Fraser <keir@xensource.com>
2006-08-08 12:04:46 +01:00
kaf24@firebug.cl.cam.ac.uk dedb00f212 [XEN] Make tlbflush_time a PER_CPU variable.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-08 11:45:37 +01:00