Commit Graph
13782 Commits
Author SHA1 Message Date
Ian Campbell e552fbffca merge 2007-02-01 16:55:45 +00:00
john.levon@sun.com 437359ebc8 Fix Solaris build - use $(MAKE) not make.
Signed-off-by: John Levon <john.levon@sun.com>
2007-02-01 08:41:36 -08:00
Ian Campbell 11247302ad [XEN] Extend the range returned by KEXEC_RANGE_MA_XEN to cover the
heap as well as code+data. This makes kdump work again after
13546:d86a96ca47a3

Also fix sizeof_note to correctly calculate the length of the name
field.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-02-01 16:07:22 +00:00
Ewan Mellor fa39434f9a Fix SDL option for HVM domains.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-01 15:44:00 +00:00
Ewan Mellor c3bf42e922 Fix handling of HVM boot.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-01 15:32:16 +00:00
Ewan Mellor f9d2dae496 Fix merge conflict between new HVM console handling and new HVM boot handling.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-01 15:31:34 +00:00
Ewan Mellor d6f8b69ced Fix HVM save/restore wrt console handling.
From Tim Deegan <Tim.Deegan@xensource.com>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-01 15:30:22 +00:00
Tim Deegan 45d4d259a2 Merge 2007-02-01 15:03:55 +00:00
Tim Deegan 479f9c8a5d [PYGRUB] Invoke pygrub with TERM=vt100
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-02-01 15:03:37 +00:00
Ewan Mellor edb08a7488 Use the new xen-python-path to set PYTHONPATH, rather than trying to do it in
XmTestLib.__init__ (and getting it wrong).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-01 14:41:58 +00:00
Tim Deegan 22a3e99d97 Merge 2007-02-01 13:15:03 +00:00
Tim Deegan 9ed7023291 [XEN] Wrap compat XLAT_ macros in "do { } while (0)".
This unbreaks code like

    if ( !IS_COMPAT(dom) )
        memcpy();
    else
        XLAT_foo();

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-02-01 13:14:43 +00:00
Ewan Mellor a84714b11c Break out the Python path interrogation into a separate script. This has the
advantage that the temporary path manipulation cannot affect the main script,
and that it can be shared with other programs, such as xm-test.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-01 12:48:53 +00:00
Ewan Mellor 73c92d7bb2 Change VM.HVM_boot to VM.HVM_boot_policy and VM.HVM_boot_params.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-01 11:55:31 +00:00
kfraser@localhost.localdomain d0a7aa6a33 Allocate Xen kexec/kdump elfnote sections of the correct size.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-01 14:15:37 +00:00
kfraser@localhost.localdomain 6552100e95 safe_str*() functions check their destination argument is a
character-array type. Fix two bad callers.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-02-01 13:44:35 +00:00
Ewan Mellor 6880c9f6b7 Copy the definition of DOM0_UUID into XenDomain so that we don't need to import
large swathes of the server to run the Xen-API tests.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-01 11:42:50 +00:00
Ian Campbell 9c4ed974a4 [TOOLS] Remove a debug message which is spamming the logs during live
migration.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-02-01 10:21:42 +00:00
Ian Campbell 5d4e92412e [LINUX] netfront: Don't call netif_carrier_off until the device is
fuly allocated.

netif_carrier_off() causes events to be queued on the device so if we
subsequently abort the allocation (e.g. due to lack of grant entries)
then we crash trying to access the now invalid device.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-02-01 10:20:34 +00:00
Travis Betak 165a4a0f9f [HVM][SVM] Updated the SVM V_TPR register on MMIO writes to the VLAPIC TPR
The SVM architecture includes a virtual TPR register.  This patch
updates this register on MMIO writes to the HVM Virtual APIC.

VT does not have this register as far as I know so a stub is added in
the VT code.

Signed-off-by: Travis Betak <travis.betak@amd.com>
2007-01-31 19:37:44 +00:00
Tim Deegan 3556a93ba7 Merge 2007-01-31 18:15:48 +00:00
Tim Deegan 3290ac980d [HVM] Save/restore: save HPET registers
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-01-31 18:15:00 +00:00
Ian Campbell 05e5154038 [XEN] Fix perfc after 13756:56377f5ce588
64 bit guest handles can no longer be passed as parameters to
functions. Extract such parameters into a regular guest handle first.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-01-31 17:58:00 +00:00
Tim Deegan f099a2a635 Merge 2007-01-31 17:22:17 +00:00
Tim Deegan 782821bcb0 [HVM] Save/restore: clean up the new hypercall interface
Pass a buffer and size through instead of fixed-size structure.

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-01-31 17:22:00 +00:00
Ian Campbell 680963aa78 [XEN] Fix dom/sysctl structure alignement.
Versions of gcc up to and including 3.3 appear to ignore
__attribute__((align(x))) when applied to typedefs or to members of
anonymous unions. Workaround this by explicitly aligning each
definition of a 64 bit guest handle.

Tidy up x86_64 compat entry.S a bit.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-01-31 16:54:21 +00:00
Emmanuel Ackaouy 64459d4ba6 merge 2007-01-31 15:25:04 +00:00
Emmanuel Ackaouy e42527954e [TOOLS] Fix typos which breaks readnotes transparent gunzipping ...
From: Gerd Hoffmann <kraxel@suse.de>
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
2007-01-31 15:23:51 +00:00
Alastair Tse 68429d2e80 [XEND] Fix typos in vfb/vnc detect in image.py
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-31 15:22:33 +00:00
Alastair Tse ddffd1ed7d [XENAPI] Add VDI.location support and test c prog for HVM test.
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-31 15:08:29 +00:00
Alastair Tse ad643e3ef0 [XENAPI] Remove some deprecated fields from the Xen API test script.
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-31 15:06:40 +00:00
Alastair Tse 48af590de3 [XEND] Use VDI.location rather than VDI.image_uri/uri for Xen API
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-31 15:05:58 +00:00
Alastair Tse 975e8c9154 [XEND] Make sure other_config is by default an empty string map.
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-31 15:04:06 +00:00
Alastair Tse 1f66881925 [XEND] Make VBD.bootable in XendConfig kept as int.
This will prevent it from being displayed as 'False' and 'True'
everywhere in the device SXP.

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-31 15:03:22 +00:00
Alastair Tse f32d400767 [XEND] Hide other_config from console and vfb SXP to prevent string
representation of dict to appear in SXP.

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-31 15:02:20 +00:00
Alastair Tse c8cce1eddd [XEND] Fix VCPU_params to return string map.
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-31 15:01:09 +00:00
Alastair Tse f492dd97fb [XEND] Merge VFB support for PV and HVM guests.
This patch merges the way VFB are represented inside Xend by making
HVM VNC consoles use the VFB as its configuration object.

It preserves the way options are specified through xm but will create
a new VFB device that is used by image.py to put vnc config into
qemu-dm's command line. The parsing is moved into image.py's
parseDeviceModel() rather than in configVNC().

Through the Xen API, you can create a 'console' of protocol 'rfb' and
end up with a VNC console, on both HVM and PV guests. The location of
the connecting port is stored in the location attribute of the console
object. This is updated on each XendDomainInfo.update() if it
changes.

Also fixes missing read of the vnclisten and HVM_boot from the
config when initialised via xm. Makes sure bootable attribute for VBD
is store as an int when making SXP config.

Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-31 13:20:36 +00:00
Alastair Tse 6501ac6994 [XEND] Make python-pam warning only appear if using XenAPI
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-31 12:58:41 +00:00
Tim Deegan 3f44314932 [HVM] Save/restore: save shared-info pfn and re-map it on restore
In the short term this allows us to save the same domain more than once.
Longer-term some more careful shared-info management will be needed.

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-01-31 12:23:35 +00:00
Tim Deegan 7100d7a911 Merge 2007-01-31 10:44:21 +00:00
Ian Campbell 4ddfad6c0d [XEN] Fix build breakage with gcc 4.1.2.
domain_build.c: In function 'construct_dom' :
domain_build.c:874: warning: pointer targets in passing argument 1 of 'strlcpy' differ in signedness

Unfortunately adding a simple cast to (char *) doesn't work since that
confuses safe_strcpy so revert to using strlcpy directly.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-01-31 10:40:38 +00:00
Tim Deegan 221012416b [HVM] Save/restore: save RTC state.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-01-31 10:28:47 +00:00
Tim Deegan 674ccf3266 [HVM] Save/restore: clean up marshalling code
- All entries are now defined as structs and saved/restored
  in self-contained operations.
- Save/restore operations are type-safe, to tie each entry's
  typecode to a particular struct and its length.
- Save/restore handlers are registered once per host instead of
  per domain.
- Detect buffer overrun before it happens and abort.

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-01-31 10:27:10 +00:00
Ian Campbell 8e84e3f524 [TOOLS] Fix foreign header build breakage.
Having both the Xen tree and the tools tree recurse into the foreign
headers directory causes headaches in parallel builds and when
building 32-bit tools + 64 bit Xen in the same tree.

Therefore we cause mk-symlinks to symlink in the foreign headers build
bits and generate a local version of the headers and checker tool.

Only libxc needs to do this since the other tools were actually
picking up the libxc version of the headers anyway so the mk-symlinks
calls can be removed from these components.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-01-31 10:25:12 +00:00
Ian Campbell ff0b3cef8d [XEN] Fix XENVER_capabilities hypercall.
Passing an array to a function turns it into a pointer which confuses
safe_strcat.

Also fix 54->64 typo in ia64 tree.

Thanks to Alex Williamson for pointing out the problem.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-01-31 10:11:26 +00:00
Ewan Mellor 8a3405e402 Added VM_metrics class, taking some of the fields from VM. Make VM.static_max
and static_min read-write.  Added VM.VCPUs/{max,at_startup}.  Make
VM.VCPUs/params a string -> string map.

This is the modelling, the C bindings, and the message file -- Xend support to
follow.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-30 18:30:18 +00:00
Tim Deegan 11e16a75a0 [HVM] Save/restore: Reset PIT period correctly
This fixes some time-speedup after restore in guests that use the PIT.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-01-30 18:30:27 +00:00
Keir Fraser 880562ad8b pygrub: fsimage binding must free objects with PyObject_DEL, not PyMem_DEL.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2007-01-30 17:50:39 +00:00
Keir Fraser ec6e374f1b ia64: Use memcpy() to fill ACPI identifier fields.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-01-30 17:39:54 +00:00
Ewan Mellor f2c7f02e99 Fix XendNode when no host state is saved.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-30 16:55:51 +00:00