Commit Graph
12215 Commits
Author SHA1 Message Date
kfraser@localhost.localdomain a034a6ad0e Dynamically link to libgcc on Solaris. Also clean up duplicate -Wall flags.
Signed-off-by: John Levon <john.levon@sun.com>
2006-11-02 18:19:22 +00:00
kfraser@localhost.localdomain af7afdc2a1 [BLKTAP] Fix Linux and Xen gnttab map operations when mapping into
PTEs above 4GB on PAE systems.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
2006-11-02 18:18:19 +00:00
kfraser@localhost.localdomain 725cc28901 [HVM] Clean up VCPU initialisation in Xen. No longer
parse HVM e820 tables in Xen (add some extra HVM parameters as a
cleaner alternative). Lots of code removal.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-02 15:55:51 +00:00
Alastair Tse 147350e843 Merge with tip 2006-11-02 14:27:16 +00:00
Alastair Tse dfce37614d [XEND][XM] Fixes for xm list output
Do not output image, security if they are empty
Change xm list slightly to be more informative about state.
Add back store_mfn and console_mfn to the SXP so save/restore can work
again.


Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-02 14:26:01 +00:00
Steven Smith 16a9287054 [XEN] Better parameter checking for grant table copy operation.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-11-02 13:20:32 +00:00
Ian Campbell 680c789da1 PV-on-HVM: Conditionally disable checksum offload for receive on some
older kernels.

On some older kernels the CHECKSUM_UNNECESSARY flag on received
skbuffs is not honoured by all subsystems, specifically netfilter
under 2.6.9-42.EL

To work around this we need to ensure that the correct checksum is
calculated at some point. We can cause the backend to do this for us
by advertising to the backend that we cannot support checksum offload.

The correlation of this issue with the presence of NETIF_F_TSO is not
100% but it is a good first approximation.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-11-02 11:56:26 +00:00
Ian Campbell 4101fafcc0 PV-on-HVM: Tweak reboot.c to be compatible with older kernels.
call_usermodehelper_keys() was not available until 2.6.13 but since we
pass session_keyring as NULL we may as well use call_usermodehelper()
anyway.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-11-02 11:56:26 +00:00
Ian Campbell d8656aaa3e PV-on-HVM: Fix PV-on-HVM drivers for IA64.
Thanks to Kasai Takanori and Doi Tsunehisa for testing.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-11-02 11:56:26 +00:00
Ian Campbell 0d7658072a PV-on-HVM: Use ln -nsf in mkbuildtree to avoid creating a symlink loop
if include/xen/interfaces already exists.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-11-02 11:56:26 +00:00
kfraser@localhost.localdomain 7554501778 [TOOLS] Paravirt guests have their memory allocated in the
libxenguest builder function.

Again, PPC and IA64 will need to do some fixing up.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-02 11:11:28 +00:00
kaf24@firebug.cl.cam.ac.uk e935122cf5 [XEND] Compare result of blkdev_name_to_number() explicitly against None.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-02 07:46:06 +00:00
Emmanuel Ackaouy c62ecba43f [XEN] Fix credit scheduler cap mechanism not to over park VCPUs
We used to park a capped VCPU when it had ran its fair share, even
if the fair share was below its cap. With this change, make sure
we only park once a VCPU has overrun its actual cap.
We could also try to make the capping mechanism more accurate by
parking and unparking at a finer granularity (currently done on
30ms boundaries) but that'll be for a different time.
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
2006-11-01 19:44:34 +00:00
kfraser@localhost.localdomain 8f84664335 [XEN] Fix x86/64 build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-01 18:48:57 +00:00
Ewan Mellor c82aef9e98 Return the restored VM at the end of XendDomainInfo.restore.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-01 18:39:33 +00:00
kfraser@localhost.localdomain 8082f8f784 [HVM] Move shadow initialisation into domain-creation hypercall.
Allocate HVM guest memory in the libxc builder function rather
than in xend. Clean up fall out from these changes.

Todo: Fix ia64. Move PV builder to same model (it should allocate the
memory rather than xend doing so -- then it can avoid using
xc_get_pfn_list()).

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-01 18:37:23 +00:00
Ewan Mellor 8bdc427fa2 Print errno for each of the "Error when writing to state file" messages.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-01 18:32:45 +00:00
Ewan Mellor 58afddc807 Return the domain renaming during migration.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-01 18:20:23 +00:00
kfraser@localhost.localdomain 3f4c0e0087 [HVM] HVM is now a flag parameter to domain-creation hypercall.
This cleans up HVM start-of-day in Xen and means that the
HVM status of a domain is maintained from cradle to grave.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-01 16:08:19 +00:00
Ewan Mellor 54ab7bfb1a This patch adds a checking of wrong parameter into xm dmesg command.
If wrong parameter is given, xm dmesg command shows the following
error messages.

Error: No parameter required
Usage: xm dmesg [-c|--clear]

Read and/or clear Xend's message buffer.
  -c, --clear                    Clear dmesg buffer


Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-11-01 15:56:55 +00:00
Ewan Mellor 343c821d10 Fix comment.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-01 15:56:22 +00:00
Ewan Mellor 3c2c455c3b Add full flag to domain(domid), fixing xm list --long VM1.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-01 15:41:35 +00:00
Ewan Mellor cbdc70f049 Create /var/lib/xend/domains on startup if it doesn't exist.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-01 13:50:02 +00:00
kfraser@localhost.localdomain 7ffcc43b02 [XEN] Extend dom0_mem syntax to support min/max clamps.
dom0_mem=[min:<min_amt>,][max:<max_amt>,][<amt>]

<min_amt>: The minimum amount of memory which should be allocated for dom0.
<max_amt>: The maximum amount of memory which should be allocated for dom0.
<amt>:     The precise amount of memory to allocate for dom0.

Notes:
 1. <amt> is clamped from below by <min_amt> and from above by available
    memory and <max_amt>
 2. <min_amt> is clamped from above by available memory and <max_amt>
 3. <min_amt> is ignored if it is greater than <max_amt>
 4. If <amt> is not specified, it is calculated as follows:
    "All of memory is allocated to domain 0, minus 1/16th which is reserved
     for uses such as DMA buffers (the reservation is clamped to 128MB)."

Each value can be specified as positive or negative:
 If +ve: The specified amount is an absolute value.
 If -ve: The specified amount is subtracted from total available memory.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-01 11:18:29 +00:00
Ewan Mellor aeade7ad12 Merge.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-01 10:41:44 +00:00
Ewan Mellor fb2358c250 Merge xen-api.hg changeset 142:d75413e65ba319d577c764be6c13efa5eae6da1c.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-01 10:40:46 +00:00
Tim Deegan 3369945812 [XEN] Prefetch multiple shadow entries per pagefault
Also, clean up the shadow *_propagate/fault routines.
This allows us to quickly dispatch some guest-not-present faults
and most MMIO accesses without taking the shadow lock.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-11-01 10:31:11 +00:00
kfraser@localhost.localdomain 4861255f5c [XEN] Fix building on OpenBSD.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-01 10:02:00 +00:00
kfraser@localhost.localdomain a34ae4f0ce [XEN] Fix deadlock in printk().
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-01 09:55:43 +00:00
kfraser@localhost.localdomain 2004d63d13 Stop enforcing -g for some of the tools.
Signed-off-by: John Levon <john.levon@sun.com>
2006-10-31 18:24:57 +00:00
kfraser@localhost.localdomain f0d0046d31 [XEND] Improve error message for unparsed disk modes.
Signed-off-by: John Levon <john.levon@sun.com>
2006-10-31 18:24:44 +00:00
Tim Deegan 9e0d4d34f3 [HVM] Use correct types for guest physical addresses
Guest physical addresses are not guaranteed to fit in either a pointer
or an unsigned long int; use paddr_t for them.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-10-31 16:42:46 +00:00
kfraser@localhost.localdomain 342c7011f6 [HVM] Add support for 'add r8,m8' instruction to memory-mapped I/O.
Signed-off-by: Kevin Tronkowski <ktronkowski@virtualiron.com>
Signed-off-by: Ben Thomas <bthomas@virtualiron.com>
2006-10-31 16:22:39 +00:00
kfraser@localhost.localdomain 27c01325d4 [NET] front: Clean up error handling. This eliminates earlier
workaround patch for an observed crash.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-31 16:18:07 +00:00
kfraser@localhost.localdomain fc229c860b Clean up recent changes to reboot code. This fixes PV save/restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-31 15:54:03 +00:00
kfraser@localhost.localdomain e85c592548 Update .hgignore 2006-10-31 15:04:05 +00:00
kfraser@localhost.localdomain d138c1c2c1 [HVM] vlapic: Synchronously determine PPR register value whenevr it is needed.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-31 14:39:50 +00:00
kfraser@localhost.localdomain 779aa4f538 [VMX] Replace vmx_load_cr2() with direct write to %cr2.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-31 13:26:49 +00:00
kfraser@localhost.localdomain 883236e49a [HVM] ACPI: Clean up table definitions, move under hvmloader/
directory pending tighter integration of table generation
into hvmloader. This patch also includes the TPM TIS SSDT
generator from Stefan Berger at IBM.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-31 12:42:50 +00:00
Steven Smith 69ff2305bb Merge. 2006-10-31 11:44:47 +00:00
Steven Smith 80cc85d437 [XEN] Add a warning to the i8259 if we generate spurious IRQs. Tidy up
a little while I'm here.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-10-31 11:44:28 +00:00
Steven Smith 47132af16f [PV-ON-HVM] Don't generate lots of spurious interrupts when using event
channel upcalls.

The issue here was that the Xen platform PCI interrupt is only updated
when you return from the hypervisor into guest context, and so remained
asserted for a short interval after the interrupt handler ran.  If
it happened that the first subsequent trap to the hypervisor was
for unmasking the 8259 interrupt again, the unmasking caused the interrupt
to be reinjected.  This caused an edge on the chaining interrupt from
the slave PIC to the master.  The platform interrupt on the slave
would then be cleared as we returned to the guest, and so you
eventually end up injecting an interrupt on the master chained
interrupt with nothing pending on the slave, which shows up as
a spurious interrupt in the guest.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-10-31 11:38:55 +00:00
Steven Smith 937f23487a [NETFRONT] Make sure we don't crash if the backend goes to state
Closing before we have a chance to connect.  This can happen if
there's an error while connecting.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-10-31 11:31:34 +00:00
Steven Smith 98f201b0e5 Merge. 2006-10-31 10:12:35 +00:00
Steven Smith 111a11e5f5 [HVM][LINUX][TOOLS] Split control/reboot_module into control/feature-reboot
and control/feature-sysrq.  This is more consistent with the other
PV device protocols.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-10-31 10:11:53 +00:00
Emmanuel Ackaouy bcaf50a458 [XEN] Cleanup and optimize layout of credit scheduler stats.
Also carve out per VCPU stats for clarity and add per-VCPU
migration counter.
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
2006-10-31 10:10:17 +00:00
Steven Smith 65ae4fc8cd [HVM][LINUX][TOOLS] Make xm {shutdown|reboot} do something sensible for HVM
domains with PV drivers loaded.  This patch creates a new PV-on-HVM
module, reboot.ko, which, when loaded, creates control/reboot_module
in the store.  The tools notice this, and disable the watch which would
normally destroy HVM domains which are the target of an xm shutdown
command, allowing the reboot module to shut the domain down cleanly.

Signed-off-by: Tetsu Yamamoto <yamamoto.tetsu@jp.fujitsu.com>

(Checkin comments by Steven Smith <sos22@cam.ac.uk>)
2006-10-31 09:54:49 +00:00
kfraser@localhost.localdomain f99eaa7a3b [NET] back: Remove warning about non-zero tx queue length.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-31 09:49:31 +00:00
Emmanuel Ackaouy 87410b08dc [XEN] Cleanup and improve accuracy of credit scheduler accounting code
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
2006-10-30 17:35:11 +00:00
kfraser@localhost.localdomain 11b39cba56 [LINUX] Fix build breakage from previous patch.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-30 14:28:29 +00:00