Commit Graph
10541 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk b4e4e56cb1 [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>
2006-06-29 14:25:35 +01:00
kaf24@firebug.cl.cam.ac.uk 0e349a1b9b [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>
2006-06-29 14:25:07 +01:00
kaf24@firebug.cl.cam.ac.uk a8fac23038 [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>
2006-06-29 14:22:56 +01:00
shand@kneesaa.uk.xensource.com b687b766ae 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>
2006-06-29 11:31:10 +01:00
shand@kneesaa.uk.xensource.com 11d2c32b35 Merge. 2006-06-29 11:20:46 +01:00
shand@kneesaa.uk.xensource.com 8692316a65 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>
2006-06-29 11:17:24 +01:00
emellor@leeni.uk.xensource.com ee590e6084 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>
2006-06-29 11:13:11 +01:00
kaf24@firebug.cl.cam.ac.uk 4a9f0032ae 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>
2006-06-29 10:48:07 +01:00
ack@localhost.localdomain af183516f3 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>
2006-06-28 21:51:01 +01:00
kaf24@firebug.cl.cam.ac.uk b9c06364b4 New /sys/hypervisor/uuid, containing this domain's UUID.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2006-06-28 21:03:25 +01:00
kaf24@firebug.cl.cam.ac.uk b7207e32e4 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>
2006-06-28 20:46:01 +01:00
kfraser@dhcp93.uk.xensource.com b5487780ac 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>
2006-06-28 18:17:41 +01:00
kfraser@dhcp93.uk.xensource.com d4cd47ef70 [LINUX] Export flush_tlb_page() to modules in i386-smp builds.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-28 17:56:34 +01:00
emellor@leeni.uk.xensource.com d199f1a927 More commented-out code, pending a solution to the xml.marshall.generic
problem.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-06-28 17:42:05 +01:00
emellor@leeni.uk.xensource.com efaa2aa3e3 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>
2006-06-28 17:36:38 +01:00
kaf24@firebug.cl.cam.ac.uk d36b2acb2b [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>
2006-06-28 16:22:38 +01:00
kaf24@firebug.cl.cam.ac.uk ea8fcd4e40 [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>
2006-06-28 16:21:30 +01:00
kaf24@firebug.cl.cam.ac.uk d22717c6c4 [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>
2006-06-28 16:20:29 +01:00
kfraser@dhcp93.uk.xensource.com 5de50eb18b [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>
2006-06-28 16:15:36 +01:00
emellor@leeni.uk.xensource.com bc6220c199 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>
2006-06-28 16:05:27 +01:00
kaf24@firebug.cl.cam.ac.uk f5ea9f8ba8 [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>
2006-06-28 13:59:29 +01:00
kaf24@firebug.cl.cam.ac.uk 38dbb81c1f [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>
2006-06-28 13:35:22 +01:00
kaf24@firebug.cl.cam.ac.uk 421afcd1c5 [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>
2006-06-28 12:04:32 +01:00
kaf24@firebug.cl.cam.ac.uk 2a3c1a46fd [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>
2006-06-28 12:03:57 +01:00
kaf24@firebug.cl.cam.ac.uk b42136412c [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>
2006-06-28 12:03:19 +01:00
kaf24@firebug.cl.cam.ac.uk f675a984a4 [NET]: Added GSO support
Imported GSO patch.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-06-28 12:03:01 +01:00
kfraser@dhcp93.uk.xensource.com a99e645031 [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>
2006-06-28 10:32:43 +01:00
kaf24@firebug.cl.cam.ac.uk 73e44d2f08 [XENTOP] Fix CPU percentage display in batch mode.
From: shaocyou <shaocyou@jp.fujitsu.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-28 10:24:05 +01:00
kaf24@firebug.cl.cam.ac.uk d3ecb7e352 [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>
2006-06-28 10:22:13 +01:00
kaf24@firebug.cl.cam.ac.uk 940d86e2e1 [HVM][SVM] Clean up double-fault handling.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-06-28 10:03:24 +01:00
kaf24@firebug.cl.cam.ac.uk 948d53a5dd [HVM][SVM] Disable machine check bits in CPUID_1.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-06-28 10:02:27 +01:00
kaf24@firebug.cl.cam.ac.uk af392d5957 [HVM][SVM] Clean up 32bit/64bit guest register code differences.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
2006-06-28 10:01:18 +01:00
kaf24@firebug.cl.cam.ac.uk a259718342 [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>
2006-06-27 18:24:08 +01:00
kaf24@firebug.cl.cam.ac.uk 499ef041a5 [LINUX][BLKBACK] Support temporary disconnection from frontend.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-27 18:08:46 +01:00
kaf24@firebug.cl.cam.ac.uk c8e79412c0 [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>
2006-06-27 15:38:32 +01:00
kfraser@dhcp93.uk.xensource.com 38ae18502a [XEN] Upgrade microcode driver to 1.14a.
Based on a patch from Jan Beulich.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-27 15:22:55 +01:00
kfraser@dhcp93.uk.xensource.com 8c01122785 [TOOLS] Remove plan9 loader code. Latest plan9 port uses linux builder.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-27 14:38:58 +01:00
kfraser@dhcp93.uk.xensource.com 64d2b4920b [XEN] Various cleanups to bitops usage.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-27 14:34:52 +01:00
kfraser@dhcp93.uk.xensource.com 60d78dbe14 [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>
2006-06-27 12:17:45 +01:00
kaf24@firebug.cl.cam.ac.uk ecb13a587e [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>
2006-06-27 12:03:46 +01:00
kaf24@firebug.cl.cam.ac.uk 956c0afa80 [BUILD] Add distclean build target to xen directory: cleans out tags.
Signed-off-by: Horms <horms@verge.net.au>
2006-06-27 11:50:57 +01:00
kaf24@firebug.cl.cam.ac.uk 3144ac0f72 [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>
2006-06-27 11:43:04 +01:00
kfraser@dhcp93.uk.xensource.com 4ab7b7d46e [XEN] Fix my change to XENVER_pagesize hypercall --
arg check wrong way round.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-27 11:35:29 +01:00
kaf24@firebug.cl.cam.ac.uk e1e21c589a [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>
2006-06-27 11:29:29 +01:00
kaf24@firebug.cl.cam.ac.uk a44d6f1d93 [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>
2006-06-27 11:27:25 +01:00
kaf24@firebug.cl.cam.ac.uk b9a9bc6e86 Add Xenoprof passive domain support
Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com>
Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
2006-06-27 11:23:06 +01:00
kaf24@firebug.cl.cam.ac.uk 78d2beff2c [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>
2006-06-27 11:17:14 +01:00
kaf24@firebug.cl.cam.ac.uk 110b2784a3 [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>
2006-06-27 11:15:48 +01:00
kaf24@firebug.cl.cam.ac.uk 0f9aad0de6 [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>
2006-06-27 11:14:19 +01:00
kaf24@firebug.cl.cam.ac.uk f8b88793c5 [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>
2006-06-27 11:13:24 +01:00