Commit Graph
8119 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk c235fe27ec Fix serial pty creation in qemu-dm. Set raw attributes to
avoid weird buffering behaviour and obtain the pty name
via ptsname().

Signed-off-by: Ping Yu <ping.y.yu@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-30 12:32:16 +01:00
kaf24@firebug.cl.cam.ac.uk a5b0f465c5 We need to do sync when mov_to_cr3 to a value already shadowed.
The L2 page and already shadowed L1 page may be out of sync.
This fixes the problems of segmentation faults and strange prints
when booting Redhat FC3 and make kernel in FC3 in VMX domain.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
2005-11-30 12:16:35 +01:00
kaf24@firebug.cl.cam.ac.uk c52334688d Add ATA-over-Ethernet as a module to the default 32-bit -xen config
(it is already included in the default 64-bit -xen config).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-30 12:13:53 +01:00
kaf24@firebug.cl.cam.ac.uk effc516f0d domain_pause duplicates the code from vcpu_pause. Eliminate the
duplicate code and make domain_pause a mirror of the existing
domain_unpause.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2005-11-30 12:10:34 +01:00
kaf24@firebug.cl.cam.ac.uk 4b3fd3a9f3 Removes the carriage returns from some of the vtpm
source files that were edited in windows at some point.

Signed-off-by: Vinnie Scarlata <vincent.r.scarlata@intel.com>
2005-11-30 12:07:28 +01:00
kaf24@firebug.cl.cam.ac.uk af9e4ad732 writable_pl1e in shadow mode is a machine address, so
is type physaddr_t, not unsigned long.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-30 11:36:57 +01:00
smh22@firebug.cl.cam.ac.uk bb6d2f8575 Disable some over-zealous sanity checking for now (can cause major problems
with live migration to localhost). A proper fix will follow. 

Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-29 17:59:03 +01:00
smh22@firebug.cl.cam.ac.uk bf4c562218 Fix typo.
Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-29 16:03:06 +01:00
emellor@leeni.uk.xensource.com 0c63b57930 Tidy and comment use of canonicalise_mode, et al.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-29 15:01:47 +00:00
emellor@leeni.uk.xensource.com 5c9e232d3d Merged. 2005-11-29 15:00:27 +00:00
emellor@leeni.uk.xensource.com e01408a262 Increase device timeout to 10 seconds, as restarting a DHCP server takes a few
seconds, so we need to allow for that.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-29 15:00:01 +00:00
smh22@firebug.cl.cam.ac.uk 79d1eef3ba Avoid audit code during live migrate on 32bit since it's not required.
Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-29 15:57:42 +01:00
emellor@leeni.uk.xensource.com 1f2b7910d7 Support facilities for the new DHCP support.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-29 14:57:33 +00:00
emellor@leeni.uk.xensource.com feea83809d Added trap for ERR, to get better response from the scripts when they are really
broken, and add do_or_die command.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-29 14:56:54 +00:00
emellor@leeni.uk.xensource.com 2832dba652 Replace grep >&/dev/null with grep -q.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-29 14:56:16 +00:00
emellor@leeni.uk.xensource.com 5941ac94f2 Added DHCP server support, configured by a dhcp=yes parameter. This will write
the appropriate entries into dom0's DHCP server configuration file, allowing
that server to provide info for the guest when it starts.

If an IP address is not configured for vif-nat, invent one using the domain
ID and vif ID.

Fix the vif-nat script.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-29 14:55:48 +00:00
smh22@firebug.cl.cam.ac.uk 98a54f8733 Tidy up audit code for PAE plus avoid its use during live migrate where
it is not strictly required. 

Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-29 15:54:44 +01:00
smh22@firebug.cl.cam.ac.uk 7086b5730b Cleanup backend block device logic under save/restore; this should
fix the issues some people have seen with segfaults in vbd_translate 
and/or user-space hangs. 

Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-29 14:50:30 +01:00
kaf24@firebug.cl.cam.ac.uk 5da1debbbd Remove shadow32 dead code (it's never built for other than
x86_32).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-29 14:37:24 +01:00
kaf24@firebug.cl.cam.ac.uk 9cb8877a0e Fix vmx guest issue of allowing accessing supervisor page
from user level program.
In shadow fault, we need to check U/S bit in error code.
It is just a fix for shadow32.c, for x86_64 code and
public code, it is already handled.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
2005-11-29 11:48:33 +01:00
kaf24@firebug.cl.cam.ac.uk 13f2417979 Small fix for shadow mode: fix a p.t. limit check.
Signed-off-by:Xiaofeng Ling <xiaofeng.ling@intel.com>
2005-11-29 11:42:21 +01:00
kaf24@firebug.cl.cam.ac.uk cd197e9a16 Clean up a previous qemu workaround where we use
/etc/xen/qemu-vgaram-bin as vgabios.

Signed-off-by: Ke Yu <ke.yu@intel.com>
2005-11-29 11:40:16 +01:00
kaf24@firebug.cl.cam.ac.uk e9b54a136b Fix a race condition for multi-thread qemu dma, where vmx linux guests
show warning "dma interrupt lost" and dma becomes very slow.

root cause: In the time between set ide irq and set dma status, if guest
receive the irq and query the status, it will find the status is not
ready and therefore treat it as pseudo interrupt. Change the order of
set irq and set dma status fixes this issue.

Signed-off-by: Ke Yu <ke.yu@intel.com>
2005-11-29 11:38:53 +01:00
pl@us.ibm.com 0cf194e2b0 Fix minor traceback in xen-bugtool when send fails 2005-11-29 01:00:10 +00:00
rread@ubuntu.eng.hq.xensource.com b8ae09f01c The device sharing check races when more than one file backed vbd is
configured. Both of the files pick the same free loop device in the for
loop, and then one fails to losetup.  This patch will now retry if
losetup fails until it succeeds or no more devices are available.

Signed-off-by: Robert Read <robert@xensource.com>
2005-11-28 15:34:00 -07:00
rread@ubuntu.eng.hq.xensource.com 7376dc0204 Make psmouse module builtin.
Signed-off-by: Robert Read <robert@xensource.com>
2005-11-28 12:16:27 -07:00
kaf24@firebug.cl.cam.ac.uk 9bd97f28fa Bundle vcpu_time and vcpu_info structures together into a single
structure that is 64 bytes on x86. This ensures that indexing into
the array is fast (power-of-two size) and that accesses are cache
friendly (cache line size is usually 32 or 64 bytes).

Rename vcpu_data to vcpu_info, vcpu_time to vcpu_info.time.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-28 19:48:54 +01:00
dan@guaranine.beaverton.ibm.com 491738a4be Fix isConsoleDead() to actually run a command on the DomU, since a dead
console is no longer exposed when attempting to attach.  This makes test
04_memset_smallmem again able to detect console death and restart
xenconsoled so that the rest of the tests can run on x86_64.
2005-11-28 18:22:02 +00:00
emellor@leeni.uk.xensource.com e358be32dd Merged. 2005-11-28 17:22:02 +00:00
cl349@firebug.cl.cam.ac.uk 016ef02e87 Move mk-symlinks target into tools/Rules.mk.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-11-28 18:07:22 +01:00
emellor@leeni.uk.xensource.com 81f77d8400 Change uuid string format to match that outputted by Xen.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-28 16:48:25 +00:00
kaf24@firebug.cl.cam.ac.uk 5a281883cd Hardcode many cpu features for x86/64 -- we know 64-bit
cpus have many features by default.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-28 17:37:15 +01:00
kaf24@firebug.cl.cam.ac.uk be06e2c74b In alloc_vcpu_struct, after doing a memset on the new allocated vcpu, we
do a memcpy from idle0_vcpu.arch to arch of the new vcpu, which causes
monitor_pagetable is set to a none 0 value.  For VMX guest which is
using external shadow mode, this is not what we really need. the
previous patch is OK for UP VMX guest, but failed on SMP VMX guest.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2005-11-28 16:24:14 +01:00
kaf24@firebug.cl.cam.ac.uk 298ec42fe7 Remove bogus extra unmap_domain_page() call in
free_monitor_pagetable().

Signed-off-by: Xin Li <xin.b.li@intel.com>
2005-11-28 16:17:03 +01:00
Michael.Fetterman@cl.cam.ac.uk f72ca19a29 merge 2005-11-28 15:30:48 +01:00
Michael.Fetterman@cl.cam.ac.uk 81c55aa8d7 merge
Keir did a similar change earlier, but my version removed some special case
code as well, now that __gpfn_to_mfn() can protect itself.
2005-11-28 15:22:47 +01:00
Michael.Fetterman@cl.cam.ac.uk 7cf0a5297e minor printf and log message rework in the shadow code. 2005-11-28 15:12:39 +01:00
Michael.Fetterman@cl.cam.ac.uk 981c3c9b24 Allow __gpfn_to_mfn() to automatically deal with translated domains != current.
Renamed gpfn_to_mfn_foreign() to get_mfn_from_pfn_foreign(), making it more
consistent with get_mfn_from_pfn().
2005-11-28 15:09:44 +01:00
kaf24@firebug.cl.cam.ac.uk f823a38b1f arch/xen/kernel/fixup.c -> arch/xen/i386/kernel/fixup.c
arch/xen/kernel/devmem.c -> drivers/xen/char/mem.c
arch/xen/kernel/smp.c deleted

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-28 14:08:53 +01:00
kaf24@firebug.cl.cam.ac.uk fde3ff3095 Simplify boot_vcpu() implementation.
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2005-11-28 13:39:22 +01:00
emellor@leeni.uk.xensource.com 08006b1a91 Use StringIO to simplify string_iterator here. Altered the up-front
documentation.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-28 12:21:17 +00:00
emellor@leeni.uk.xensource.com 951828c692 Added README.xen-bugtool.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-28 12:20:33 +00:00
emellor@leeni.uk.xensource.com dad18c78cb Change uses of \s within sed regexps -- some versions of sed do not support this
escape.

Allow the vif-nat and vif-route scripts to have netdev specified, rather than
hard-coding eth0.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-28 11:05:07 +00:00
emellor@leeni.uk.xensource.com 74f2b3c56d Added xen-bugtool, an application that collects various system logs and can
save them as a tarball, or submit them to a pre-existing bugzilla bug.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-28 01:47:28 +00:00
emellor@leeni.uk.xensource.com 65b2887f85 Set a console limit, in order to detect runaways.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-27 13:09:46 +00:00
emellor@leeni.uk.xensource.com c675c9215b Fix console handling; saveLog call was broken if ConsoleError occurred.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-27 10:46:26 +00:00
emellor@leeni.uk.xensource.com fd3a649380 Remove keyword from call to xc.domain_setmaxmem; keyword support for this call
was removed with changeset 7955:f72da8799418.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-27 01:28:11 +00:00
emellor@leeni.uk.xensource.com da898dfd4e Merged. 2005-11-27 01:06:44 +00:00
emellor@leeni.uk.xensource.com b2538b1c49 Change the console handling, to remove the loop and timeout if a console fails
to respond first time.  For restored and unpaused domains there is no need for
the console to output data, so we cannot use this as a way to detect the
liveness of a console.  Instead, a command must always be sent to the console,
which means that this failure can only be detected once the constructor of the
Console class has returned successfully.  The __chewall loop still remains, in
order to detect runaway consoles and to clear out previous data from the
console before executing commands, but we no longer treat failure of that
method to read data as a failure of the console itself.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-27 01:06:20 +00:00
emellor@leeni.uk.xensource.com 83b3d6ce35 Use the getId method to tidy up simple call to domid.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-27 01:02:36 +00:00