Commit Graph
10649 Commits
Author SHA1 Message Date
chris@kneesaa.uk.xensource.com 3d1d4c35fa [BUILD] Fix re-use of existing config files in dist/install/boot.
- the name of the config file was computed incorrectly because of the
  linux version number 4th digit being present in both LINUX_VER and
  EXTRAVERSION extracted from the linux Makefile.
- DESTDIR was not set for the prep and config targets.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-07-08 19:22:34 +01:00
kfraser@localhost.localdomain c014225684 [XEN] Add CPUID hypervisor-info leaves at index 0x40000000.
Currently only a signature leaf is defined ("Xen\0").
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-07-05 18:48:41 +01:00
kfraser@localhost.localdomain 971ec7119c [XEN] getpagframeinfo field name mfn -> gmfn.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-07-05 17:37:08 +01:00
kfraser@localhost.localdomain 8f33ca9931 [XEN] Hypercall-init dom0_op takes GMFN, not MFN.
Signed-off-by: Steven Smith <sos22@cl.cam.ac.uk>
2006-07-05 17:16:10 +01:00
kfraser@localhost.localdomain 2965c96535 [HVM][VMX] More descriptive failed vmentry.
Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-07-05 14:31:22 +01:00
kfraser@localhost.localdomain cbffd93cad [MINIOS] Mapping page frames on demand added to the memory management.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
2006-07-05 14:29:57 +01:00
kfraser@localhost.localdomain 5edcddf706 [MINIOS]Mapping page frames on demand added to the memory management.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
2006-07-05 14:29:13 +01:00
kfraser@localhost.localdomain ecf0bebefa [XEN] Separate domain creation from vcpu creation.
Creating a domain no longer creates vcpu0 -- that is now
done later.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-07-05 14:27:27 +01:00
kfraser@localhost.localdomain 78c851da09 [XENMON] This patch removes the magic number "31" for readability.
The number "31" means the idle domain ID.

In detail:
- display the idle domain ID with "Idle" instead of "31" 
- write to the file "log-idle.log" instead of "log-dom31.log".

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
2006-07-05 11:31:33 +01:00
kfraser@localhost.localdomain 9d5a2ec0a4 [HVM] Fix the kernel build failure issue on HVM SMP guests which
are using 2M PSE pages. Now we can do kernel build on:
 1) RHEL4 IA32 SMP guest on PAE host.
 2) RHEL4 IA32 SMP guest on IA32e host.
 3) IA32e SMP guest on IA32e host.

Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-07-05 11:30:12 +01:00
kfraser@localhost.localdomain 79700a5ce7 [MINIOS]Events handling cleaned up. The interface extended to provide
void* pointer to handlers.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
2006-07-05 11:27:58 +01:00
kfraser@localhost.localdomain c5f5756de8 [MINIOS] XenBus tests disabled in MiniOS. Xend bug induced
by write to device/vif/0. 
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
2006-07-05 11:27:25 +01:00
kfraser@localhost.localdomain 933e1fc274 [MINIOS] Implement XenBus transactions in MiniOS.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-07-05 11:26:57 +01:00
kfraser@localhost.localdomain 412dc9c9ff [XENTOP] Fix Field attributes and width.
It miss that set the FIELD attribute and width for VBD
information in xentop.c.

Signed-off-by  Satoshi UCHIDA <s-uchida@ap.jp.nec.com>
2006-07-05 11:24:09 +01:00
kfraser@localhost.localdomain 80900a058b [HVM][VMX] Move vmcs and I/O bitmap allocation into
vmx_initialise_guest_resources().

Signed-off-by: Xin B Li <xin.b.li@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-07-05 11:21:19 +01:00
kfraser@localhost.localdomain e0d136944f Update xen caps to indicate that HVM IA32 PAE guest on PAE host is available.
Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-07-05 10:32:33 +01:00
kfraser@localhost.localdomain 8e7fded8ef [HVM][VMX] expose PSE feature to HVM guests if PAE is turned on in
config file, with this change, RHEL4 IA32 SMP guest can boot.
But because we don't support 4Mbytes PSE pages, so x86_32 HVM guest
can NOT use PSE feature. However user may have "pae=1" in config file,
which causes PSE feature seen by x86_32 HVM guest, and it will then use
4Mbytes PSE pages. In this case, we will have to crash x86_32 HVM.
So when running x86_32 HVM guest, user need pay attention not to have
"pae=1" in config file.

Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
2006-07-05 10:32:08 +01:00
kfraser@dhcp93.uk.xensource.com 6f8425d69d [HVM] Disable pmtimer in qemu acpi device model. Needs fixing
to not burn ~25% of a 3GHz CPU.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-07-03 16:07:20 +01:00
kaf24@firebug.cl.cam.ac.uk 90ad2d20d5 [NET]: Rename feature-tso to feature-gso-tcpv4
This patch renames the name feature-tso to feature-gso-tcpv4 for future
expansion.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-07-03 09:07:33 +01:00
kaf24@firebug.cl.cam.ac.uk 7232160efd [NET] front: Zero negotiated bits in xen_set_features
When we reconnect to the backend we need to first zero all negotiated
bits as the functions xen_set_sg and xen_set_tso do not (and are not
supposed to) zero bits when they fail to set them.

This patch also permanently enables the NETIF_F_GSO_ROBUST bit as we
never parse any GSO fields ourselves (even if we did the backend could
not trust us so it's wasted effort).

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-07-03 09:06:59 +01:00
kaf24@firebug.cl.cam.ac.uk 3c8767d832 [NET] back: Add GSO features field and check gso_size
This patch adds the as-yet unused GSO features which will contain
protocol-independent bits such as the ECN marker.

It also makes the backend check gso_size to ensure that it is non-zero.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-07-03 09:05:18 +01:00
kaf24@firebug.cl.cam.ac.uk 3de1ac2405 [NET] back: Fix off-by-one error in netbk_tx_err
The generalised extra request info patch introduced a bug with the use
of netbk_tx_err since it advanced the req_cons pointer by one.  This
patch fixes thing by delaying the increment in netbk_tx_err.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-07-03 08:57:15 +01:00
kaf24@firebug.cl.cam.ac.uk 943a72a09a [BUILD] Miscellaneous build-system fixes and tweaks.
* Don't delete non-existent %.tar.bz2 in buildconfigs/Rules.mk's %-mrproper
* Add a mrpropper target to buildconfigs/mk.linux-2.6-xen, and
  have this delete the local tarball
  - This should also delete the local patch, if there is one, but I am not
    sure how to do this with the current incarntation of the code, and I
    will post a subsequent patch which makes this easier and effects this
    chang. As there currently is no local patch this is not a big deal at
    this moment. (Horms)
* Stop kclean from erroring out if the kernel directory doesn't exist
* Remove patches/*/.makedep in top level Makefile rather than in
  buildconfigs/Rules.mk, as calling rules in the latter causes
  patches/*/.make to be created (Magnus)

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
Signed-Off-By: Horms <horms@verge.net.au>
2006-07-03 08:56:29 +01:00
kaf24@firebug.cl.cam.ac.uk 89d8ddd152 [DOC] Add descriptions on mouse handling and how to use the USB
support that is now in the HVM device model.

Signed-off-by: Don Dugger <donald.d.dugger@intel.com>
2006-07-03 08:55:08 +01:00
kfraser@dhcp93.uk.xensource.com 65dc3b4029 [LINUX] Fix booting with e.g. xencons=tty3, so that tty1/tty2 are valid (dummy) devices.
Attached patch makes it always create valid devices on tty1-tty63, but
all but the one specified by xencons are dummy devices.

From: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-07-03 08:52:27 +01:00
kaf24@firebug.cl.cam.ac.uk d2f56f3181 Merge with xen-ia64-unstable.hg 2006-07-03 08:35:12 +01:00
kaf24@firebug.cl.cam.ac.uk 402e602830 [HVM][VMX] Fixes to VMCS create/destroy.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-07-03 08:27:50 +01:00
kaf24@firebug.cl.cam.ac.uk dbc8a9969c [LIBXC] Fix the 64-bit build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-07-01 09:37:24 +01:00
kaf24@firebug.cl.cam.ac.uk 273ffda5b4 [XEN] Sync Elf parsing with libxc parser.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-30 22:23:21 +01:00
kaf24@firebug.cl.cam.ac.uk 6b4c5ff3c8 Provide more specific and helpful error messages during ELF loading.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-06-30 22:19:08 +01:00
kaf24@firebug.cl.cam.ac.uk f4c633d8ec Allow 32-bit libxc to load 64-bit ELF files.
- use 64-bit integral types for addresses in struct domain_start_info
- use stroull() to parse 64-bit values
- remove redundant _p(a) definition and add a comment
- printf format changes for the new types

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-06-30 22:18:01 +01:00
kaf24@firebug.cl.cam.ac.uk 019c1f9938 [XEN] Mark two more opcodes (C6 and C7) as Mov instructions.
From: Mats Petersson <Mats.Petersson@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-30 22:02:58 +01:00
kaf24@firebug.cl.cam.ac.uk d88eb17bac [XENBUS] Another simplification -- bus_for_each_dev() better than bus_find_device().
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-30 22:02:18 +01:00
kfraser@dhcp93.uk.xensource.com f4b8644cb0 [XENBUS] Another fix to the wait-for-device-connection code.
The new method for printing unconnected device status is arguably
cleaner and also does not screw up reference counts (previous code
called bus_find_device() with no put_device() on the result.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-30 18:14:57 +01:00
kfraser@dhcp93.uk.xensource.com c97b7fb5d1 [XENBUS] Do not wait for devices with no driver to connect.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-30 17:53:52 +01:00
ack@localhost.localdomain cf7bb893ba Merge 2006-06-30 17:12:31 +01:00
ack@localhost.localdomain 495adc0b6a Don't modify global active weight when changing weight of inactive domain.
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
2006-06-30 17:12:05 +01:00
kaf24@firebug.cl.cam.ac.uk bab2abfd36 [XENBUS] Improve the code for waiting for devices to connect. Provide
a more useful error when devices fail to connect.
From: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-30 17:02:22 +01:00
kaf24@firebug.cl.cam.ac.uk e110434e91 [NET]: Update net-gso.patch. Remove net-tso.patch.
New changeset merged upstream:

    [TCP]: Reset gso_segs if packet is dodgy

    I wasn't paranoid enough in verifying GSO information.  A bogus gso_segs
    could upset drivers as much as a bogus header would.  Let's reset it in
    the per-protocol gso_segment functions.

    I didn't verify gso_size because that can be verified by the source of
    the dodgy packets.

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

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-06-30 14:41:13 +01:00
kfraser@dhcp93.uk.xensource.com 4509ffb83c [BLK] back: Only remove sysfs attributes if they were previously
added. Also check for errors during attribute creation.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-30 14:30:43 +01:00
chris@kneesaa.uk.xensource.com 5c561080e2 Remove use of unlikely -- it's not defined on all systems.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-06-30 14:15:12 +01:00
kfraser@dhcp93.uk.xensource.com 7550e5d3f9 Revert 10521, 10526 and 10527. This completes reversion of ACM modifications to xm.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-30 13:33:20 +01:00
kfraser@dhcp93.uk.xensource.com ae9bfcdced [XEN] Various softirq cleanups. Main one is to always
call smp_processor_id() after any softirq, as rescheduling
may cause us to move to another processor on ia64
(spotted by Isaku Yamahata). Also get rid of many direct
callers of do_softirq() by creating new function
process_pending_timers().
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-30 13:25:43 +01:00
kfraser@dhcp93.uk.xensource.com 0968f0be1f [LINUX] Replace pagetable walks by simple address calculation.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-06-30 10:35:54 +01:00
kfraser@dhcp93.uk.xensource.com a37cc2b0b8 [LINUX] A few clean ups and a fix to an error path in xen_create/destroy_contiguous_region.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-30 10:24:14 +01:00
kaf24@firebug.cl.cam.ac.uk 6303b0e103 [TPM] Adds a script for virtual TPM support.
It also removes a consistency check from the vtpm-common script file.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-06-30 10:16:12 +01:00
kaf24@firebug.cl.cam.ac.uk 39e7def132 [TPM] Update the current virtual TPM documentation in misc/docs/vtpm.txt
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-06-30 10:14:36 +01:00
kaf24@firebug.cl.cam.ac.uk 23190c25c3 [HVM][SVM] Don't BUG when VMRUN exitcode==-1, just crash the domain.
If there's any consistency problems in the VMCB, the VMRUN will return
an exitcode of -1 to indicate that the guest-state is "bad". Prior to
this change, it would cause the hypervisor to reboot. This is not at
all necessary - the VMCB may be bad, but the system is most likely
still intact. [In particular, a guest could cause a crash of the
system by setting up PAE with an invalid set of PDPE's, which is
definitely not a desired behaviour]

Now also print out the VMCB, as that MAY help identify the cause of
the exitcode of -1.

Signed-off-by: Mats Petersson <mats.petersson@amd.com>
2006-06-30 10:13:17 +01:00
kaf24@firebug.cl.cam.ac.uk 10e88b13f4 Use explicit accessors to handle unusually-sized atomic operations in grant table code.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-06-30 10:10:39 +01:00
kaf24@firebug.cl.cam.ac.uk 047923da52 evtchn_do_upcall() has a micro optimization which is depends on that xchg is a barrier.
However xchg of IA64 has acquire semantics so that event
channel notification is lost sometimes. This patch fixes it.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-06-30 10:07:38 +01:00