]> xenbits.xensource.com Git - xen.git/log
xen.git
18 years ago[BLKTAP] Properly daemonise the blktap control daemon. Fixes bug #709.
kfraser@localhost.localdomain [Mon, 31 Jul 2006 17:07:25 +0000 (18:07 +0100)]
[BLKTAP] Properly daemonise the blktap control daemon. Fixes bug #709.
Signed-off-by: Harry Butterworth <butterwo@uk.ibm.com>
18 years ago[NET] back: Transmit TSO packets if supported
kfraser@localhost.localdomain [Mon, 31 Jul 2006 16:49:36 +0000 (17:49 +0100)]
[NET] back: Transmit TSO packets if supported

This patch adds TSO transmission support to the backend.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Disable for now, as domU->dom0 direction.

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[NET] front: Add TSO support
kfraser@localhost.localdomain [Mon, 31 Jul 2006 16:45:22 +0000 (17:45 +0100)]
[NET] front: Add TSO support

This patch adds TCP Segmentation Offload (TSO) support to the
frontend.
It also advertises this fact through xenbus so that the frontend can
detect this and send through TSO requests only if it is supported.

This is done using an extra request slot which is indicated by a flag
in the first slot.  In future checksum offload can be done in the same
way.

Even though only TSO is supported for now the code actually supports
GSO so it can be applied to any other protocol.  The only missing bit
is the detection of host support for a specific GSO protocol.  Once
that is added we can advertise all supported protocols to the guest.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Disable for now, as in domU->dom0 direction.

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[NET] back: Transmit SG packets if supported
kfraser@localhost.localdomain [Mon, 31 Jul 2006 16:42:13 +0000 (17:42 +0100)]
[NET] back: Transmit SG packets if supported

This patch adds scatter-and-gather transmission support to the
backend. This allows the MTU to be raised right now and the potential
for TSO in future.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
18 years ago[NET] front: Add SG support
kfraser@localhost.localdomain [Mon, 31 Jul 2006 16:35:43 +0000 (17:35 +0100)]
[NET] front: Add SG support

This patch adds scatter-and-gather support to the frontend.  It also
advertises this fact through xenbus so that the backend can detect
this and send through SG requests only if it is supported.

SG support is required to support skb's larger than one page.  This
in turn is needed for either jumbo MTU or TSO.  One of these is
required to bring local networking performance up to a level that
is acceptable.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
18 years ago[NET] back: Added tx queue
kfraser@localhost.localdomain [Mon, 31 Jul 2006 16:29:00 +0000 (17:29 +0100)]
[NET] back: Added tx queue

This patch adds a tx queue to the backend if the frontend supports rx
refill notification.  A queue is needed because SG/TSO greatly reduces
the number of packets that can be stored in the rx ring.  Given an rx
ring with 256 entries, a maximum TSO packet can occupy as many as 18
entries, meaning that the entire ring can only hold 14 packets.  This
is too small at high bandwidths with large TCP RX windows.

Having a tx queue does not present a new security risk as the queue is
a fixed size buffer just like the rx ring.  So each guest can only
hold a
fixed amount of memory (proportional to the tx queue length) on the
host.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Cannot BUG_ON netbk_queue_full yet !netbk_can_queue, as this can be
triggered by a misbehaving client. Set req_event appropriately when
stopping the packet queue, or we will not receive a notification.

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[XEN] Some suspicion that we may enter an infinite
kfraser@localhost.localdomain [Mon, 31 Jul 2006 09:40:21 +0000 (10:40 +0100)]
[XEN] Some suspicion that we may enter an infinite
#PF loop due to broken spurious pagefault detection.
Beef up the tracing on that code path so we can catch
some useful info if it happens.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoAdd a transaction_started field in xenstored connection structure instead of
vhanquez@gwig.uk.xensource.com [Mon, 31 Jul 2006 09:30:36 +0000 (09:30 +0000)]
Add a transaction_started field in xenstored connection structure instead of
browsing the list of transaction each time
Bump the default to 10, and make it configurable through the command line.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
18 years agoLimit the number of opened transactions per connection to 5.
vhanquez@gwig.uk.xensource.com [Sat, 29 Jul 2006 13:05:59 +0000 (14:05 +0100)]
Limit the number of opened transactions per connection to 5.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
18 years agoAdd back changes lost from xen-ia64 cset 10570:8dc4af3f192c
chris@kneesaa.uk.xensource.com [Sat, 29 Jul 2006 12:06:41 +0000 (13:06 +0100)]
Add back changes lost from xen-ia64 cset 10570:8dc4af3f192c
with the new qemu tree.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
18 years ago[NET] front: Fix the build (broken my me a few changesets back).
kfraser@localhost.localdomain [Fri, 28 Jul 2006 16:52:57 +0000 (17:52 +0100)]
[NET] front: Fix the build (broken my me a few changesets back).
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[XM] Print shorthelp of xm shutdown.
kfraser@localhost.localdomain [Fri, 28 Jul 2006 16:36:08 +0000 (17:36 +0100)]
[XM] Print shorthelp of xm shutdown.

# xm shutdown
Error: 'xm shutdown' requires between 1 and 4 arguments.

   shutdown <DomId> [-w][-a][-R|-H] Shutdown a domain

# xm shutdown vm1 -w -a -R -H
Error: 'xm shutdown' requires between 1 and 4 arguments.

   shutdown <DomId> [-w][-a][-R|-H] Shutdown a domain

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years ago[XEND] Better checking of shutdown of domain0.
kfraser@localhost.localdomain [Fri, 28 Jul 2006 16:35:39 +0000 (17:35 +0100)]
[XEND] Better checking of shutdown of domain0.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years ago[TPM] Remove some stale code from the TPM backend driver. The code
kfraser@localhost.localdomain [Fri, 28 Jul 2006 16:33:26 +0000 (17:33 +0100)]
[TPM] Remove some stale code from the TPM backend driver. The code
used to be used for sending of vTPM control commands, but now this is
all done with the hotplug scripts.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
18 years ago[LINUX] update_va_mapping multicalls: Use MULTI_UVMxxx_INDEX where possible.
kfraser@localhost.localdomain [Fri, 28 Jul 2006 16:25:20 +0000 (17:25 +0100)]
[LINUX] update_va_mapping multicalls: Use MULTI_UVMxxx_INDEX where possible.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years ago[PCI] Pcifront for ia64.
kfraser@localhost.localdomain [Fri, 28 Jul 2006 16:23:15 +0000 (17:23 +0100)]
[PCI] Pcifront for ia64.

Added in Kconfig.
On ia64, use ia64 sysdata instead of pcifront genuine one.
Fix a warning on xenbus.c

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
18 years ago[NET] front: Added feature-rx-notify
kfraser@localhost.localdomain [Fri, 28 Jul 2006 16:13:08 +0000 (17:13 +0100)]
[NET] front: Added feature-rx-notify

This patch adds support to the frontend for notifying the backend whenever
the rx ring is refilled.  This is required in order for the backend to
get a tx queue.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Modified to only send notification if req_event index is set
appropriately.

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[NET] back: Replace netif->status with netif_carrier_ok
kfraser@localhost.localdomain [Fri, 28 Jul 2006 16:04:55 +0000 (17:04 +0100)]
[NET] back: Replace netif->status with netif_carrier_ok

The connection status to the frontend can be represented using
netif_carrier_ok instead of netif->status.  As a result, we delay
the construction of the dev qdisc until the carrier comes on.  This
is a prerequisite for adding a tx queue.

By the same token, netif->active is now simply the conjunction of
netif_running and netif_carrier_ok so it too can be removed.

Because netif_carrier_off/netif_carrier_on and rtnl_lock all entail
memory barriers, there is no need to have extra memory barriers around
them.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
18 years ago[NET] front: Move rx req pushing to one spot
kfraser@localhost.localdomain [Fri, 28 Jul 2006 16:03:26 +0000 (17:03 +0100)]
[NET] front: Move rx req pushing to one spot

This patch moves all rx request pushing to network_alloc_rx_buffers.
This is needed to reduce churn for TSO.  More importantly, this makes
it easier to send notifications when adding rx requests which is
required for having a queue in dom0.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
18 years ago[NET] front: Clean up rx ring recovery.
kfraser@localhost.localdomain [Fri, 28 Jul 2006 16:00:10 +0000 (17:00 +0100)]
[NET] front: Clean up rx ring recovery.
Signed-off-by: Keir Fraser <keir@xensource.com>
This is an update to c/s
10855:03c8002068d9d60c7bbfc2f41af975e09b2e2211
which should have contained the following changeset message
(rather than 'Merge.').

[NET] front: Stop using rx->id

With the current protocol for transferring packets from dom0 to domU,
the
rx->id field is useless because it can be derived from the rx request
ring
ID.  In particular,

        rx->id = (ring_id & NET_RX_RING_SIZE - 1) + 1;

This formula works because the rx response to each request always
occupies
the same slot that the request arrived in.  This in turn is a
consequence
of the fact that each packet only occupies one slot.

The other important reason that this works for dom0=>domU but not
domU=>dom0
is that the resource associated with the rx->id is freed immediately
while
in the domU=>dom0 case the resource is held until the skb is liberated
by
dom0.

Using this formula we can essentially remove rx->id from the protocol,
freeing up space that could be instead be used by things like TSO.
The
only constraint is that the backend must obey the rule that each id
must
only be used in the response that occupies the same slot as the
request.

The actual field of rx->id is still maintained for compatibility with
older backends.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
18 years agoMerge.
kfraser@localhost.localdomain [Fri, 28 Jul 2006 15:54:17 +0000 (16:54 +0100)]
Merge.

18 years agoMerge.
kfraser@localhost.localdomain [Fri, 28 Jul 2006 15:53:58 +0000 (16:53 +0100)]
Merge.

18 years ago[IA64] Add missing empty files.
kfraser@localhost.localdomain [Fri, 28 Jul 2006 15:53:35 +0000 (16:53 +0100)]
[IA64] Add missing empty files.

18 years agoMerge.
sos22@douglas.cl.cam.ac.uk [Fri, 28 Jul 2006 13:09:05 +0000 (14:09 +0100)]
Merge.

18 years ago[MINI-OS] Add a function mapping grant table error codes to strings.
sos22@douglas.cl.cam.ac.uk [Fri, 28 Jul 2006 13:06:27 +0000 (14:06 +0100)]
[MINI-OS] Add a function mapping grant table error codes to strings.

Signed-off-by: John D. Ramsdell <ramsdell@mitre.org>
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
18 years ago[MINI-OS] Add evtchn_bind_interdomain to mini-os, allowing clients to
sos22@douglas.cl.cam.ac.uk [Fri, 28 Jul 2006 13:05:02 +0000 (14:05 +0100)]
[MINI-OS] Add evtchn_bind_interdomain to mini-os, allowing clients to
bind to interdomain event channels.

Signed-off-by: John D. Ramsdell <ramsdell@mitre.org>
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
18 years ago[MINI-OS] Extend alloc_unbound so that the remote domain isn't always dom0.
sos22@douglas.cl.cam.ac.uk [Fri, 28 Jul 2006 13:03:54 +0000 (14:03 +0100)]
[MINI-OS] Extend alloc_unbound so that the remote domain isn't always dom0.

Signed-off-by: John D. Ramsdell <ramsdell@mitre.org>
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
18 years ago[MINI-OS] Clean up event channel types in mini-os.
sos22@douglas.cl.cam.ac.uk [Fri, 28 Jul 2006 13:02:49 +0000 (14:02 +0100)]
[MINI-OS] Clean up event channel types in mini-os.

Signed-off-by: John D. Ramsdell <ramsdell@mitre.org>
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
18 years ago[LIBXC] Generic include of arch-specific sub-makefile.
kfraser@localhost.localdomain [Fri, 28 Jul 2006 13:00:57 +0000 (14:00 +0100)]
[LIBXC] Generic include of arch-specific sub-makefile.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[MINI-OS] unbind_virq is broken and nobody uses it. Remove it.
sos22@douglas.cl.cam.ac.uk [Fri, 28 Jul 2006 13:00:37 +0000 (14:00 +0100)]
[MINI-OS] unbind_virq is broken and nobody uses it.  Remove it.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
18 years ago[PCI] Basic documentation for the per-device permissive
kfraser@localhost.localdomain [Fri, 28 Jul 2006 12:00:57 +0000 (13:00 +0100)]
[PCI] Basic documentation for the per-device permissive
flag and the two policy files.  However, the general intent of this
patch set is to avoid the need for user interaction, so documentation
is somewhat sparse.

Signed-off-by: Chris Bookholt <hap10@tycho.ncsc.mil>
18 years ago[PCI] Two policy files written in what is intended to be human-readable SXP.
kfraser@localhost.localdomain [Fri, 28 Jul 2006 11:59:48 +0000 (12:59 +0100)]
[PCI] Two policy files written in what is intended to be human-readable SXP.

1. xend-pci-quirks.sxp:

Specifies which PCI device(s) may write to a set of PCI configuration
space registers.  A quirky PCI device is identified by its vendor ID,
device ID, subvendor ID, and subdevice ID.  If a matching entry is
found, the corresponding fields will be sent to the PCI bus manager.
Fields are composed of a register, size, and mask -- although the mask
field is currently unused.

The included policy file is for a range of tg3 devices, which is the
only type of quirky device I know about.  Users with other quirky
devices are invited to either add entries to this policy file or add
an entry in the permissive file, described next.  In either case, send an
email to the xen-devel list to make the device known.

2. xend-pci-permissive.sxp

Lists PCI devices that pciback should not prevent from writing to
their configuration space.  This can be necessary if, for example, a new
Tigon3 devices is released with different PCI vendor/device values
such that no entry in xend-pci-quirks.sxp is triggered.

Signed-off-by: Chris Bookholt <hap10@tycho.ncsc.mil>
18 years ago[PCI] xend parses the user-space PCI backend policy files and sends
kfraser@localhost.localdomain [Fri, 28 Jul 2006 11:57:55 +0000 (12:57 +0100)]
[PCI] xend parses the user-space PCI backend policy files and sends
the corresponding fields to the PCI bus manager via sysfs nodes:

/sys/bus/pci/drivers/pciback/quirks
/sys/bus/pci/drivers/pciback/permissive

xend reads the policy file every time it creates a new domain that was
assigned a PCI device.

Signed-off-by: Chris Bookholt <hap10@tycho.ncsc.mil>
18 years ago[PCI] Per-device permissive flag (replaces global permissive flag).
kfraser@localhost.localdomain [Fri, 28 Jul 2006 11:56:10 +0000 (12:56 +0100)]
[PCI] Per-device permissive flag (replaces global permissive flag).
Signed-off-by: Chris Bookholt <hap10@tycho.ncsc.mil>
18 years ago[PCI] Allow per-device configuration for fine-grained control over PCI
kfraser@localhost.localdomain [Fri, 28 Jul 2006 11:54:58 +0000 (12:54 +0100)]
[PCI] Allow per-device configuration for fine-grained control over PCI
configuration space writes, with a goal that was also previously
described by Ryan:

"Permissive mode should only be used as a fall back for unknown
devices.
I think the correct solution for dealing with these device-specific
configuration space registers is to identify them and add the
device-specific fields to the overlay. This patch adds a special
configuration space handler for network cards based on the tg3 linux
network device driver. This handler should allow for reads/writes to
all of the configuration space registers that the tg3 driver requires."

This patch attempts to address concerns with Ryan's original
submission by moving policy from the dom0 kernel into dom0 user-space.
As new quirky devices emerge they can be incorporated into the user-space
policy.  An added benefit is that changes to the policy are effective
for domains created after the changes are written (no need rebuild the
hypervisor or restart xend).

Signed-off-by: Chris Bookholt <hap10@tycho.ncsc.mil>
18 years ago[LINUX] Clean up reboot.c suspend handling.
kfraser@localhost.localdomain [Fri, 28 Jul 2006 10:10:08 +0000 (11:10 +0100)]
[LINUX] Clean up reboot.c suspend handling.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoMErge with xenppc-unstable-merge.hg
kfraser@localhost.localdomain [Fri, 28 Jul 2006 09:51:38 +0000 (10:51 +0100)]
MErge with xenppc-unstable-merge.hg

18 years agoMerge with xen-ia64-unstable.hg.
kfraser@localhost.localdomain [Fri, 28 Jul 2006 09:33:52 +0000 (10:33 +0100)]
Merge with xen-ia64-unstable.hg.
Remove changes to ioemu.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[qemu] Fix reads on unreported memory addresses.
chris@kneesaa.uk.xensource.com [Fri, 28 Jul 2006 09:12:23 +0000 (10:12 +0100)]
[qemu] Fix reads on unreported memory addresses.
The function cpu_physical_memory_rw() thinks that if an address is
not mmio-related, it is assumed to be a RAM case. This is improper.
When making the assumption, we should make sure the address is less
than the guest physical memory size ram_size.

From: Cui, Dexuan <dexuan.cui@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
18 years ago[powerpc] implement per-cpu data areas, based on x86 code
Hollis Blanchard [Thu, 27 Jul 2006 22:44:14 +0000 (17:44 -0500)]
[powerpc] implement per-cpu data areas, based on x86 code
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[powerpc] implement page_is_removable()
Hollis Blanchard [Thu, 27 Jul 2006 22:23:42 +0000 (17:23 -0500)]
[powerpc] implement page_is_removable()
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years agomerge with xen-unstable.hg
awilliam@xenbuild.aw [Thu, 27 Jul 2006 16:43:34 +0000 (10:43 -0600)]
merge with xen-unstable.hg

18 years ago[IA64] IO ports for driver domains.
awilliam@xenbuild.aw [Thu, 27 Jul 2006 16:00:00 +0000 (10:00 -0600)]
[IA64] IO ports for driver domains.

Map/unmap IO ports.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
18 years ago[IA64] warning fix
awilliam@xenbuild.aw [Thu, 27 Jul 2006 15:47:59 +0000 (09:47 -0600)]
[IA64] warning fix

unused variable removal

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
18 years ago[IA64] iomem support for driver domains.
awilliam@xenbuild.aw [Thu, 27 Jul 2006 15:47:10 +0000 (09:47 -0600)]
[IA64] iomem support for driver domains.

First steps in hypevisor to support driver domains.

IO ports capabilities added (not yet used).
IO mem capabilities checked.
ASSIGN_nocache flag added.
Memory attributes checked.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
18 years ago[IA64] include asm/vhpt.h in ivt.S
awilliam@xenbuild.aw [Thu, 27 Jul 2006 15:17:54 +0000 (09:17 -0600)]
[IA64] include asm/vhpt.h in ivt.S

Include asm/vhpt.h to define VHPT_GLOBAL and VHPT_ENABLED.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
18 years ago[IA64] remove a debug message
awilliam@xenbuild.aw [Thu, 27 Jul 2006 15:16:32 +0000 (09:16 -0600)]
[IA64] remove a debug message

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
18 years ago[IA64][qemu] add changes lost from xen-ia64 cset 10570
awilliam@xenbuild.aw [Thu, 27 Jul 2006 15:15:01 +0000 (09:15 -0600)]
[IA64][qemu] add changes lost from xen-ia64 cset 10570

This adds back changes from xen-ia64-unstable.hg cset:

10570:8dc4af3f192c7c1ef3cd6921196997b903d25add

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
18 years ago[IA64] Remove unused contig mem flag for VTi
awilliam@xenbuild.aw [Thu, 27 Jul 2006 14:47:39 +0000 (08:47 -0600)]
[IA64] Remove unused contig mem flag for VTi

Remove the confusing flag ARCH_VMX_CONTIG_MEM for VTi domain. And add a
flag ARCH_VMX_DOMAIN to ensure VMX_DOMAIN check on all vcpus.

Signed-off-by : Zhang xiantao <xiantao.zhang@intel.com>

18 years agoRevert previous changeset. Needs more review.
kfraser@localhost.localdomain [Thu, 27 Jul 2006 13:06:15 +0000 (14:06 +0100)]
Revert previous changeset. Needs more review.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[NET] back: Replace netif->active with netif_carrier_ok
kfraser@localhost.localdomain [Thu, 27 Jul 2006 12:52:02 +0000 (13:52 +0100)]
[NET] back: Replace netif->active with netif_carrier_ok

The connection status to the frontend can be represented using
netif_carrier_ok instead of netif->active.  As a result, we delay
the construction of the dev qdisc until the carrier comes on.  This
is a prerequisite for adding a tx queue.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
18 years ago[NET] back: Make use of the simplicity of tasklets in net_rx_action
kfraser@localhost.localdomain [Thu, 27 Jul 2006 12:34:09 +0000 (13:34 +0100)]
[NET] back: Make use of the simplicity of tasklets in net_rx_action

Tasklets have the property that each one is running on only one CPU at
any time.  This means that you don't have to worry about the tasklet
racing against itself.  Therefore any resources used by just a single
tasklet does not need to be guarded by locks.

Since net_rx_action is the only user of alloc_mfn, we can remove the
mfn_lock that guard it.

The notify_list array is huge by Linux standards so placing it on the
stack is unsafe.  Since net_rx_action is not re-entrant, we can simply
make it static.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
18 years ago[NET] front: Zero gso features/pad
kfraser@localhost.localdomain [Thu, 27 Jul 2006 12:32:29 +0000 (13:32 +0100)]
[NET] front: Zero gso features/pad

Set unused gso features/pad values to zero for forward-compatibility.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
18 years agoRemove unused definitions in xc_hvm_build.c.
kfraser@localhost.localdomain [Thu, 27 Jul 2006 12:19:28 +0000 (13:19 +0100)]
Remove unused definitions in xc_hvm_build.c.

Signed-off-by: Xin Li <xin.b.li@intel.com>
18 years agoClear MPT l2 entries when allocating monitor pagetable
kfraser@localhost.localdomain [Thu, 27 Jul 2006 12:18:36 +0000 (13:18 +0100)]
Clear MPT l2 entries when allocating monitor pagetable
Changeset 10734 removed the code clearing MPT l2 entries, however
these entries are stained when copying from idle_pg_table_l2.

Signed-off-by: Xin Li <xin.b.li@intel.com>
18 years agomap_p2m_entry only needs gpfn and gmfn as input parameters.
kfraser@localhost.localdomain [Thu, 27 Jul 2006 12:17:58 +0000 (13:17 +0100)]
map_p2m_entry only needs gpfn and gmfn as input parameters.
Current map_p2m_entry has a redundant input parameter 'va', this patch
removes it.

Signed-off-by: Xin Li <xin.b.li@intel.com>
18 years ago[IA64] Fix of C/S 10529:4260eb8c08740de0000081c61a6237ffcb95b2d5 for IA64.
kfraser@localhost.localdomain [Thu, 27 Jul 2006 12:17:17 +0000 (13:17 +0100)]
[IA64] Fix of C/S 10529:4260eb8c08740de0000081c61a6237ffcb95b2d5 for IA64.
When page is zapped from a domain, the page referenced counter
is checked. But it results in false positive alert on Xen/IA64
because a page 'in use' has reference count 2 on Xen/IA64.
- a page is assigned to guest domain's psudo physical address space.
  This is decremented by guest_physmap_remove_page()
- a page is allocated for a domain.
  This is decremented by the following put_page()

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
18 years ago[HVM][VMX] Fix injection of software exceptions (#BP,#OF)
kfraser@localhost.localdomain [Thu, 27 Jul 2006 12:05:33 +0000 (13:05 +0100)]
[HVM][VMX] Fix injection of software exceptions (#BP,#OF)
From: George Dunlap <dunlapg@umich.edu>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoBuild Xen with at least -O1 to avoid very large stack frames.
kfraser@localhost.localdomain [Thu, 27 Jul 2006 11:59:36 +0000 (12:59 +0100)]
Build Xen with at least -O1 to avoid very large stack frames.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[qemu] Fix -net tap option when no ifname is specified.
chris@kneesaa.uk.xensource.com [Thu, 27 Jul 2006 10:20:32 +0000 (11:20 +0100)]
[qemu] Fix -net tap option when no ifname is specified.
Uninitialized ifname can cause qemu to quit.  If the first character of the
ifname is not \0, qemu will think it's a valid ifname and configure
/dev/net/tun to use it.  The configuration fails and qemu exits.

Based on a patch from: Steve Dobbelstein <steved@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
18 years ago[qemu] Add missing vga_bios_init call.
chris@kneesaa.uk.xensource.com [Thu, 27 Jul 2006 10:12:04 +0000 (11:12 +0100)]
[qemu] Add missing vga_bios_init call.

From: Zhang, Xiantao <xiantao.zhang@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
18 years agomerge with xen-unstable.hg for tools/ioemu build fix
awilliam@xenbuild.aw [Wed, 26 Jul 2006 21:59:36 +0000 (15:59 -0600)]
merge with xen-unstable.hg for tools/ioemu build fix

18 years ago[qemu] Remove duplicate ia64 testandset implementation.
chris@kneesaa.uk.xensource.com [Wed, 26 Jul 2006 20:13:24 +0000 (21:13 +0100)]
[qemu] Remove duplicate ia64 testandset implementation.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
18 years ago[powerpc] more register information in the register dump.
Jimi Xenidis [Wed, 26 Jul 2006 18:25:07 +0000 (14:25 -0400)]
[powerpc] more register information in the register dump.

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
18 years ago[powerpc] domain building fixes for linux kexec model
Jimi Xenidis [Wed, 26 Jul 2006 18:24:09 +0000 (14:24 -0400)]
[powerpc] domain building fixes for linux kexec model
The following updates are included:
  - No stack allocation is necessary
  - Some buggy kernels require r13 to be zeroed
  - the DTB must be loaded from a fixed address, we are using
    "/root/DomU.dtb" until we have the tools build the DTB on their
    own.
  - Though we give the PFN of the store and console pages to the new
    domain we must make sure the MFN is given to the tools.

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
18 years agomerge with xen-unstable.hg
awilliam@xenbuild.aw [Wed, 26 Jul 2006 16:49:32 +0000 (10:49 -0600)]
merge with xen-unstable.hg

18 years ago[IA64] nasty bug fix
awilliam@xenbuild.aw [Wed, 26 Jul 2006 15:41:24 +0000 (09:41 -0600)]
[IA64] nasty bug fix

Bug fix: restore phys_addr field, because some other Xen
functions consider it as unused.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
18 years ago[IA64] linux without SMP
awilliam@xenbuild.aw [Wed, 26 Jul 2006 15:39:38 +0000 (09:39 -0600)]
[IA64] linux without SMP

Add #ifdef CONFIG_SMP so that linux can compile without SMP.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
18 years ago[IA64] live migration
awilliam@xenbuild.aw [Wed, 26 Jul 2006 15:36:36 +0000 (09:36 -0600)]
[IA64] live migration

Shadow mode and live migration.

Virtualize Dirty bit.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
18 years ago[IA64] increase buffer size in panic_domain().
awilliam@xenbuild.aw [Wed, 26 Jul 2006 15:02:43 +0000 (09:02 -0600)]
[IA64] increase buffer size in panic_domain().

128 bytes is too short.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
18 years ago[qemu] Initialize vga from within qemu for when the bios doesn't do so.
chris@kneesaa.uk.xensource.com [Wed, 26 Jul 2006 14:20:30 +0000 (15:20 +0100)]
[qemu] Initialize vga from within qemu for when the bios doesn't do so.
On xen/x86, vga bios is copied to 0xC0000 by guest firmware.
However on ia64 platform, native firmware depends on some
initialization vga state at power on and so does guest firmware.
That's why that vga bios initialization stub is required for vti
domain, to match platform requirement.

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
18 years ago[qemu] Add access to the monito vt over VNC.
chris@kneesaa.uk.xensource.com [Wed, 26 Jul 2006 13:52:47 +0000 (14:52 +0100)]
[qemu] Add access to the monito vt over VNC.
Recognize ctrl+alt+1/2/3 to switch among screens.

Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
18 years ago[qemu] sync patches and add file missing from cset 10738:42aa63188a88
chris@kneesaa.uk.xensource.com [Wed, 26 Jul 2006 13:38:00 +0000 (14:38 +0100)]
[qemu] sync patches and add file missing from cset 10738:42aa63188a88

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
18 years ago[qemu] Use domain-name in VNC window title.
chris@kneesaa.uk.xensource.com [Wed, 26 Jul 2006 13:26:03 +0000 (14:26 +0100)]
[qemu] Use domain-name in VNC window title.
Set the VNC window title with domain-name.

Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
18 years ago[qemu] Re-calculate color_table after color depth reset.
chris@kneesaa.uk.xensource.com [Wed, 26 Jul 2006 13:20:13 +0000 (14:20 +0100)]
[qemu] Re-calculate color_table after color depth reset.
VNC client may reset color depth after connection, so if we don't
re-calculate color_table, monitor/console's background is abnormal.

Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
18 years agoIA64-specific code for new Qemu
chris@kneesaa.uk.xensource.com [Wed, 26 Jul 2006 12:41:10 +0000 (13:41 +0100)]
IA64-specific code for new Qemu
Due to some ia64 patches aren't checked into xen-unstable.hg.
I reversed related logic.

Signed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
18 years agoRemove unnecessary include of linux/compiler.h in libxenstat.
kfraser@localhost.localdomain [Wed, 26 Jul 2006 12:36:13 +0000 (13:36 +0100)]
Remove unnecessary include of linux/compiler.h in libxenstat.
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
18 years ago[qemu] Fix HVM guests with more than 2G RAM on x86_64,
chris@kneesaa.uk.xensource.com [Wed, 26 Jul 2006 12:23:05 +0000 (13:23 +0100)]
[qemu] Fix HVM guests with more than 2G RAM on x86_64,
where "startx" will cause qemu dm to die.

Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
18 years agoFix cirrus and rt8139 co-exist issue in new qemu-dm.
chris@kneesaa.uk.xensource.com [Wed, 26 Jul 2006 10:47:44 +0000 (11:47 +0100)]
Fix cirrus and rt8139 co-exist issue in new qemu-dm.
The root cause is that if two MMIO spaces are continuous, qemu may misuse
last MMIO space's read/write to handle current request.

Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
18 years ago[HVM] Sync p2m table across all vcpus on x86_32p xen.
kfraser@localhost.localdomain [Wed, 26 Jul 2006 10:34:12 +0000 (11:34 +0100)]
[HVM] Sync p2m table across all vcpus on x86_32p xen.
We found VGA acceleration can not work on SMP VMX guests on x86_32p
xen, this is caused by the way we construct p2m table today: only the 1st
l2 page table slot that maps p2m table pages is copied to none-vcpu0 vcpu
monitor page table when VMX is created. But VGA acceleration will
create some p2m table entries beyond the 1st l2 page table slot after HVM is
created, so only vcpu0 can get these p2m entries, and other vcpu can
not do VGA acceleration.

Signed-off-by: Xin Li <xin.b.li@intel.com>
18 years ago[SVM] Correct compile time compare of CONFIG_PAGING_LEVELS for 64bit and
kfraser@localhost.localdomain [Wed, 26 Jul 2006 10:10:26 +0000 (11:10 +0100)]
[SVM] Correct compile time compare of CONFIG_PAGING_LEVELS for 64bit and
32bit PAE guests. This code affects accesses to the CR4 register by the SVM guest.

Signed-off-by: Tom Woller <thomas.woller@amd.com>
18 years agoAdd dependency on ncurses to main README.
kfraser@localhost.localdomain [Wed, 26 Jul 2006 09:52:14 +0000 (10:52 +0100)]
Add dependency on ncurses to main README.

18 years ago[LINUX] Disable configuration of ARCH_SPARSEMEM_ENABLE on x86/64.
kfraser@localhost.localdomain [Wed, 26 Jul 2006 09:08:13 +0000 (10:08 +0100)]
[LINUX] Disable configuration of ARCH_SPARSEMEM_ENABLE on x86/64.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[IA64] fix merge error with xen-unstable.hg
awilliam@xenbuild.aw [Tue, 25 Jul 2006 18:39:01 +0000 (12:39 -0600)]
[IA64] fix merge error with xen-unstable.hg

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
18 years ago[XEN] Increase debug stack size from 4kB to 8kB.
kfraser@localhost.localdomain [Tue, 25 Jul 2006 18:38:56 +0000 (19:38 +0100)]
[XEN] Increase debug stack size from 4kB to 8kB.
Also fix double-fault handlers.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agomerge with xen-unstable.hg
awilliam@xenbuild.aw [Tue, 25 Jul 2006 18:19:05 +0000 (12:19 -0600)]
merge with xen-unstable.hg

18 years agoFix Linux so that it does not set a timeout if there are no pending
kfraser@localhost.localdomain [Tue, 25 Jul 2006 16:01:49 +0000 (17:01 +0100)]
Fix Linux so that it does not set a timeout if there are no pending
timers. Fix Xen so that it does not immediately fire a timer event if
it sees a very long timeout -- sometimes this means that there are
no pending timers.

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[IA64] remove unnecessary panic_domain() declarations
awilliam@xenbuild.aw [Tue, 25 Jul 2006 15:51:50 +0000 (09:51 -0600)]
[IA64] remove unnecessary panic_domain() declarations

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
18 years ago[LINUX][NET] Add default ethtool get_link implementation to all
kfraser@localhost.localdomain [Tue, 25 Jul 2006 15:11:12 +0000 (16:11 +0100)]
[LINUX][NET] Add default ethtool get_link implementation to all
interfaces. Some management tools rely on this operation.

From: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoFix docs build after vtpm changes.
kaf24@firebug.cl.cam.ac.uk [Tue, 25 Jul 2006 15:03:12 +0000 (16:03 +0100)]
Fix docs build after vtpm changes.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[VTPM] Add a description for vTPM usage to the user docs.
kfraser@localhost.localdomain [Tue, 25 Jul 2006 15:00:19 +0000 (16:00 +0100)]
[VTPM] Add a description for vTPM usage to the user docs.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Signed-off-by: Vincent Scarlata <vincent.r.scarlata@intel.com>
18 years ago[LINUX] Improve single-page contiguous region creation/destruction
kfraser@localhost.localdomain [Tue, 25 Jul 2006 14:58:35 +0000 (15:58 +0100)]
[LINUX] Improve single-page contiguous region creation/destruction

Batch page table updates and fold TLB flush into last one, reducing
number of hypercalls made from ((# of pages) + 1) to just 1.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agoMove x86 perf counters declarations to asm-x86/perfc_defn.h
kfraser@localhost.localdomain [Tue, 25 Jul 2006 14:50:04 +0000 (15:50 +0100)]
Move x86 perf counters declarations to asm-x86/perfc_defn.h
Creates asm-ia64/perfc_defn.h (empty).
Includes asm/perfc_defn.h in xen/perfc_defn.h

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoAdd versioning info to xenstore library.
kfraser@localhost.localdomain [Tue, 25 Jul 2006 14:33:00 +0000 (15:33 +0100)]
Add versioning info to xenstore library.
From: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[NET] gso: Fix reversed error test in netif_tx_trylock
kfraser@localhost.localdomain [Tue, 25 Jul 2006 14:21:59 +0000 (15:21 +0100)]
[NET] gso: Fix reversed error test in netif_tx_trylock

Original changelog:

    [NET]: Fix reversed error test in netif_tx_trylock

    A non-zero return value indicates success from spin_trylock,
    not error.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
18 years agoFix memory allocation for IA64 guest on Xen-unstable.hg with new Qemu.
kfraser@localhost.localdomain [Tue, 25 Jul 2006 14:12:47 +0000 (15:12 +0100)]
Fix memory allocation for IA64 guest on Xen-unstable.hg with new Qemu.
After balloon drive ready, we can remove this line safely.

Signed-off-by:Zhang Xiantao <xiantao.zhang@intel.com>

18 years agoSplit networking GSO patch into base portion plus additions.
kfraser@localhost.localdomain [Tue, 25 Jul 2006 14:06:39 +0000 (15:06 +0100)]
Split networking GSO patch into base portion plus additions.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoMake ioemu targets more robust and make ioemu clean always succeed.
chris@kneesaa.uk.xensource.com [Tue, 25 Jul 2006 13:26:54 +0000 (14:26 +0100)]
Make ioemu targets more robust and make ioemu clean always succeed.

Based on a patch by: Alex Brett <Alex.Brett@xensource.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
18 years agoFix domid range check in xenmon.
kfraser@localhost.localdomain [Tue, 25 Jul 2006 10:53:29 +0000 (11:53 +0100)]
Fix domid range check in xenmon.
Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoWhen installing libblktap, symlinks should be made instead of using
kfraser@localhost.localdomain [Tue, 25 Jul 2006 10:41:45 +0000 (11:41 +0100)]
When installing libblktap, symlinks should be made instead of using
install on the symlinks (install will follow the symlink)

Signed-off-by: Jeremy Katz <katzj@redhat.com>