Commit Graph
11737 Commits
Author SHA1 Message Date
kaf24@localhost.localdomain 83a53cd75c Revert 11728:30f13007be. Breaks Solaris guests.
Will need a new method for handling padded gzip files.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-10 22:04:01 +01:00
kfraser@localhost.localdomain 741fad235c [XEND] Add missing line from changeset 11653:3b7e11cbeb940
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-10 16:02:30 +01:00
Christian Limpach 15a8e33ac2 [xend/hotplug] Remove happy gun logging.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-10-10 13:48:34 +01:00
kfraser@localhost.localdomain 2c48ac78fe [NET] back: Fix netif rate limiting.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-10 13:47:09 +01:00
Ian Campbell 9fd20b0666 Correct check for extended-cr3 support in __xen_guest fallback code.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-10-10 10:06:56 +01:00
kaf24@localhost.localdomain 09635b3848 [TOOLS] Fixes to miniterm serial terminal utility.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-09 23:34:00 +01:00
kfraser@localhost.localdomain d55292850a [NET] back: Refcount fixes to vif rate-limiting code.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-09 17:08:18 +01:00
Tim Deegan f6d4816473 [XEN] Zero PAE shadow l3es when destroying subshadows.
Normally, we can leave the contents of shadows in place when we destroy
them, but this is not the case for l3 subshadows, since they do not get
zeroed on reallocation unless the entire l3 page is unshadowed.
This fixes several crashes seen with SMP PAE HVM RHEL4.2 guests.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-10-09 16:43:09 +01:00
kfraser@localhost.localdomain 5000a6a1e0 [XEND] No need to decompress the initrd when building a domain.
The guest OS should be capable of parsing an image file in
whatever format was produced by that OS's tools. Furthermore,
we have seen initrd images with trailing garbage. This causes
us to calculate the wrong size for the uncompressed data and hence
fail to build the guest.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-09 13:50:00 +01:00
kfraser@localhost.localdomain 7dae06e0f3 [PRIVCMD] Fix trivial bug introduced in IOCTL_PRIVCMD_MMAP.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-09 13:46:34 +01:00
kfraser@localhost.localdomain 507cd504b6 [LINUX] Various fixes for mmapping I/O and foreign memory pages.
First, auto-translate guests can use remap_pfn_range() rather than
direct_remap_pfn_range(). This actually works better because
remap_pfn_range() can legitimately assert VM_PFNMAP (this patch
removes this flag for direct_remap_pfn_range().

There are various cleanups and fixes to the privcmd interface:
 1. VMAs should be searched and used under the mmap semaphore
 2. Mapping should be single shot (since cirect_remap_pfn_range()
    expects the PTEs to be empty when it is called).
 3. Demand-fault population of the privcmd vma should be disallowed.
 4. Various others, including a more thorough check of input args.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-09 10:56:17 +01:00
Tim Deegan e30cc6aed6 Since shadow_update_paging_modes() will modify v->arch.hvm_vcpu.hw_cr3,
so we should always do shadow_update_paging_modes() before we writes to
GUEST_CR3 with v->arch.hvm_vcpu.hw_cr3.

Signed-off-by: Xiaohui Xin xiaohui.xin@intel.com
Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-10-09 10:18:11 +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
kfraser@localhost.localdomain 44740083e9 [BLKTAP] Fix trivial indentation snafu in previous changeset.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-06 16:51:10 +01:00
kfraser@localhost.localdomain 382c54558d [BLKTAP] Fix crash at start-of-day in blktapctrld
if /local/domain does not exist.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-06 15:05:30 +01:00
kfraser@localhost.localdomain dc2917720c [BLKTAP] Formatting and style cleanups to blktapctrl.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-06 15:04:42 +01:00
kfraser@localhost.localdomain 4314149396 [BALLOON] Replace alloc_empty_page_range with new helper alloc_empty_pages_and_pagevec.
This is a better fit with all the callers, who now allocate discontiguous empty pages.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-06 11:52:41 +01:00
kfraser@localhost.localdomain db002ee4a0 [BLK] tap: Allocate pages for foreign mappings individually rather than contiguously.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-06 10:30:43 +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
Tim Deegan 3930ae7abd Merge 2006-10-05 16:48:28 +01:00
kfraser@localhost.localdomain 8ee614278c [XEN] Fix memtype accessor domctls.
From: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-05 16:42:27 +01:00
kfraser@localhost.localdomain d9535802e3 [XEN] Change microcode_update function interface inside Xen.
Confine the knowledge that the buffer gets accessed without use of
proper guest handle accessors to a single file.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-10-05 16:38:30 +01:00
kfraser@localhost.localdomain 86c981c50c [XEN] Remove unused MULTICALL_arg6, and unnecessary use of STR() macro.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-10-05 16:36:39 +01:00
kfraser@localhost.localdomain 39e9688348 Make sure that if one of the intermediate steps fails, a subsequent
make invocation doesn't think there's nothing to do.
This should be viewed as an intermediate step towards splitting up
the rule into three independent ones, passing intermediate files
from one to the next.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-10-05 16:35:56 +01:00
Tim Deegan 92bc3792bb [VMX] Remove vcpu->arch.hvm_vmx.cpu_state
The flags in hvm_vmx.cpu_state were shadows of shadows of bits in
guest CR0_READ_SHADOW, CR4_READ_SHADOW and EFER, and were not being
kept in sync with the other shadows if changes were made while
running under vmxassist.  Just use the full shadows of those control
regs instead, and replace cpu_state with a single vmxassist flag.

Signed-off-by:  Tim Deegan <Tim.Deegan@xensource.com>
2006-10-05 16:21:39 +01:00
kfraser@localhost.localdomain 2abd5d1c78 [XM] Fix 'xm help' when called on a command-name prefix.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-10-05 16:17:06 +01:00
kfraser@localhost.localdomain af51f19f4b [XEND] Fix pygrub when run server-side on a domain with blktap disks.
For some slightly-crazy reason the blktap patches changed the name
of the SEXPR block containing the disk definition 'vbd' to 'tap', even
though merely changing the 'uname' fragement was sufficient. eg

 (vbd (backend 0) (dev hda:disk) (uname file:/xen/rhel4x86_64.img)
 (mode w) )

changes to

 (tap (backend 0) (dev hda:disk) (uname tap:aio:/xen/rhel4x86_64.img)
 (mode w) )

If you create a domain with xm, then xm runs pygrub client side which
works fine. If you create a domain by feeding a block of SEXPR to Xend
over its network port, then pygrub is run server side. The code in
XenD which decides which disk to run pygrub against only looks for
'device/vbd' in the SEXPR so fails to see any blktap disks.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2006-10-05 16:14:50 +01:00
kfraser@localhost.localdomain ad81332833 [NET] front: Fix size of grant_rx_ref[]. It should use the RX ring
size, rather than the TX ring size.
Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
2006-10-05 16:05:12 +01:00
Christian Limpach 56525bb669 [HVM/vncserver] Implement a 'vnclisten' option to limit the interface
that the VNC server from qemu listens on. 

Defaults to only listen on 127.0.0.1

The old behaviour (listen on all interfaces) can be restored, by
- changing the system-wide default in /etc/xen/xend-config.sxp by adding:
(vnc-listen '0.0.0.0')
- changing individual domain config files by adding:
vnclisten="0.0.0.0"

Also allows specifying the hostname associated with an interface to limit
to that interface.

Signed-off-by:  Daniel P. Berrange <berrange@redhat.com>
2006-10-05 14:53:29 +01:00
Ian Campbell 192d7f5956 [NET] front: Include linux/moduleparam.h since we use module_param_*
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-10-05 14:07:57 +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
jchesterfield@dhcp92.uk.xensource.com 9bc9168a08 [BLKTAP] Blktapctrl: Add asynchronous watch on dom0 name entry for blktapctrl on startup. This patch cleans up the synchronisation issues between blktapctrl and xend at initialisation if the Dom0 entries have not yet been populated.
Signed-off-by: Julian Chesterfield <julian@xensource.com>
2006-10-05 10:55:13 +01:00
Ian Campbell 586fa33525 [NET] front: If the kernel does not include GSO then look for TSO.
This allows us to take advantage of TSO when running as PV-on-HVM on
older kernels.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-10-05 10:09:25 +01:00
Ian Campbell 990213dbbb [NET] front: Invert the test for a kernel with GSO support.
This simplifies a subsequent patch.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-10-05 10:09:20 +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
kfraser@localhost.localdomain 27d0b26b94 Remove redundant '&' before array name in __RING_SIZE macro.
Signed-off-by: Richard Miller <9xen@hamnavoe.com>
2006-10-04 19:00:11 +01:00
kfraser@localhost.localdomain 52432dc102 [LINUX] Don't bother to write a 5-bit value to a 2-bit field.
From: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-04 18:55:16 +01:00
kfraser@localhost.localdomain 6623d7edad [NET] back: Disable packet queuing when a client has no receive buffers.
This turns out to be dangerous as packets can be queued indefinitely,
introducing resource dependencies between guests (if the queued
packets originate from another virtual machine). For example, this
can prevent interfaces from being torn down and hence defunct
virtual machines from being destroyed.

The queuing functionality is retained as a module option, but a
warning is printed if it is enabled. It is not intended for general use!

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-04 16:12:35 +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 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
kfraser@localhost.localdomain 86f22394f5 [NET] Make MAX_SKBUFF_ORDER page-size independent.
Original patch from Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-03 11:39:22 +01:00
kfraser@localhost.localdomain 07afc2cb5b [IA64] Fix implicit declaration of initialize_keytable().
Signed-off-by: Aron Griffis <aron@hp.com>
2006-10-03 11:33:37 +01:00
Alastair Tse f4bf67e5fd [XM] Fix rmlabel filename assignment
The patch fixes a bug in the rmlabel tool.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-03 11:24:48 +01:00
Alastair Tse 20b5981cde [XM] Fix missing security check in block-attach
This patch fixes an indentation error in main.py. The effect of this
bug is that block-attach does not check labels if the ACM is
active. This bug slipped in with change set 11572_:_ ad22c711ccb7
<http://xenbits.xensource.com/xen-unstable.hg?cs=ad22c711ccb7>.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>
2006-10-03 10:48:07 +01:00