Commit Graph
14310 Commits
Author SHA1 Message Date
kfraser@localhost.localdomain e1bc13a960 xm: New command 'debug-keys' to inject debug-key events into Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-09 11:11:59 +00:00
kfraser@localhost.localdomain f064d42ef8 pci back: Fix registration of of filters on subsections of config space.
Found by Jambanuthan K.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-09 09:21:31 +00:00
Ewan Mellor 81c452f998 Make the VTPM.destroy method return 'void' upon success and adapt the
test case to reflect that.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-03-09 02:32:52 +00:00
Ewan Mellor 99598dfc8a Improve error message.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-09 01:59:59 +00:00
Ewan Mellor d0a005909a Remove VDI.set_SR -- this was always unimplemented, and pretty mad.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-09 01:25:43 +00:00
Ewan Mellor 4eb63aba01 Fancy headings.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-09 01:15:07 +00:00
Ewan Mellor 9f7e9b2820 Move the booting description out of the VM class description into the VM
Lifecycle section of the doc.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-09 01:06:11 +00:00
Ewan Mellor 409ea8c197 Remove the word "Additional" from all the RPC subheadings -- we include all
the methods now, not just the non-accessors.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-09 00:46:50 +00:00
Ewan Mellor ee1ed8aafb Added section on references vs UUIDs.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-09 00:44:10 +00:00
Ewan Mellor 35dc738880 Changed the example of linked references (Set(Ref(x)) <-> Ref(y)) to use VM and
VIFs rather than VM and VMGroups, now that we've deleted VMGroups.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-09 00:35:29 +00:00
Ewan Mellor 9e92a72fb5 Added {VIF,VBD}.{plug,unplug} methods. Docs and C bindings -- Xend to follow.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-08 23:47:24 +00:00
Ewan Mellor 5579ba52ec Added VM_BAD_POWER_STATE error code to VM.hard_shutdown.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-08 23:22:56 +00:00
Ewan Mellor 9c3b29a772 Remove crashdump.create -- this doesn't make sense.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-08 23:16:34 +00:00
Ewan Mellor 45e2bb215f Fix duplicate consts around xc_error declarations.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-08 22:33:47 +00:00
Tim Deegan e1e9aa7c06 Merge 2007-03-08 16:41:32 +00:00
Tim Deegan 8ae71c0646 [HVM] Save/restore: tidy PFN handling in the tools.
Make the differences clearer between the number of frames, the max PFN
and the size of the pfn array, and handle te framebuffer more cleanly.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-08 16:40:35 +00:00
Tim Deegan 78938b42ad [HVM] Save/restore: make sure all ioreqs are gone when a domain is saved
by pausing the domain and pulling them through.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-08 16:38:15 +00:00
kfraser@localhost.localdomain cf3e43db4a linux: Remove an unused data structure from TPM frontend.
Some more code style changes.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-03-08 16:26:17 +00:00
Tim Deegan 9bdd419d64 [XEN] Shadow: fix mark_dirty invocation to use gfn, not mfn
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-08 16:20:01 +00:00
Tim Deegan 05b8af2e2c [XEN] Shadow: tidy up page_info before handing back to the allocator
which expects count_info fields to be zero.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-08 16:18:50 +00:00
Christian Limpach d861c10c24 [xen] Update the hvm rtc clock state if the domain's time offset is changed.
The settimeoffset domctl had no effect on hvm domains since the offset
was only read in rtc_init which is done when the domain is created.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-03-08 15:51:32 +00:00
Ian Campbell 75c73974d7 [BUILDER]: Initialize code segment selectors in virtual IDT to 0.
These should not be set until the guest kernel kernel configures an
entry point otherwise the null_trap_bounce() check gets confused.

This change was made to the old domain builder in 12455:3fa6635d04b9
but was lost in the transition to the new builder.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-03-08 15:35:28 +00:00
kfraser@localhost.localdomain e653a8058e xen: Provide notification of console updates via VIRQ.
The readconsolering capabilities provide the opportunity to
provide console output to other clients (remote systems,
logging systems, etc). This patchs adds the ability to generate
a notification of a change in the console buffer.

Signed-off-by: Ben Thomas <ben@virtualiron.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-08 15:21:10 +00:00
kfraser@localhost.localdomain c53fa753e2 xend: Platform feature 'multiprocessor suspend' is x86-only for now.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-08 14:57:33 +00:00
Tim Deegan f534f3a9c3 [HVM] Save/restore: back-port IDE controller save routine from current qemu.
Also, send an interrupt and an error code to the guest on restore if we
dropped an active request when we saved.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-08 14:37:21 +00:00
kfraser@localhost.localdomain dc4db635cb xen: Clean up heap allocator.
Move some common free/alloc code into core heap-allocator
functions. Make it clear that alloc/free can only ever be done outside
hardirq context (previously it was unsafe: could deadlock on heap_lock).
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-08 14:29:09 +00:00
Tim Deegan c2a571ee1e [HVM] Add support for hardware-assisted paging
as the second implementation of the generic paging-assistance interface.

Signed-off-by: Wei Huang <wei.huang2@amd.com>
2007-03-08 10:54:56 +00:00
kfraser@localhost.localdomain 757f568bbf linux: Restore time on APs if they are not hotplugged on save/restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-07 16:21:21 +00:00
kfraser@localhost.localdomain 12ace65c63 netback: Disable debug interrupt (accidentally left enabled in
previous checkin).
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-07 16:16:09 +00:00
kfraser@localhost.localdomain ef9e4decc4 linux: Use fake carrier flag for netfront/netback rather than the real
netif_carrier_XXX() functions. This makes network bringup much faster.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-07 16:00:47 +00:00
Tim Deegan b67783e2f4 [HVM] Disallow soft resets in the BIOS.
They aren't safe if the guest has brought up PV device drivers.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-07 13:07:12 +00:00
kfraser@localhost.localdomain 63fb267ebd xen: Replace stupid page_alloc fix.
I broke the 'correct' fix when I copied it out of an email. The
actual correct version, with an extra +1 in the for-loop header is
rather abusive of for loops, so I've changed it now to a do-while loop
and an extra comment so I don't screw up this backwards loop ever
again.

This version does actually boot. :-)

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-07 11:17:03 +00:00
kfraser@localhost.localdomain 0cb97f4d8b dump-core: always use elfclass64 format to support x86_32pae.
Without this patch xen dump-core format can't handle over 4GB case.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-03-07 10:53:34 +00:00
kfraser@localhost.localdomain 9de4f0c67d tools: Clean up use of 'install' command.
- convert raw "install" command to use $(INSTALL)
- convert some $(INSTALL) to $(INSTALL_DATA) as appropriate
- modify the specific $(INSTALL) definitions to use -p.

Original patch by Ben Thomas <ben@virtualiron.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-07 10:49:20 +00:00
kfraser@localhost.localdomain d4ac34aff9 ioemu: Remove use of 'echo -c' in script.
I've no idea what it does, and it doesn't appear to be valid on some
systems.  Use a more generic approach.

Signed-off-by: Ben Thomas <ben@virtualiron.com>
2007-03-07 10:37:05 +00:00
kfraser@localhost.localdomain bca5f6d829 linux: Don't use set_fixmap/clear_fixmap after boot-time. It's not
allowed and the functions are marked __init on x86/64.
Use HYPERVISOR_update_va_mapping() directly instead.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-07 10:13:39 +00:00
kfraser@localhost.localdomain 786ad1ffaa A correct fix for page_alloc crash when Xen heap empty.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-07 09:43:36 +00:00
kfraser@localhost.localdomain ffb7e747bc ioemu: Close file descriptors when forking processes.
Just leave stdin/stdout/stderr (and possibly tap fd) open.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2007-03-06 16:51:42 +00:00
kfraser@localhost.localdomain ca7a6b3eb2 Make Python tools (i.e., xend and pygrub) conditionally compiled.
Config option is PYTHON_TOOLS, default is 'y'.

Signed-off-by: Ben Thomas <ben@virtualiron.com>
2007-03-06 16:46:20 +00:00
Tim Deegan 392a8c76b8 [XEN] Shadow: ignore shadow operations on dying domains
so that they don't get confused by the way that shadow_teardown()
leaves some of the mode bits set after releasing the shadow resources.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-06 15:02:20 +00:00
kfraser@localhost.localdomain 40ff940abf linux x86/64: No need to pre-allocate all fixmap pagetables:
just those for bt_ioremap().
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-06 13:41:05 +00:00
kfraser@localhost.localdomain 88d253f238 xend: more flexibility in gathering data from /proc/cpuinfo
Add ia64 mapping for cpuinfo data and make the case where #vcpu !=
#pcpu more flexible (don't rely on cpu0 existing).

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-03-06 11:53:37 +00:00
Travis Betak 6f23098005 [SVM] Clear VMCB's EFER.LME when guest disables paging
Since the guest's CR0.PG is always set (in shadow paging), EFER.LME must
be cleared along with EFER.LMA when the guest is disabling paging.

Signed-off-by: Travis Betak <travis.betak@amd.com>
2007-03-05 16:22:21 -06:00
Travis Betak 7f2e199b7b [SVM] Use svm_long_mode_enabled() when checking if guest is in long mode
This patch fixes the inconsistent method of checking if the guest is in
long mode (EFER.LMA == 1).

Signed-off-by: Travis Betak <travis.betak@amd.com>
2007-03-05 16:21:50 -06:00
Travis Betak 70c72cc7b5 [SVM] Cleanup guest writes to EFER 2007-03-05 16:21:11 -06:00
Travis Betak f12219735e [SVM] Return the shadow EFER value on guest EFER reads.
Return the shadow of the guest's EFER instead of the VMCB.  This helps
with things such as the unlikely event the guest wants to check EFER.LME
immediately after setting it (The VMCB's EFER.LME remains clear until
the guest enables paging).

Signed-off-by: Travis Betak <travis.betak@amd.com>
2007-03-05 16:18:10 -06:00
Travis Betak 8ec3367eb1 [SVM] Remove SVM cpu_state and add EFER shadow to svm structure.
The SVM cpu state was being used inconsistently and, besides, it makes
more sense to instead rely on the guest's shadow registers to determine
the current guest state.

Signed-off-by: Travis Betak <travis.betak@amd.com>
2007-03-05 16:17:25 -06:00
Christian Limpach 85afb99cda [tools] Import ptsname from its new location (after cset 14259:7f0d8e3c538e).
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-03-05 22:42:13 +00:00
Christian Limpach b4dd69c689 [tools] Use auxbin.py to determine libpath at build time.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-03-05 19:22:21 +00:00
kfraser@localhost.localdomain 6ad77059f1 Install pygrub according to auxbin rules.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-05 19:01:19 +00:00