Adjust truesize in netfront to more closely reflect real data payload
plus supervisor overheads but keeping out gross hypervisor overheads. Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
[XEND] Apply the domain cpumask fully to every vcpu in the domain.
Apply the domain cpumask to each vcpu rather than mapping vcpus to
cpus in the list. This is more inline with the comments for the
cpus parameter and also allows the credit scheduler to balance
vcpus within the domain cpumask.
This patch fixes 2 vmxassist bugs to boot Vista:
1) When switching from VM86_REAL_TO_PROTECTED to VM86_PROTECTED,
protected_mode() sets return eip to switch_to_protected_mode and
segments to vmxassist's. But in later set_mode(), it still consides
these segments are guest's (Bios at this time) and use its gdt table
to calculate address(), which results in segment limitation fault. 2) In
current vmxassist, when entering VM86_PROTECTED_TO_REAL, we need to
decode every instruction manually until we catch instructions like
jmpl to reset cs to really return to real mode. Vista boot manager uses
more instructions.
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
Add a series file to order the patches in patches/linux-<version>
The initial ordering is the same as produced by the previous shell
globbing method.
The series file is a simple list of patch files relative to the
patches/linux-<version>/ directory. We do not support comments,
trailing directives (e.g. "-pN") or blank lines. Apart from these
restrictions the series file should be compatible with patch queue
management tools such as quilt.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Hollis Blanchard [Mon, 14 Aug 2006 20:22:22 +0000 (15:22 -0500)]
[POWERPC] Support console=comX option for Xen console.
Let Xen/PPC support the console=comX option that Xen/x86 uses, so one
need simply supply CMDLINE="console=com2" on the make invocation to get
proper use of the physical serial port on a JS21.
We do this by pruning all serial devices from the device tree, and then
initializing both com1 and com2 (like arch/x86/setup.c does).
Note that `setenv direct-serial? true; nvupdate' should in theory help
with this, but it does not work at present, and will only be supported
in some future version of SLOF. Regardless, it is useful to support the
console=comX option, since there will always be environments where it is
difficult to get access to the firmware console.
This patch gets ia64 building again on xen-unstable.hg due to the
addition of the uint64_t type in public/arch-ia64.h. I also cleaned
up directly including this file versus public/xen.h as ia64 seems to be
the only arch using it directly.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
[VMXASSIST] Fix linker script to define start/end section labels
in the usual idiomatic way. This avoids some BSS symbols being
defined oustide of range _sbss/_ebss.
[LINUX][ Fix x86/64 entry.S to use paravirtualized sti/cli properly.
This fixes
- one instance of using XEN_BLOCK_EVENTS where XEN_UNBLOCK_EVENTS was
meant
- four instances of left-over cli-s that should have been replaced
with XEN_BLOCK_EVENTS
- one instance of slightly wrong placement (without resulting in ill
behavior, but needlessly making the diff to native more complex)
[XEN] grant tables: update pair of entries using a union to ensure endian neutrality.
The first two members of a grant entry are updated as a combined pair.
The following patch uses a union so updates can happen in an endian neutral fashion.
Jimi Xenidis [Mon, 14 Aug 2006 13:53:46 +0000 (09:53 -0400)]
[POWERPC] memory cleanup (phase 2), destroy (et. al) now work
The patch fixes the following problems:
- Fix initializing the heaps so we can Link anywhere < RMA. We not
link xen at 4MiB, which is way saner.
- We track and allocate pages (especially RMA) based on order.
- free domain memory as a resource not as domain
- clarify "order" arithmetic
- update stale def of fix IS_XEN_HEAP_FRAME()
[XENBUS] Avoid direct use of xen_start_info. It's unevailable when
building as a separate driver for an HVM guest. Signed-off-by: Steven Smith <ssmith@xensource.com> Signed-off-by: Keir Fraser <keir@xensource.com>
[NET] linux: Kill the WARN_ON() calls for checksum fixups.
This changeset is from upstream Linux. We need it so Xen users
using NAT are not unnecessarily alarmed by these WARN_ON errors
especially since they're not in a position to do anything about
it. Original changelog:
[NET]: Kill the WARN_ON() calls for checksum fixups.
We have a more complete solution in the works, involving
the seperation of CHECKSUM_HW on input vs. output, and
having netfilter properly do incremental checksums.
But that is a very involved patch and is thus 2.6.19
material.
What we have now is infinitely better than the past,
wherein all TSO packets were dropped due to corrupt
checksums as soon at the NAT module was loaded. At
least now, the checksums do get fixed up, it just
isn't the cleanest nor most optimal solution.
Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
[LINUX] Split useful bits of page.h into new header maddr.h.
Split the bits of page.h which are needed by PV-on-HVM drivers out
into a separate header file, so that it's a bit easier to get the xenolinux
machine address functions when compiled against a native kernel.
Signed-off-by: Steven Smith <ssmith@xensource.com> Signed-off-by: Keir Fraser <keir@xensource.com>
Jimi Xenidis [Sun, 13 Aug 2006 23:19:37 +0000 (19:19 -0400)]
[POWERPC] memory cleanup
The following changes have been made:
- htab is allocated by "order" using RMA size, soon it will be
assigned memory.
- keep track of RMA in terms of its allocated page struct and order
- free htab and RMA memory in arch_domain_destroy()
- get rid of PTEG FULL message, everyone thinks its a bug
[XEN] Explicitly include domain_page.h for map_domain_page() and fix a
warning about arithmetic on 'void *' pointers.
Based on a patch from Jimi Xenidis <jimix@watson.ibm.com> Signed-off-by: Keir Fraser <keir@xensource.com>
[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>
[XEN] Add a warning about changeable size of shared_info structure.
sizeof(shared_info_t) can change even in compatible hypervisor
versions.
Add a clear warning about this, and fix the few places relying on it.
In addition, add some padding to arch_shared_info, to allow future
additions to the structure without breaking known offsets of members
following it in the shared info.
vif-nat and vif-route need to know domU ethX IP addresses in order to set
up the appropriate routes.The new network test infrastructure is not
providing the IP address on the vif line in /tmp/xm-test.conf; adding
it turns out to be a one-liner.
Tested with xm-test running with -bridge, -route, and -nat network
scripts.
By replacing dev_alloc_skb with alloc_skb we need to do the 16-byte
reservation ourselves. Also, it's unnecessary to align the size
when calling alloc_skb since the alignment is an implementation
detail of alloc_skb and it already takes care of it for us.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
[LINUX][XENBUS] Wait for devices to connect when frontend driver is loaded as a module.
Thsi fixes problems where a driver is loaded from a script, and the
following parts of the script depend on devices having connected
by the time the modprobe/insmod returns.
Based on a tested patch from Rik van Riel at Red Hat.
Jimi Xenidis [Fri, 11 Aug 2006 17:30:48 +0000 (13:30 -0400)]
[POWERPC] start-cpu has no return code
According to this document:
PowerPC Processor binding to: IEEE 1275-1994
Standard for Boot (Initialization, Configuration) Firmware
Revision: 2.1 (Approved Version)
Date: November 6, 1996
The start-cpu client interface has the following signature:
start-cpu
IN: nodeid, pc, arg
OUT: none
This patch reflects that, and makes us stop seeing a bogus OF_FAILURE if
we do actually check the return code of of_start_cpu. Tested on JS20
and JS21 blades.
[IA64] Add two extra empty files and add a comment to every empty
source file so that they can be handled by patch/diff. Signed-off-by: Keir Fraser <keir@xensource.com>
Benchmarks show it provides little or no benefit (except
on synthetic benchmarks). Also it is complicated and
likely to hinder efforts to reduce lockign granularity.
[NET] front: Do not allocate unnecessary page-sized main data area
for receive skbuffs. The bulk data is stored in fragments. Signed-off-by: Keir Fraser <keir@xensource.com>
[XEN] Fix bug in spurious pagefault detection which could
be exploited by unprivileged guests. Thanks to Matt Yourst
for finding this and providing the patch. Signed-off-by: Keir Fraser <keir@xensource.com>
[XEN] Add a new type of grant copy operation.
Based on an original patch from Rolf Neugebauer at Intel. Signed-off-by: Steven Smith <ssmith@xensource.com> Signed-off-by: Keir Fraser <keir@xensource.com>
[MINIOS] A first step to re-architecture mini-os for a port to ia64.
Create architecture specific directories below mini-os for sources
and below mini-os/include for headers.
[CONSOLE] Always specify CON_ENABLED in Linux ocnsole driver.
I cannot think of any circumstance that the Xen console device would
not have CON_ENABLED. With out this, DomUs that panic() before the
init process has started (and maybe even after) do not get output hi
priority log_levels (like panic()) from LOG_BUF().
Fix 2 issues when creating HVM guests:
1) xend can't start due to xend-config.sxp
2) qemu dm option vncunused should be effective only
when vnc is turned on.
[hvm/qemu] Add HVM buffered IO writes framework to accelerate stdvga speed.
With this patch, win2k VMX guest boots fine on xen.
Signed-off-by: Zhu Han <zhu.han@intel.com> Signed-off-by: Eddie Dong <eddie.dong@intel.com> Signed-off-by: Xin Li <xin.b.li@intel.com> Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>