Commit Graph
11858 Commits
Author SHA1 Message Date
kfraser@localhost.localdomain a3fc4d842e [SOLARIS] Don't mlock() hypercall buffers.
On solaris mlock requires a page aligned address and mlock doesn't
ensure the pages won't minor page fault.

Signed-off-by: Mark Johnson <mark.johnson@sun.com>
2006-10-23 09:52:51 +01:00
kaf24@localhost.localdomain 7aae32885d Free correct number of maptack pages during domain destruction.
Signed-off-by: Christopher Clark <christopher.clark@cl.cam.ac.uk>
2006-10-22 17:38:59 +01:00
kaf24@localhost.localdomain a12c7da3a8 Use $CC when building pygrub.
Signed-off-by: John Levon <john.levon@sun.com>
2006-10-22 17:36:28 +01:00
kaf24@localhost.localdomain 269af93bd7 [HVM] Replace hvm_prod_vcpu() with calls to generic (and correct) vcpu_kick().
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-22 17:34:24 +01:00
Tim Deegan d0ae053542 [HVM] Don't compare CR3 pfn to domain->max_pages
max_pages is the largest number of pages the domain can have
allocated, not the gpfn of the highest one.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-10-20 17:52:32 +01:00
Tim Deegan 734a37d877 [XEN] Stricter TLB-flush discipline when unshadowing pagetables
It's OK for the guest to see old entries in the TLB, but not for the
shadow fault handler to see them in its linear mappings.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-10-20 16:06:53 +01:00
Tim Deegan c310abc5f1 [XEN] Show shadow status of vcpus in domain info dump
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-10-20 16:01:49 +01:00
Steven Hand cd6f6ef849 Omit seg fixup warning if it's just from statically linked init.
Signed-off-by: Steven Hand <steven@xensource.com>
2006-10-20 11:49:00 +01:00
Steven Hand 94220a3f20 Workaround for bigsmp APIC mode SMP linux guests - we cannot correctly deal
with timer interrupts being delivered to VCPUs other than 0, so spit a
warning and then subsequently ignore the target. This fixes the recent
issues Intel reported when booting SMP FC5 and FC6 kernels.

Needs a better fix at some point.

Signed-off-by: Steven Hand <steven@xensource.com>
2006-10-20 11:43:14 +01:00
kfraser@localhost.localdomain 28100f12bc [XEND] Remove lazy import of signal module.
Signed-off-by: Jeremy Katz <katzj@redhat.com>
2006-10-20 11:00:08 +01:00
kfraser@localhost.localdomain 193d77e775 Allow default target architecture of PV-on-HVM drivers to be overridden.
Signed-off-by: Travis Betak <travis.betak@amd.com>
2006-10-20 10:58:15 +01:00
kfraser@localhost.localdomain 5ed80a6a52 [ACM] Documentation cleanup.
This patch eliminates redundant security tools information that was
integrated into the Xen user guide and the xm man page.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>
2006-10-20 10:48:34 +01:00
kfraser@localhost.localdomain 2e6d2d7144 [NET] gso: Fix rcv mss estimate
I noticed that with default TCP window sizes TSO + Xen would slow to a
crawl on certain machines.  It turned out that there is a bug in the
TCP stack when it comes to receiving LRO (counter part of TSO for rx)
packets.

The following fix has been applied upstream.

        [TCP]: Fix rcv mss estimate for LRO

        By passing a Linux-generated TSO packet straight back into
        Linux, Xen
        becomes our first LRO user :) Unfortunately, there is at least
        one spot
        in our stack that needs to be changed to cope with this.

        The receive MSS estimate is computed from the raw packet
        size.  This is
        broken if the packet is GSO/LRO.  Fortunately the real MSS can
        be found
        in gso_size so we simply need to use that if it is non-zero.

        Real LRO NICs should of course set the gso_size field in
        future.

        Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-10-20 10:46:37 +01:00
kfraser@localhost.localdomain f7d2be903b [HVM] Fix oprofile for HVM guests.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
Signed-off-by: Mats Petersson <mats.petersson@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-20 10:34:24 +01:00
kfraser@localhost.localdomain 7b517f8891 [HVM][SVM] Avoid double-execution of NMI handler.
Remove the do_nmi() call from the vmexit logic, as the NMI is held
pending and will be handled in the context of the host when the STGI
instruction is executed.

Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-10-20 10:11:45 +01:00
kfraser@localhost.localdomain 0f10e394bc [HVM][SVM] Fix 2/2 to nterrupt delivery logic.
Add flag to indicate that an exception event needs injecting, and to
delay the ext interrupt injection.
Remove unnecessary check of RFLAGS.IF for ExtInt injection.

Signed-off-by: Travis Betak <travis.betak@amd.com>
Signed-off-by: Wei Huang <wei.huang2@amd.com>
Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-10-20 10:10:36 +01:00
kfraser@localhost.localdomain b83b1b4104 [HVM][SVM] Fix 1/2 to interrupt delivery logic.
This patch uses the VINTR intercept to signal the hypervisor when a
guest can take an interrupt.  When guest's interrupts are masked by
EFLAGS.IF or the guests are in an interrupt shadow, we create a 'fake'
virtual interrupt to inject while also enabling the VINTR intercept.
When the guest _can_ take interrupts, the hypervisor will #VMEXIT
on VINTR. The VINTR exit handler then clears the VINTR intercept bit
and clears the V_IRQ bit so that svm_intr_assist() can inject a
legitimate interrupt.

Signed-off-by: Travis Betak <travis.betak@amd.com>
Signed-off-by: Wei Huang <wei.huang2@amd.com>
Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-10-20 10:09:55 +01:00
kfraser@localhost.localdomain 6c96f33316 [HVM] Implement password authentication of VNC connections.
The specification is as mentioned at
http://lists.xensource.com/archives/html/xen-devel/2006-09/msg00666.html
(However, password came to describe plain text)

The difference is follows.
- protocol_authtype() without the necessity was deleted.
- The check on the protocol version was added.
- And, some small modification.

Signed-off-by: Masami Watanabe <masami.watanabe@jp.fujitsu.com>
2006-10-20 09:50:09 +01:00
kfraser@localhost.localdomain a75c9af600 Use the name of the title of the system to boot into (instead of the
kernel version) to determine where to make the entry into the grub
configuration file.

Signed-off-by: Reiner Sailer <sailer@us.ibm.com>
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-20 09:32:16 +01:00
kfraser@localhost.localdomain b039222b0b [HVM] Pass all non-RAM memory accesses to handle_mmio().
It is up to handle_mmio() to correctly handle accesses outside
valid device mmio regions.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-20 09:30:23 +01:00
kfraser@localhost.localdomain dbcc721001 [BLKTAP]: Fix potential grant entry leaks on error
As it stands grant entries for the actual data are mapped in bulk.
If one of the earlier entries fail to be mapped, it can cause all
subsequent entries to be leaked if they were successfully mapped.

This patch changes it so that we will continue to reap grant entries
even when an error is detected.

There is still a potential leak if create_lookup_pte_addr fails
in fast_flush_area.  This leak is not affected by this patch.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-10-20 09:28:31 +01:00
kfraser@localhost.localdomain 97e34120fe [BLKTAP]: Kill bogus fast_flush_area
The function dispatch_rw_block_io may call fast_flush_area even before
a pending request has been initialised.  This patch deletes that call.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-10-20 09:24:26 +01:00
kfraser@localhost.localdomain a935698894 [BLKTAP]: Kill duplicate fast_flush_area call
The dispatch_rw_block_io may call fast_flush_area twice if
create_lookup_pte_addr fails (there is a flush call at fail_flush
already).  The second call simply causes warnings to be printed
on the console.  This patch removes the duplicate call.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-10-20 09:22:58 +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
kfraser@localhost.localdomain 943ca75a60 [SOLARIS] Don't use -nostdinc as it prevents getting stadrg.h
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-19 17:01:51 +01:00
kfraser@localhost.localdomain 3084f41064 [HVM] Windows HCT requires non-zero subvendor details in platform PCI device.
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
2006-10-19 16:32:11 +01:00
kfraser@localhost.localdomain 22323d5911 [XEND] Two small fixes/improvements from Glauber de Oliveira Costa.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-19 15:53:12 +01:00
kfraser@localhost.localdomain da161aeaa8 [HVM][VMX] Use CPUID instruction virtualization to workaround VMXAssist 4G limit.
Address space access limit in VMXAssist is 4G, because IA-32 only has
4GB virtual address space which VMXassist can use to map physical
memory. The issue is, win2k3 server with more than 4G memory will put
AP GDT above 4G, so when AP changes its mode from real mode to PAE
paging mode, the long jump instrction it uses need access AP GDT
entries which resides above 4G, but because of this constraint, it can
not access GDT and so fails boot.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-10-19 15:49:16 +01:00
kfraser@localhost.localdomain bb7670b698 [ACM] An environment where ACM and its tools have not been installed before
will throw an error during 'make' of the test suite. This fixes the problem.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-19 15:15:36 +01:00
kfraser@localhost.localdomain d6ced5a8df [ACM] Add missing alignment operations for the ACM module.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-19 15:14:25 +01:00
kfraser@localhost.localdomain 5dfa416d52 Don't use $(LINK.o), as it doesn't pick up -m32/-m64 from $(CFLAGS).
Signed-off-by: John Levon <john.levon@sun.com>
2006-10-19 15:13:09 +01:00
kfraser@localhost.localdomain 0722652dbf [HVM] PCmark2005 running in WinXP needs following extension to mmio decoder.
Als fix some inconsistencies, the comments of mmio decoder use AT&T
ordering for operands, but the syntax looks like Intel asm. This leads
to much confusion.

Signed-off-by: Qing He <qing.he@intel.com>
2006-10-19 14:56:02 +01:00
kfraser@localhost.localdomain 2208cf8293 [XENTRACE] Fix typo in set_cpu_mask op.
From: Xiaowei Yang <xiaowei.yang@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-19 14:53:31 +01:00
kfraser@localhost.localdomain 50b362a182 [BLKTAP]: Copy shared data before verification
As it is blktap verifies the metadata from the frontend in place.
This means we run the risk of the frontend changing the data after
we've verified it.  This patch copies the data onto the stack before
verifying and using it to ensure we see a consistent snapshot.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-10-19 14:50:47 +01:00
kfraser@localhost.localdomain 204732dd72 [XEN] Forcibly undefine swap{16,32,64} in mkelf32 program.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-19 14:38:34 +01:00
kfraser@localhost.localdomain 55235ec559 [NET] front: Fix "rmmod xennet" crash in dom0.
Signed-off-by: Jim Dykman <dykman@us.ibm.com>
2006-10-18 19:23:32 +01:00
kfraser@localhost.localdomain 5bcff8383d [HVM] XenTrace enhancement for HVM SMP guests.
Signed-off-by: Yunfeng Zhao <yunfeng.zhao@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-10-18 19:20:36 +01:00
kfraser@localhost.localdomain f9038804d6 Replace test-gcc-flag with Linux-style cc-option.
Improve on Linux implementation by looking for any output
on stdout/stderr. This indicates badness.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-18 19:14:34 +01:00
kfraser@localhost.localdomain 923fbdf607 [HVM] Enable DMA mode for CD-ROM IDE ATAPI interface.
Signed-off-by: Winston Wang <winston.l.wang@intel.com
2006-10-18 18:41:47 +01:00
kfraser@localhost.localdomain 1370e6c9e0 [TPM] Check the existence of the xenstore path before trying to read from it.
This prevents an error from being logged. Use the wrapped command for
reading from the xenstore instead of the native one.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-18 18:37:18 +01:00
kfraser@localhost.localdomain 4ca1612143 [HVM] Move RTC emulation into the hypervisor.
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
2006-10-18 18:35:21 +01:00
kfraser@localhost.localdomain 2b30fc3c70 [SOLARIS] More tools fixes.
Many of the tools use C99 features such as bool, or expect certain functions.
Fix the CFLAGS to enable these on Solaris.

Also make sure the correct $CC is passed to Python.

Signed-off-by: John Levon <john.levon@sun.com>
2006-10-18 18:13:57 +01:00
kfraser@localhost.localdomain bc29b3f70e [NET] front/back: Avoid unaligned accesses to IP datagrams. These
cause noisy warnings on IA64.

Signed-off-by: Kouya SHIMURA <kouya@jp.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
2006-10-18 17:59:04 +01:00
kfraser@localhost.localdomain aec48f2d9d [ACM] Fix the resource representations in the resource_label
file. Without this patch, multiple representations of the same
resource can co-exist in the resource label file and lead to errors
during operation.

Ensures that all resource file names are stored with absolute
path name and are unique. Setting labels of phy-resources, relative
paths will automatically be pre-pended with '/dev/'; labeling
file-resources with relative paths will raise an error.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>
2006-10-18 17:54:58 +01:00
kfraser@localhost.localdomain ae02701367 [ACM] Add access control module information for hypercalls and
xenstore entries to the interface manual.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>
2006-10-18 17:54:06 +01:00
kfraser@localhost.localdomain 044aeaa616 [XEN] Clamp dom0 memory and CPUs to fit in available resources.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-18 17:45:19 +01:00
kfraser@localhost.localdomain 761d4da84e [LINUX] Eliminate microcode driver's dependency on sys_m{,un}lock as
well as the needless use of static variables.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-10-18 17:41:36 +01:00
kfraser@localhost.localdomain 355213fabc [HVM] E820 table misreports the ACPI NVS/Data information which
triggers a complaint from Windows HCT.

Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Winston Wang <winston.l.wang@intel.com>
2006-10-18 17:39:52 +01:00
kfraser@localhost.localdomain 81ba8bb990 [ACM] Fix binary alignment in tools.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-18 17:29:08 +01:00
kfraser@localhost.localdomain 7c20d5e02e [ACM] Makes acm_setup arch-independant.
Move module extraction code to x86/setup.c

Be sure the dump binary file is aligned.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-10-18 17:24:36 +01:00