kfraser@dhcp93.uk.xensource.com [Fri, 30 Jun 2006 12:25:43 +0000 (13:25 +0100)]
[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>
kfraser@dhcp93.uk.xensource.com [Fri, 30 Jun 2006 09:35:54 +0000 (10:35 +0100)]
[LINUX] Replace pagetable walks by simple address calculation.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@dhcp93.uk.xensource.com [Fri, 30 Jun 2006 09:24:14 +0000 (10:24 +0100)]
[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>
kaf24@firebug.cl.cam.ac.uk [Fri, 30 Jun 2006 09:16:12 +0000 (10:16 +0100)]
[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>
kaf24@firebug.cl.cam.ac.uk [Fri, 30 Jun 2006 09:14:36 +0000 (10:14 +0100)]
[TPM] Update the current virtual TPM documentation in misc/docs/vtpm.txt
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 30 Jun 2006 09:13:17 +0000 (10:13 +0100)]
[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>
kaf24@firebug.cl.cam.ac.uk [Fri, 30 Jun 2006 09:10:39 +0000 (10:10 +0100)]
Use explicit accessors to handle unusually-sized atomic operations in grant table code.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 30 Jun 2006 09:07:38 +0000 (10:07 +0100)]
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>
kfraser@dhcp93.uk.xensource.com [Fri, 30 Jun 2006 09:04:22 +0000 (10:04 +0100)]
[NET]: Remove gso.segs field from netif protocol.
From: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 30 Jun 2006 08:52:04 +0000 (09:52 +0100)]
[NET]: Add net-tso.patch
This patch has been submitted upstream for review. It resets gso_segs for
TSO.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
kaf24@firebug.cl.cam.ac.uk [Fri, 30 Jun 2006 08:51:02 +0000 (09:51 +0100)]
[XM] Remove unused imports.
From: Kazuo Moriwaka <moriwaka@gmail.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 30 Jun 2006 08:43:08 +0000 (09:43 +0100)]
[BLK] back: Clean up sysfs-interfacing code to use VBD_SHOW macro where possible.
Signed-off-by: Satoshi UCHIDA <s-uchida@ap.jp.nec.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 30 Jun 2006 08:25:42 +0000 (09:25 +0100)]
[XENTOP]Add VBD information.
Display VBD information at xentop.
By put 'x' key, display each VBD information in detail.
Signed-off-by: Satoshi UCHIDA <s-uchida@ap.jp.nec.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 30 Jun 2006 08:20:22 +0000 (09:20 +0100)]
[XENSTAT]Add VBD information structure.
Import VBD information from sysfs.
Signed-off-by: Satoshi UCHIDA <s-uchida@ap.jp.nec.com>
chris@kneesaa.uk.xensource.com [Thu, 29 Jun 2006 19:28:21 +0000 (20:28 +0100)]
Fix build - _XEN_NETIF_EXTRA_FLAG_MORE not _XEN_NETIF_EXTRA_MORE
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
kfraser@dhcp93.uk.xensource.com [Thu, 29 Jun 2006 18:34:16 +0000 (19:34 +0100)]
[NET] front: Transmit TSO packets if supported
This patch adds TSO transmission support to the frontend.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@dhcp93.uk.xensource.com [Thu, 29 Jun 2006 18:33:53 +0000 (19:33 +0100)]
[NET] back: build fixes.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@dhcp93.uk.xensource.com [Thu, 29 Jun 2006 18:02:45 +0000 (19:02 +0100)]
[NET] More net protocol and GSO changes.
From: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@dhcp93.uk.xensource.com [Thu, 29 Jun 2006 15:59:47 +0000 (16:59 +0100)]
[XEN] Fix the timeout workaround so it doesn't capture negative
diffs relative to current time.
Signed-off-by: Keir Fraser <keir@xensource.com>
shand@kneesaa.uk.xensource.com [Thu, 29 Jun 2006 14:02:38 +0000 (15:02 +0100)]
[LINUX] When ballooning out (returning memory to xen), don't try too hard
to allocate pages - this reduces the chance of the oom killer being invoked.
Signed-off-by: Steven Hand <steven@xensource.com>
ack@localhost.localdomain [Thu, 29 Jun 2006 13:49:41 +0000 (14:49 +0100)]
Merge
ack@localhost.localdomain [Thu, 29 Jun 2006 13:39:07 +0000 (14:39 +0100)]
Replace my previous patch with equivalent fix from linux-2.6.17.
Might as well stay as close to that as we can...
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 29 Jun 2006 13:38:39 +0000 (14:38 +0100)]
Revert 10534 (xm subcommands for ACM). Doesn't work when ACM disabled.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 29 Jun 2006 13:37:32 +0000 (14:37 +0100)]
Define an architecture-specific 'long' type for ABI compatibility.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 29 Jun 2006 13:30:41 +0000 (14:30 +0100)]
Add Xenoprof passive domain support (missing file).
Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com>
Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 29 Jun 2006 13:25:35 +0000 (14:25 +0100)]
[XM] When two or more domain parameters are given, the xm reboot
command doesn't give a command error. This problem is also
included in the xm shutdown command.
This patch checks on domain parameter. If two or more domain
parameters are given, the command error occurs.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 29 Jun 2006 13:25:07 +0000 (14:25 +0100)]
[XM] Fix argument check of the xm reboot command.
Maximum argument of the xm reboot command is three.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 29 Jun 2006 13:22:56 +0000 (14:22 +0100)]
[XEN] Work around timeout bug in old Linux kernels where
timeout would erroneously be set far out in the future.
Signed-off-by: Keir Fraser <keir@xensource.com>
shand@kneesaa.uk.xensource.com [Thu, 29 Jun 2006 10:31:10 +0000 (11:31 +0100)]
Fail save if we have an out-of-sync P2M/M2P (since otherwise the restore
will fail later).
A better fix would be to tolerate temporary out-of-sync situations so we
can make a nicer fix to the kunmap_atomic() iossue (c/f -unstable csets
10529 & 10533) but this requires some more thought.
Signed-off-by: Steven Hand <steven@xensource.com>
shand@kneesaa.uk.xensource.com [Thu, 29 Jun 2006 10:20:46 +0000 (11:20 +0100)]
Merge.
shand@kneesaa.uk.xensource.com [Thu, 29 Jun 2006 10:17:24 +0000 (11:17 +0100)]
Use a static page for the frame_list in the balloon driver.
Simplifies code and robustifies against oom situations.
Signed-off-by: Steven Hand <steven@xensource.com>
emellor@leeni.uk.xensource.com [Thu, 29 Jun 2006 10:13:11 +0000 (11:13 +0100)]
Replace changesets 10521, 10526, and 10527 with this new version that does not
use xml.marshal.
This patch adds new xm subcommands to support working with resource
labels. The new subcommands are 'xm resources', 'xm rmlabel', 'xm
getlabel' and 'xm dry-run'. In addition, the 'xm addlabel' subcommand
now uses an updated syntax to support labeling both domains and
resources. See the xm man page for details on each subcommand.
Beyond the new subcommands, this patch allows users to immediately see
when security checks will fail by pushing some basic security checking
into the beginning of 'xm create' and 'xm block-attach'. ACM security
attributes for block devices are added to XenStore in order to support
the final security enforcement, which will be performed in the kernel
and included in a separate patch.
Signed-off-by: Bryan D. Payne <bdpayne@us.ibm.com>
Signed-off-by: Reiner Sailer <sailer@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 29 Jun 2006 09:48:07 +0000 (10:48 +0100)]
Fix the kunmap_atomic() change in 10529:
4260eb8c08740de0000081c61a6237ffcb95b2d5.
Mustn't zap the PTE if the virtual address is not in kmap_atomic range!
Signed-off-by: Keir Fraser <keir@xensource.com>
ack@localhost.localdomain [Wed, 28 Jun 2006 20:51:01 +0000 (21:51 +0100)]
Fix next_timer_interrupt() in patch and update caller
to deal with the case of existing pending timers.
Fixes a dom0 hang at boot time on some HPs where some
dubious USB code is invoked from pci_init() that
potentially calls msleep(10) a few times.
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 28 Jun 2006 20:03:25 +0000 (21:03 +0100)]
New /sys/hypervisor/uuid, containing this domain's UUID.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 28 Jun 2006 19:46:01 +0000 (20:46 +0100)]
Use address types in elf parser that match elf headers.
Necessary if a long is a different size to addresses in elf
file being parsed.
From: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@dhcp93.uk.xensource.com [Wed, 28 Jun 2006 17:17:41 +0000 (18:17 +0100)]
kunmap_atomic() must zap the PTE to avoid dangling references
when attempting to free memory back to Xen. We can implement
something more efficient in future.
Also add debug print message if guest tries to free 'in use'
memory. We'll make it a real guest-visible error in future.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@dhcp93.uk.xensource.com [Wed, 28 Jun 2006 16:56:34 +0000 (17:56 +0100)]
[LINUX] Export flush_tlb_page() to modules in i386-smp builds.
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@leeni.uk.xensource.com [Wed, 28 Jun 2006 16:42:05 +0000 (17:42 +0100)]
More commented-out code, pending a solution to the xml.marshall.generic
problem.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Wed, 28 Jun 2006 16:36:38 +0000 (17:36 +0100)]
Comment out the load of the resource label file, pending a solution to the
problem that we now require xml.marshal.generic.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 28 Jun 2006 15:22:38 +0000 (16:22 +0100)]
[TPM] Add 3 more test cases to the xm testsuite that extend the
state of a PCR register and test that the value remains the same during
a suspend/resume cycle and during live and non-live local migration.
The patch adapts existing tests to the changes in the driver (moving of
the sysfs entry). Some problems with existing tests are fixed.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 28 Jun 2006 15:21:30 +0000 (16:21 +0100)]
[TPM] Add an upgrade patch to bring TPM subsystem to 2.6.17-rc4.
This patch adds the updated and newer driver plugins appearing in
2.6.17-rc4 to the 2.6.16.13 kernel. The patch needs to be placed into
the patches/linux-2.6.16.13 directory and should be removed once an
upgrade is done to 2.6.17-rc4 or later version.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 28 Jun 2006 15:20:29 +0000 (16:20 +0100)]
[TPM] Update the TPM drivers in the repository to a newer version
and also fixes the following:
- a problem introduced by a recent change to the xenbus_driver structure
requires driver-specific data to be stored in another data structures
- removes the #define'd MIN by min/min_t
- moves the sysfs entry to /sys/devices/xen/<vtpm-%d>
- fixes a bug occurring during cancellation of requests
- updates the default configuration to also compile the TPM V1.2 driver
submitted in part 2 of this patch
- all changes made to the generic TPM driver are surrounded by #ifdef
CONFIG_XEN's.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kfraser@dhcp93.uk.xensource.com [Wed, 28 Jun 2006 15:15:36 +0000 (16:15 +0100)]
[XEN] BUG() places console in sync mode.
Also move the BUG code out of line.
Original patch from Jimi Xenidis.
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@leeni.uk.xensource.com [Wed, 28 Jun 2006 15:05:27 +0000 (16:05 +0100)]
This patch adds new xm subcommands to support working with resource
labels. The new subcommands are 'xm resources', 'xm rmlabel', 'xm
getlabel' and 'xm dry-run'. In addition, the 'xm addlabel' subcommand
now uses an updated syntax to support labeling both domains and
resources. See the xm man page for details on each subcommand.
Beyond the new subcommands, this patch allows users to immediately see
when security checks will fail by pushing some basic security checking
into the beginning of 'xm create' and 'xm block-attach'. ACM security
attributes for block devices are added to XenStore in order to support
the final security enforcement, which will be performed in the kernel
and included in a separate patch.
Signed-off-by: Bryan D. Payne <bdpayne@us.ibm.com>
Signed-off-by: Reiner Sailer <sailer@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 28 Jun 2006 12:59:29 +0000 (13:59 +0100)]
[HVM][Firmware] Make the creation of MP tables more dynamic
Currently the ROMBIOS includes static MP tables for only four
configurations: 1-way, 2-way, 4-way, and 8-way.
This patch makes the creation of MP tables more dynamic by creating them
from within HVMLOADER based upon the VCPU number provided by the HVM
information table.
Note: Some of the information included used to create the MP tables is
still hard coded and based upon values used in the original ROMBIOS MP
tables. Data such as the CPU family/model/stepping information should
probably be made to match the information provided to the guest when
executing a CPUID.
Signed-off-by: Travis Betak <travis.betak@amd.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 28 Jun 2006 12:35:22 +0000 (13:35 +0100)]
[XEND] Have the parent id logged in the log file, this is very useful when
debugging xend as it has multiple processes, and it can be hard to
work out which one is doing what without this information.
Signed-Off-By: Horms <horms@verge.net.au>
kaf24@firebug.cl.cam.ac.uk [Wed, 28 Jun 2006 11:04:32 +0000 (12:04 +0100)]
[NET] back: Add TSO support
This patch adds TCP Segmentation Offload (TSO) support to the backend.
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.
The extra request slot must not be generated if the backend does not
support the appropriate feature bits. For now this is simply feature-tso.
If the frontend detects the presence of the appropriate feature bits,
it may generate TX requests which have the appropriate request flags
set that indicates the presence of an extra request slot with the extra
information.
On the backend the extra request slot is read if and only if the request
flags are set in the TX request.
This protocol allows more feature bits to be added in future without
breaking compatibility. At least the hardware checksum bit is planned.
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>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 28 Jun 2006 11:03:57 +0000 (12:03 +0100)]
[NET] loopback: Added support for TSO
Just like SG, TSO support here is innate. So all we need to do is mark it
as such. This patch also adds the ethtool control functions for SG.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
kaf24@firebug.cl.cam.ac.uk [Wed, 28 Jun 2006 11:03:19 +0000 (12:03 +0100)]
[NET]: Give make_tx_response the req pointer instead of id
This patch changes the make_tx_response id argument to a request pointer
instead. This allows us to test the request flag in future for TSO.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
kaf24@firebug.cl.cam.ac.uk [Wed, 28 Jun 2006 11:03:01 +0000 (12:03 +0100)]
[NET]: Added GSO support
Imported GSO patch.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
kfraser@dhcp93.uk.xensource.com [Wed, 28 Jun 2006 09:32:43 +0000 (10:32 +0100)]
[BLKBACK] Output statistics to sysfs.
The location is 'statistics' directory under each VBD directory, for
example, /sys/devices/xen-backend/vbd-x-xxxx/statistics.
The 'statistics' directory includes the following three statistical
information:
oo_req
is the number of requests held up due to full pipeline.
rd_req
is the number of processed READ requests.
wr_req
is the number of processed WRITE requests.
Signed-off-by: Satoshi UCHIDA <s-uchida@ap.jp.nec.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 28 Jun 2006 09:24:05 +0000 (10:24 +0100)]
[XENTOP] Fix CPU percentage display in batch mode.
From: shaocyou <shaocyou@jp.fujitsu.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 28 Jun 2006 09:22:13 +0000 (10:22 +0100)]
[XENTOP] Adds batch mode processing option (output to stdout)
to the xentop utility. It also adds the ability to specify the
number of iterations xentop should produce before exiting.
a) xentop -b
will output to stdout.
b) xentop -i <number>
will iterate <number> times and exit (option "n" is already used by
xentop. Hence the choice of "i"). This option can be used for both the
curses and batch modes.
From: Hariprasad Nellitheertha <mlisthari@gmail.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 28 Jun 2006 09:03:24 +0000 (10:03 +0100)]
[HVM][SVM] Clean up double-fault handling.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 28 Jun 2006 09:02:27 +0000 (10:02 +0100)]
[HVM][SVM] Disable machine check bits in CPUID_1.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 28 Jun 2006 09:01:18 +0000 (10:01 +0100)]
[HVM][SVM] Clean up 32bit/64bit guest register code differences.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 17:24:08 +0000 (18:24 +0100)]
[LINUX] Fix a few compile warnings and memory leaks in the sysfs driver.
Also clean up the general allocate-call-free idiom that is used
throughout the file.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 17:08:46 +0000 (18:08 +0100)]
[LINUX][BLKBACK] Support temporary disconnection from frontend.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 14:38:32 +0000 (15:38 +0100)]
[HVM] Fix virtual apic irq distribution.
But currently we inject PIT irqs to cpu0 only. Also mute some warning
messages.
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@dhcp93.uk.xensource.com [Tue, 27 Jun 2006 14:22:55 +0000 (15:22 +0100)]
[XEN] Upgrade microcode driver to 1.14a.
Based on a patch from Jan Beulich.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@dhcp93.uk.xensource.com [Tue, 27 Jun 2006 13:38:58 +0000 (14:38 +0100)]
[TOOLS] Remove plan9 loader code. Latest plan9 port uses linux builder.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@dhcp93.uk.xensource.com [Tue, 27 Jun 2006 13:34:52 +0000 (14:34 +0100)]
[XEN] Various cleanups to bitops usage.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@dhcp93.uk.xensource.com [Tue, 27 Jun 2006 11:17:45 +0000 (12:17 +0100)]
[LINUX] Allow dma_alloc_coherent() to work for regions up to 2MB.
The previous limit of 0.5MB was insufficient for some drivers
(e.g., when loading firmware).
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 11:03:46 +0000 (12:03 +0100)]
[BALLOON] Make the domain0 ballooning logic in xend aware of pages that are on the page scrub list.
This fixes the case where crashing/restarting a domain can cause dom0 to balloon more than
necessary.
I changed the physinfo dictionary in Python to be in KiB, rather than
MiB, to avoid accumulating ugly rounding errors. I tried to avoid
changing units anywhere else.
Signed-off-by: Charles Coffing <ccoffing@novell.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 10:50:57 +0000 (11:50 +0100)]
[BUILD] Add distclean build target to xen directory: cleans out tags.
Signed-off-by: Horms <horms@verge.net.au>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 10:43:04 +0000 (11:43 +0100)]
[BALLOON] Add fallback code so that e.g. a domain ballooned too far down can still
(slowly) recover.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@dhcp93.uk.xensource.com [Tue, 27 Jun 2006 10:35:29 +0000 (11:35 +0100)]
[XEN] Fix my change to XENVER_pagesize hypercall --
arg check wrong way round.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 10:29:29 +0000 (11:29 +0100)]
[TPM] Fix an occasional problem when doing local migration due to the xenstore's
'instance' variable not being initialized at the time when it's driver
counterpart is accessed. That variable's content was used to initialize the
tpmif structure. Instead, now a pointer to the structure is passed whose
'instance' variable will be initialized before the domain is resumed.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 10:27:25 +0000 (11:27 +0100)]
[XEN][BUILD] Both ctags and etags support the -a (append) option, and
by removing the tags or TAGS file, and then running using the
-a option in conjunction with xargs a full list of tags will
be obtained, regardless of how many files there are.
I believe that the existing invocations of both etags and ctags are wrong:
* I don't think - is a vailid argument to etags
* xargs ctags does not handle the case where ctags is invoked
multiple times by xargs when there are too many files
to fit on one command line.
Signed-off-by: Horms <horms@verge.net.au>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 10:23:06 +0000 (11:23 +0100)]
Add Xenoprof passive domain support
Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com>
Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 10:17:14 +0000 (11:17 +0100)]
[HVM][SVM] move printk pin msg under an "if svm_dbg_on" conditional to
alleviate excessive printing of messages when vcpu pinned to new core.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 10:15:48 +0000 (11:15 +0100)]
[VTPM_TOOLS] Hotplug script enabled the vtpm manager and removed the
control messages from the BE.
Signed-off-by: Vincent Scarlata <vincent.r.scarlata@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 10:14:19 +0000 (11:14 +0100)]
[VTPM_TOOLS] Updated vtpmd to save complete state in preperateion to
support suspend/resume and migration. Fixed startup bug.
Signed-off-by: Vincent Scarlata <vincent.r.scarlata@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 10:13:24 +0000 (11:13 +0100)]
[VTPM_TOOLS] Moved the developement tpm_emulator down to ring 3, which
should make debugging easier as well as fix the emulator for x86_64
Signed-off-by: Vincent Scarlata <vincent.r.scarlata@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 10:05:39 +0000 (11:05 +0100)]
[TOOLS] Fix cm argument processing some more:
1. Remove has_long_option() and add arg_check_for_resource_list()
instead.
2. 'args' tells 'options' from 'params' by using gnu_getopt().
3. 'options' checks whether -l/--long option is specified.
4. If 'params' not given, print out 'No domain parameter given'
and usage.
5. If 'params' given multiple domains, print out
'No multiple domain parameters allowed' and usage.
6. Then it displays the resources as usual.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 09:44:33 +0000 (10:44 +0100)]
Add XENVER_pagesize hypercall.
Make xen pagesize available through xm info and sysfs.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
kfraser@dhcp93.uk.xensource.com [Tue, 27 Jun 2006 09:36:51 +0000 (10:36 +0100)]
[XEN][EMUL] x86 emulator should support 32-bit offsets in real mode.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 08:54:05 +0000 (09:54 +0100)]
[HVM][VMX] On a VMEXIT, 'dirty' the DR. Restore DR from vcpu struct,
disable DR exiting (i.e., enable guest DR access), set VCPUF_dr_dirtied.
Remove "emulated" DR access, which only read and wrote to the debug register
values of the context, but not to the actual hardware values themselves.
Signed-off-by: George Dunlap <dunlapg@umich.edu>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 08:51:18 +0000 (09:51 +0100)]
[HVM][VMX] Added flag_dr_dirty to hvm vcpu struct. If this flag is set,
save the debug registers, clear the flag, and remove guest access to
debug registers.
Signed-off-by: George Dunlap <dunlapg@umich.edu>
Signed-off-by: Nitin Kamble <nitin.a.kamble@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 08:48:23 +0000 (09:48 +0100)]
[HVM][VMX] Added dr restore if breakpoints are enabled in guest dr7.
Signed-off-by: George Dunlap <dunlapg@umich.edu>
Signed-off-by: Nitin Kamble <nitin.a.kamble@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 08:41:09 +0000 (09:41 +0100)]
[HVM][VMX] Safer treatment of VM_EXEC_CONTROL when dealing w/ PENDING_INTERRUPT vmexit.
Signed-off-by: George Dunlap <dunlapg@umich.edu>
kaf24@firebug.cl.cam.ac.uk [Tue, 27 Jun 2006 08:33:35 +0000 (09:33 +0100)]
[HVM][VMX] Propagate debug exception to guest if no external debugger is enabled.
Signed-off-by: George Dunlap <dunlapg@umich.edu>
emellor@leeni.uk.xensource.com [Sat, 24 Jun 2006 22:44:18 +0000 (23:44 +0100)]
Some fine-tuning in the virtual TPM scripts for hotpluging. The changes
enable a virtual TPM to save its state between reboots of the virtual
TPM implementation.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Signed-off-by: Vincent Scarlata <vincent.r.scarlata@intel.com>
emellor@leeni.uk.xensource.com [Sat, 24 Jun 2006 22:39:05 +0000 (23:39 +0100)]
Increases the retry limit to allow xend more time before issuing a balloon
error. This fixes bug #683.
Signed-off-by: Susan Krysan <krysans@unisys.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 22 Jun 2006 20:37:33 +0000 (21:37 +0100)]
[TOOLS] Fix set_bit/clear bit for x86/64 in xc_linux_save
From: John Byrne <john.l.byrne@hp.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 22 Jun 2006 20:30:51 +0000 (21:30 +0100)]
[XM-TEST] Remove second console attach in 03_memset_random_pos
Signed-off-by: Jim Dykman <dykman@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 22 Jun 2006 14:25:18 +0000 (15:25 +0100)]
[VMX] Fix use of VMCLEAR a little: no need if not active on any CPU.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 22 Jun 2006 14:10:48 +0000 (15:10 +0100)]
[TOOLS] Make sure to explicitly close the connection if we're using HTTP/1.0. This
shouldn't be needed but it appears to be necessary as the Python client
just does a wfile.read() instead of only reading the reported Content-Length.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 22 Jun 2006 14:09:48 +0000 (15:09 +0100)]
[TOOLS] Treat '--' command-line split option correctly.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 22 Jun 2006 13:12:01 +0000 (14:12 +0100)]
[TOOLS] Fix pagetable-pinning loop in xc_linux_restore.
Previously it would not pin last PFN in physmap even if it was
a pagetable page.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 21 Jun 2006 16:09:14 +0000 (17:09 +0100)]
[XEN] localtime support for paravirtualized guests
It is quite minimal
in its approach, satisfying the purposes of the paravirtualized
NetWare operating system as well as any others that expect the time
base to be provided in localtime.
Signed-off-by: Bruce Rogers <brogers@novell.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 21 Jun 2006 15:55:25 +0000 (16:55 +0100)]
[LINUX][TPM] Use min_t/min instead of the #define'd MIN.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 21 Jun 2006 15:54:09 +0000 (16:54 +0100)]
[LINUX] Transparent virtualization fixes.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
kaf24@firebug.cl.cam.ac.uk [Wed, 21 Jun 2006 09:56:20 +0000 (10:56 +0100)]
[IA64] stub to support dump_execution_state() on ia64
Also implement on_selected_cpus() for ia64.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 20 Jun 2006 17:51:46 +0000 (18:51 +0100)]
[XEN] Xen always relinquishes VGA console to domain0 when domain0
starts to boot (previous behaviour looked for console=tty0 on
dom0's command line). To prevent this 'console=vga[keep]' must
be specified.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 20 Jun 2006 17:28:41 +0000 (18:28 +0100)]
[XEN] Fix to previous changeset: continue to do softirq while delaying.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 20 Jun 2006 17:19:07 +0000 (18:19 +0100)]
[XEN] Add a warning banner when 'sync_console' is used. Make it
very obvious and mildly annoying.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 20 Jun 2006 16:04:13 +0000 (17:04 +0100)]
[XEN] Fix PAE PDPT shadowing coherence.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@dhcp93.uk.xensource.com [Tue, 20 Jun 2006 13:45:46 +0000 (14:45 +0100)]
Add new XENMEM_machphys_mapping to get info about location and
sizeof of the mach2phys table default mapping. Use this in Linux to
dynamically adapt the mfn_to_pfn() routine to undelrying hypervisor.
Signed-off-by: Keir Fraser <keir@xensource.com>