]> xenbits.xensource.com Git - xen.git/log
xen.git
17 years ago[XSM] correctly located update_va_mapping hook within x86 ifdefs
kfraser@localhost.localdomain [Thu, 6 Sep 2007 17:04:42 +0000 (18:04 +0100)]
[XSM] correctly located update_va_mapping hook within x86 ifdefs

The following patch addresses the issue where the XSM update_va_mapping
hook was not correctly located inside the x86 ifdefs.  Included are
updates for the dummy and flask modules which are also effected by
this issue.

    - update_va_mapping ifdef fix for xsm
    - update_va_mapping ifdef fix for dummy module
    - update_va_mapping ifdef fix for flask module

Signed-off-by: George Coker <gscoker@alpha.ncsc.mil>
17 years agohvm: Ignore NMI deliveries for now, until hardware taskswitch is emulated.
kfraser@localhost.localdomain [Thu, 6 Sep 2007 10:34:38 +0000 (11:34 +0100)]
hvm: Ignore NMI deliveries for now, until hardware taskswitch is emulated.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agohvm: Remove hvm-specific NMI flag and use generic flag instead.
kfraser@localhost.localdomain [Thu, 6 Sep 2007 10:31:02 +0000 (11:31 +0100)]
hvm: Remove hvm-specific NMI flag and use generic flag instead.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoDelete flask tools build target and add to .hgignore.
kfraser@localhost.localdomain [Thu, 6 Sep 2007 10:23:43 +0000 (11:23 +0100)]
Delete flask tools build target and add to .hgignore.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoBuild libflask unconditionally since the python low-level tools
Ian Campbell [Mon, 3 Sep 2007 14:04:03 +0000 (15:04 +0100)]
Build libflask unconditionally since the python low-level tools
require it and it does't seem to pull in any major dependencies.

The alternative would have been to hack tools/python/setup.py to
conditionally compile the flask stuff.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
17 years agoFix 64 bit build, cannot mix code and data declarations.
Ian Campbell [Mon, 3 Sep 2007 13:58:35 +0000 (14:58 +0100)]
Fix 64 bit build, cannot mix code and data declarations.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
17 years agoImplement x86 continuable domain destroy.
kfraser@localhost.localdomain [Fri, 31 Aug 2007 16:00:11 +0000 (17:00 +0100)]
Implement x86 continuable domain destroy.
This patch addresses the following bug report.
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1037
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agoxend: Always build lowlevel security modules, as there are some
kfraser@localhost.localdomain [Fri, 31 Aug 2007 15:50:26 +0000 (16:50 +0100)]
xend: Always build lowlevel security modules, as there are some
dependencies on these from with xend proper.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoImplement ia64 continuable domain destroy.
kfraser@localhost.localdomain [Fri, 31 Aug 2007 14:46:37 +0000 (15:46 +0100)]
Implement ia64 continuable domain destroy.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agoMake XEN_DOMCTL_destroydomain hypercall preemptible, in a way that is
kfraser@localhost.localdomain [Fri, 31 Aug 2007 14:44:38 +0000 (15:44 +0100)]
Make XEN_DOMCTL_destroydomain hypercall preemptible, in a way that is
visible to the caller (via -EAGAIN return code).

This prevents softlockup in dom0 kernel, due to the hypercall taking
too long to execute on very large (multi-multi-gigabyte) domains.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agolibxenctrl: xc_destroy_domain() handles EAGAIN.
kfraser@localhost.localdomain [Fri, 31 Aug 2007 14:43:28 +0000 (15:43 +0100)]
libxenctrl: xc_destroy_domain() handles EAGAIN.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agoxend: Correct indexing in xc_cpu_to_node_t map.
kfraser@localhost.localdomain [Fri, 31 Aug 2007 13:14:14 +0000 (14:14 +0100)]
xend: Correct indexing in xc_cpu_to_node_t map.
Signed-off-by: Beth Kon <eak@us.ibm.com>
17 years agoxend: Add blktap disk type check
kfraser@localhost.localdomain [Fri, 31 Aug 2007 13:11:15 +0000 (14:11 +0100)]
xend: Add blktap disk type check

Print the following error when you give a wrong disk type to xm commands:
 # xm create /xen/vm1.conf disk='tap:xxx:/xen/root-vm1.img,hda1,w'
 Using config file "/xen/vm1.conf".
 Error: tap:xxx not a valid disk type

 # xm block-attach vm2 tap:yyy:/xen/second.img hdb1 w
 Error: tap:yyy not a valid disk type
 Usage: xm block-attach <Domain> <BackDev> <FrontDev> <Mode>
 [BackDomain]

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
17 years agoAdd line termination to 'echo' usage in network-bridge script.
kfraser@localhost.localdomain [Fri, 31 Aug 2007 13:09:05 +0000 (14:09 +0100)]
Add line termination to 'echo' usage in network-bridge script.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
17 years agoFix handling of auto-generated file xsm.py.
kfraser@localhost.localdomain [Fri, 31 Aug 2007 11:12:27 +0000 (12:12 +0100)]
Fix handling of auto-generated file xsm.py.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoCleanups after XSM checkin.
kfraser@localhost.localdomain [Fri, 31 Aug 2007 11:05:07 +0000 (12:05 +0100)]
Cleanups after XSM checkin.
Signed-off-by: Keir Fraser <keir@xensource.com>
--HG--
rename : xen/include/public/acm.h => xen/include/public/xsm/acm.h
rename : xen/include/public/acm_ops.h => xen/include/public/xsm/acm_ops.h
rename : xen/include/acm/acm_core.h => xen/include/xsm/acm/acm_core.h
rename : xen/include/acm/acm_endian.h => xen/include/xsm/acm/acm_endian.h
rename : xen/include/acm/acm_hooks.h => xen/include/xsm/acm/acm_hooks.h

17 years agoXen Security Modules: ACM.
kfraser@localhost.localdomain [Fri, 31 Aug 2007 10:41:49 +0000 (11:41 +0100)]
Xen Security Modules: ACM.
Signed-off-by: George Coker <gscoker@alpha.ncsc.mil>
17 years agoXen Security Modules: Tools.
kfraser@localhost.localdomain [Fri, 31 Aug 2007 10:37:20 +0000 (11:37 +0100)]
Xen Security Modules: Tools.
Signed-off-by: George Coker <gscoker@alpha.ncsc.mil>
17 years agoXen Security Modules: FLASK
kfraser@localhost.localdomain [Fri, 31 Aug 2007 10:31:18 +0000 (11:31 +0100)]
Xen Security Modules: FLASK
Signed-off-by: George Coker <gscoker@alpha.ncsc.mil>
17 years agoXen Security Modules: XSM
kfraser@localhost.localdomain [Fri, 31 Aug 2007 10:21:35 +0000 (11:21 +0100)]
Xen Security Modules: XSM
Signed-off-by: George Coker <gscoker@alpha.ncsc.mil>
17 years agoDEFINE_XEN_GUEST_HANDLE is evaluated by the pre-processor twice. Do this also for...
kfraser@localhost.localdomain [Fri, 31 Aug 2007 10:12:57 +0000 (11:12 +0100)]
DEFINE_XEN_GUEST_HANDLE is evaluated by the pre-processor twice. Do this also for XEN_GUEST_HANDLE.

This fixes a build error for PV guests (OpenBSD, NetBSD) where the use
of XEN_GUEST_HANDLE(uint8_t) leads to a build error because uint8_t is
a #define instead a typedef.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
17 years agoFix blktap script for versions of readlink command that do not handle
kfraser@localhost.localdomain [Fri, 31 Aug 2007 10:10:21 +0000 (11:10 +0100)]
Fix blktap script for versions of readlink command that do not handle
regular files.
Signed-off-by: Ben Guthro <bguthro@virtualiron.com>
Signed-off-by: Josh Nicholas <jnicholas@virtualiron.com>
17 years ago[HVM] Shadow: don't shadow the p2m table.
Tim Deegan [Fri, 31 Aug 2007 10:06:22 +0000 (11:06 +0100)]
[HVM] Shadow: don't shadow the p2m table.
For HVM vcpus with paging disabled, we used to shadow the p2m table,
and skip the p2m lookup to go from gfn to mfn.  Instead, we now
provide a simple pagetable that gives a one-to-one mapping of 4GB, and
shadow that, making the translations from gfn to mfn via the p2m.
This removes the paging-disabled special-case code from the shadow
fault handler, and allows us to expand the p2m interface, since all HVM
translations now go through the same p2m lookups.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
17 years ago[XEN] Shadow: remove ununsed function shadow_convert_to_log_dirty().
Tim Deegan [Fri, 31 Aug 2007 09:59:41 +0000 (10:59 +0100)]
[XEN] Shadow: remove ununsed function shadow_convert_to_log_dirty().
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
17 years agoSupport extensions to Intel architecture for TXT/SMX.
kfraser@localhost.localdomain [Thu, 30 Aug 2007 17:53:54 +0000 (18:53 +0100)]
Support extensions to Intel architecture for TXT/SMX.
Signed-off-by: Joseph Cihula <joseph.cihula@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoqemu: Allow more IDE power management.
kfraser@localhost.localdomain [Thu, 30 Aug 2007 15:41:57 +0000 (16:41 +0100)]
qemu: Allow more IDE power management.

Made the QEMU IDE disk tolerate more power-mgmt commands, specifically:
        WIN_SETFEATURE(EN_AAM)  - enable automatic acoustic mgmt
        WIN_SETFEATURE(DIS_AAM) - disable automatic acoustic mgmt
        WIN_SETFEATURE(DIS_APM) - disable automatic power mgmt
        WIN_STANDBY
        WIN_SETIDLE1
        WIN_SLEEPNOW1
        WIN_STANDBY2
        WIN_SETIDLE2
        WIN_SLEEPNOW2
        WIN_STANDBYNOW2
These are all essentially no-ops, like existing support for EN_RLA
(enable read lookahead) and WIN_STANDBYNOW1.

This fixes a crash in the SLES9-SP3 64bit kernel when the powersaved
was started (with ACPI or ACM).  This guest really only needs EN_AAM,
DIS_APM, and WIN_SETIDLE1 support, but the others seemed sensible to
include.

I've excluded EN_APM since I'm unsure of what that's agreeing to do.
It's probably ok to include.

Signed-off-by: Ben Guthro <bguthro@virtualiron.com>
Signed-off-by: David Lively <dlively@virtualiron.com>
17 years agoblktap: Fix double-free in tapdisk cleanup.
kfraser@localhost.localdomain [Thu, 30 Aug 2007 15:29:10 +0000 (16:29 +0100)]
blktap: Fix double-free in tapdisk cleanup.

Signed-off-by: Ben Guthro <bguthro@virtualiron.com>
Signed-off-by: Josh Nicholas <jnicholas@virtualiron.com>
17 years agoPV-on-HVM: Define DEFINE_RWLOCK() macro for older Linux kernels.
kfraser@localhost.localdomain [Thu, 30 Aug 2007 15:17:07 +0000 (16:17 +0100)]
PV-on-HVM: Define DEFINE_RWLOCK() macro for older Linux kernels.
Signed-off-by: Ben Guthro <bguthro@virtualron.com>
17 years agoPV-on-HVML: Remove extra parentheses in netif_tx_lock_bh and netif_tx_unlock_bh
kfraser@localhost.localdomain [Thu, 30 Aug 2007 15:13:42 +0000 (16:13 +0100)]
PV-on-HVML: Remove extra parentheses in netif_tx_lock_bh and netif_tx_unlock_bh
macros, as it caused problems when compiling against a SLES9 tree.

Signed-off-by: Ben Guthro <bguthro@virtualiron.com>
17 years ago[ACM/XEND] Fix case where resource label file does not exist.
kfraser@localhost.localdomain [Thu, 30 Aug 2007 14:39:13 +0000 (15:39 +0100)]
[ACM/XEND] Fix case where resource label file does not exist.

Fix the case where the resource label file does not exist but its
contents would be needed for access control evaluations.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
17 years agoqemu: Remove mapcache lock - we no longer have multiple threads in core qemu code.
kfraser@localhost.localdomain [Thu, 30 Aug 2007 14:35:10 +0000 (15:35 +0100)]
qemu: Remove mapcache lock - we no longer have multiple threads in core qemu code.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoUpdate dump-core-foramt.txt documentation.
kfraser@localhost.localdomain [Thu, 30 Aug 2007 14:00:49 +0000 (15:00 +0100)]
Update dump-core-foramt.txt documentation.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agoIntroduce xc_core_arch_gpfn_may_present() hook.
kfraser@localhost.localdomain [Thu, 30 Aug 2007 14:00:21 +0000 (15:00 +0100)]
Introduce xc_core_arch_gpfn_may_present() hook.
On ia64 trying to map a foreign domain page which isn't allocated
cause annoying warning message. xm dump-core results in too many
warnings. With this hook, ia64 dump-core can suprress warning.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agoOptimize xc_core.c implementation.
kfraser@localhost.localdomain [Thu, 30 Aug 2007 13:58:40 +0000 (14:58 +0100)]
Optimize xc_core.c implementation.

Optimize out unnecessary map/unmap foreign domain page
by moving p2m/pfn talbe after pages array.
This patch doesn't change the xm dump-core format.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agoSome minor cleanup of xc_core.c.
kfraser@localhost.localdomain [Thu, 30 Aug 2007 13:57:24 +0000 (14:57 +0100)]
Some minor cleanup of xc_core.c.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agoxen: Understand the E820_UNUSABLE (type code 5) memory type.
kfraser@localhost.localdomain [Thu, 30 Aug 2007 10:01:39 +0000 (11:01 +0100)]
xen: Understand the E820_UNUSABLE (type code 5) memory type.
Signed-off-by: Joseph Cihula <joseph.cihula@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agohvm: Provide an HVMOP_flush_tlbs to flush VCPU TLBs.
kfraser@localhost.localdomain [Thu, 30 Aug 2007 08:57:09 +0000 (09:57 +0100)]
hvm: Provide an HVMOP_flush_tlbs to flush VCPU TLBs.
From: Peter Johnston <pjohnston@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoioemu: Avoid unaligned guest memory accesses on ia64.
kfraser@localhost.localdomain [Wed, 29 Aug 2007 14:47:55 +0000 (15:47 +0100)]
ioemu: Avoid unaligned guest memory accesses on ia64.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoSkipping image name at start of command line is an
kfraser@localhost.localdomain [Wed, 29 Aug 2007 14:43:53 +0000 (15:43 +0100)]
Skipping image name at start of command line is an
architecture-specific action. Definitely not required on IA64, for now
make it just x86 specific.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agohvm: Add rombios decoding of F11/F12 scancodes in support for
kfraser@localhost.localdomain [Wed, 29 Aug 2007 14:02:41 +0000 (15:02 +0100)]
hvm: Add rombios decoding of F11/F12 scancodes in support for
Microsoft's Remote Installation Services, which require F11/F12 keys

Signed-off-by: Ben Guthro <bguthro@virtualron.com>
Signed-off-by: Steve Ofsthun <sofsthun@virtualiron.com>
17 years agoImprove commenting of xencomm_ctxt_next().
kfraser@localhost.localdomain [Wed, 29 Aug 2007 14:01:57 +0000 (15:01 +0100)]
Improve commenting of xencomm_ctxt_next().
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agohvm: Intercept reads of MSR_IA32_MCG_CAP and return 0.
kfraser@localhost.localdomain [Wed, 29 Aug 2007 13:57:12 +0000 (14:57 +0100)]
hvm: Intercept reads of MSR_IA32_MCG_CAP and return 0.

This indicates no  machine check "units", which agrees more closely
with Xen's super-minimal machine check architecture (just enough to
allow Windows to run). This fixes a bug that occurs when migrating a
RHEL4-64bit guest to a host with fewer machine check units than the
original host.  These host physical details shouldn't be leaking
through to guests.

Signed-off-by: David Lively <dlively@virtualiron.com>
17 years agox86: Do not #GP when guest writes unexpected values to CR4. Just
kfraser@localhost.localdomain [Wed, 29 Aug 2007 13:54:14 +0000 (14:54 +0100)]
x86: Do not #GP when guest writes unexpected values to CR4. Just
ignore them.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agox86: Remove (most) Centaur CPU support. Only VIA C7 can work, as it
kfraser@localhost.localdomain [Wed, 29 Aug 2007 13:40:00 +0000 (14:40 +0100)]
x86: Remove (most) Centaur CPU support. Only VIA C7 can work, as it
has CMOV support. Leave a small amount of centaur.c around to support
that. MTRR code goes entirely, as 686-class Centaur CPUs have generic
MTRR support.

Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agox86: Kill Rise iDragon support.
kfraser@localhost.localdomain [Wed, 29 Aug 2007 10:34:01 +0000 (11:34 +0100)]
x86: Kill Rise iDragon support.

Don't carry dead code needlessly: this is a family 5 CPU, which Xen
doesn't support. Perhaps, other CPUs' files could use some cleanup in
that respect, too, but there it would increase the delta to the Linux
origin of these files, while here the entire file can go away.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoioemu: Avoid struct members clashing with POSIX apis
kfraser@localhost.localdomain [Tue, 28 Aug 2007 15:13:35 +0000 (16:13 +0100)]
ioemu: Avoid struct members clashing with POSIX apis

The TPM code in tools/ioemu/hw/tpm_tis.c has a struct containing a
number of function pointers with names open, close, read, write which
are the same as various POSIX apis already #included in the
file. POSIX allows these functions to be defined as macros and latest
GCC/glibc does indeed define them as macros depending on compiler
flags. This causes compile errors when deferencing the struct
members. The solution is either to change calls like   ctx->open () to
be (* ctx->open) (), or simply to rename the struct members. Since
this struct was only used inside that one file I simply renamed them.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
17 years agoxm: Fix error message for xm create command.
kfraser@localhost.localdomain [Tue, 28 Aug 2007 15:11:05 +0000 (16:11 +0100)]
xm: Fix error message for xm create command.

When I tested xm create command, I saw the following error message.
I expected an error message "Error: (12, 'Cannot allocate memory')"
because I intentionally caused a memory shortage on the test.
But the error message was different from my expectation.

# xm create /xen/HVMdomain.1
Using config file "/xen/HVMdomain.1".
Error: an integer is required

I looked at xend.log to examine the cause why the error message was
shown.  (Could you see the attached xend.log?)
xend had the error message "Error: (12, 'Cannot allocate memory')"
first.  But xend changed the error message to "Error: an integer is
required" halfway.  I'm not sure about the cause why an exception
occurred in logging processing.  But when I applied an attached patch,
I confirmed that the error message that I expected was shown.  The
patch does not call xc.domain_destroy_hook() if self.domid is None.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
17 years agoioemu: error checkin when setting up the Cirrus Logic video device.
kfraser@localhost.localdomain [Tue, 28 Aug 2007 15:08:38 +0000 (16:08 +0100)]
ioemu: error checkin when setting up the Cirrus Logic video device.

set_mm_mapping() may fail because of xc_domain_populate_physmap().  In
this case, we should not blindly go on; the xc_map_foreign_batch()
that follows will cause a page fault and, at best, get mapped in a
zeroed page from the dom0 (which is not what we want).  While I'm in
here, fix a memory leak on an error path.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
17 years agoxend: Fix memory ballooning logic during save/restore. Should be same
kfraser@localhost.localdomain [Tue, 28 Aug 2007 15:06:32 +0000 (16:06 +0100)]
xend: Fix memory ballooning logic during save/restore. Should be same
as during domain creation.
Signed-off-by: Chris Lalancette <clalance@redhat.com>
17 years agoFix VNC server after HVM save/restore/migrate, when no vncpasswd specified.
kfraser@localhost.localdomain [Tue, 28 Aug 2007 14:58:46 +0000 (15:58 +0100)]
Fix VNC server after HVM save/restore/migrate, when no vncpasswd specified.

The basic problem was that the "image" section of the sxp had a "None"
in it, which means that on the restore (either on the local machine or
remote machine), the vnc server in the qemu device model literally
needed the string "None" to properly connect.  This simple patch only
puts a vncpasswd entry in the image if it is *not* None in the python
code, thus avoiding the whole issue.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
17 years agoxencomm: Code style cleanups.
kfraser@localhost.localdomain [Tue, 28 Aug 2007 14:44:19 +0000 (15:44 +0100)]
xencomm: Code style cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years ago[xen, xencomm] xencomm multiple page support
kfraser@localhost.localdomain [Tue, 28 Aug 2007 14:32:27 +0000 (15:32 +0100)]
[xen, xencomm] xencomm multiple page support
Current implementation doesn't allow struct xencomm_desc::address
array to be more than single page. On IA64 it causes 64GB+ domain
creation failure. This patch generalizes xencomm to allow multipage

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[xen, xencomm] fix various xencomm invalid racy access.
kfraser@localhost.localdomain [Tue, 28 Aug 2007 14:31:56 +0000 (15:31 +0100)]
[xen, xencomm] fix various xencomm invalid racy access.
- Xencomm should check struct xencomm_desc alignment.
- Xencomm should check whether struct xencomm_desc itself (8 bytes)
  doesn't cross page boundary. Otherwise a hostile guest kernel can
  pass such a pointer that may across page boundary. Then xencomm
  accesses an unrelated page.
- Xencomm shouldn't access struct xencomm_desc::nr_addrs multiple
  times. Copy it to local area and use the copy.
  Otherwise a hostile guest can modify at the same time.
- Xencomm should check whether struct xencomm_desc::address[] array
  crosses page boundary. Otherwise xencomm may access unrelated pages.
- Xencomm should get_page()/put_page() after address conversion from
  paddr to maddr because xen supports SMP and balloon driver.
  Otherwise another vcpu may free the page at the same time.
  Such a domain behaviour doesn't make sense, however nothing prevents
  it.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agohvmloader: Clarify relationship between xen_domain_handle_t and SMBIOS uuid field.
kfraser@localhost.localdomain [Fri, 24 Aug 2007 15:32:56 +0000 (16:32 +0100)]
hvmloader: Clarify relationship between xen_domain_handle_t and SMBIOS uuid field.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agox86: Fix paging_init() to not overwrite existing page-directory entry
Keir Fraser [Fri, 24 Aug 2007 15:19:14 +0000 (16:19 +0100)]
x86: Fix paging_init() to not overwrite existing page-directory entry
for fixmap area.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoMerge with ia64/xen-unstable.hg
kfraser@localhost.localdomain [Fri, 17 Aug 2007 15:48:10 +0000 (16:48 +0100)]
Merge with ia64/xen-unstable.hg

17 years agosilentoldconfig seems to break automated testing, try an explicit make prepare
Ian Campbell [Fri, 17 Aug 2007 15:34:11 +0000 (16:34 +0100)]
silentoldconfig seems to break automated testing, try an explicit make prepare
instead.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
17 years agoUpdate version number to reflect that next stable release will be 3.2.x
kfraser@localhost.localdomain [Fri, 17 Aug 2007 14:43:24 +0000 (15:43 +0100)]
Update version number to reflect that next stable release will be 3.2.x
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoLinux 2.6.18 doesn't create include/linux/autoconf.h as a side effect
Ian Campbell [Fri, 17 Aug 2007 12:30:05 +0000 (13:30 +0100)]
Linux 2.6.18 doesn't create include/linux/autoconf.h as a side effect
of make oldconfig. Use silentoldconfig instead.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
17 years agoPull XEN_LINUX_UPDATE into mk.linux-2.6-xen so it can be shared by
Ian Campbell [Fri, 17 Aug 2007 12:28:53 +0000 (13:28 +0100)]
Pull XEN_LINUX_UPDATE into mk.linux-2.6-xen so it can be shared by
src.tarball and src.hg-clone

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
17 years agoAdd sharing-check for blktap
kfraser@localhost.localdomain [Fri, 17 Aug 2007 09:02:52 +0000 (10:02 +0100)]
Add sharing-check for blktap

Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
Signed-off-by: Hirofumi Tsujimura <tsujimura.hirof@jp.fujitsu.com>
17 years agoxend: Fix vbd detach.
kfraser@localhost.localdomain [Fri, 17 Aug 2007 09:01:40 +0000 (10:01 +0100)]
xend: Fix vbd detach.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
17 years agoFix "xm restore" require 4 times amount of memory on ia64.
kfraser@localhost.localdomain [Fri, 17 Aug 2007 09:00:22 +0000 (10:00 +0100)]
Fix "xm restore" require 4 times amount of memory on ia64.
Signed-off-by: Masayuki Igawa <igawa@mxs.nes.nec.co.jp>
17 years agoxend: Avoid unnecessary writes to xenstore.
kfraser@localhost.localdomain [Fri, 17 Aug 2007 08:59:28 +0000 (09:59 +0100)]
xend: Avoid unnecessary writes to xenstore.
Type of rtc/timeoffset is not 'int' but 'str'.
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
17 years ago[IA64] xencomm - compilation fix of unmodified driver
Alex Williamson [Thu, 16 Aug 2007 19:46:50 +0000 (13:46 -0600)]
[IA64] xencomm - compilation fix of unmodified driver

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[IA64] Use common xencomm.c and remove ia64 xencomm.c
Alex Williamson [Thu, 16 Aug 2007 19:03:41 +0000 (13:03 -0600)]
[IA64] Use common xencomm.c and remove ia64 xencomm.c

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agomerge with xen-unstable.hg
Alex Williamson [Thu, 16 Aug 2007 16:47:33 +0000 (10:47 -0600)]
merge with xen-unstable.hg

17 years ago[IA64] Support of 4k page size for individual guests
Alex Williamson [Thu, 16 Aug 2007 16:03:26 +0000 (10:03 -0600)]
[IA64] Support of 4k page size for individual guests

4k pagesize support per vcpu

Signed-off-by: Juergen Gross <juergen.gross@fujitsu-siemens.com>
17 years ago[IA64] Shrink vtlb size
Alex Williamson [Thu, 16 Aug 2007 15:37:54 +0000 (09:37 -0600)]
[IA64] Shrink vtlb size

Instrumenting thash_purge_all() shows a very low usage of vtlb
entries (21 at most).

This patch shrinks the default vtlb size from 512KB to 16KB
to optimize memory.  This also speeds up ptc_e emulation.
To improve the hash function, frequency of collision never changed
and there is no performance degradation.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
17 years agoTack -m32/-m64 on HOSTCFLAGS when COMPILE_ARCH is x86.
kfraser@localhost.localdomain [Thu, 16 Aug 2007 15:00:17 +0000 (16:00 +0100)]
Tack -m32/-m64 on HOSTCFLAGS when COMPILE_ARCH is x86.
Should fix building in Solaris environments.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoAvoid new-fangled gnumake else-if syntax.
kfraser@localhost.localdomain [Thu, 16 Aug 2007 14:59:18 +0000 (15:59 +0100)]
Avoid new-fangled gnumake else-if syntax.
Declarative style is neater anyway.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoAllow Xen to build on FreeBSD.
kfraser@localhost.localdomain [Thu, 16 Aug 2007 14:44:37 +0000 (15:44 +0100)]
Allow Xen to build on FreeBSD.
From: Julian Stecklina <der_julian@web.de>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoRemove unused max_dma_mfn variable.
kfraser@localhost.localdomain [Thu, 16 Aug 2007 12:27:59 +0000 (13:27 +0100)]
Remove unused max_dma_mfn variable.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoxencomm: Fix for code style.
kfraser@localhost.localdomain [Tue, 14 Aug 2007 15:32:49 +0000 (16:32 +0100)]
xencomm: Fix for code style.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years ago[xen, xencomm] preparetion for xencomm consolidation.
kfraser@localhost.localdomain [Tue, 14 Aug 2007 15:01:34 +0000 (16:01 +0100)]
[xen, xencomm] preparetion for xencomm consolidation.
Xen/powerpc runs in real mode so that it uses maddr interchangably
with vaddr. But it isn't the case in xen/ia64. It is necessary to
convert maddr to vaddr to access the page. maddr_to_virt() doesn't
convert on powerpc, so it should work on both archtechture.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years ago[xen, xencomm] xencomm trivial bug fix
kfraser@localhost.localdomain [Tue, 14 Aug 2007 15:01:08 +0000 (16:01 +0100)]
[xen, xencomm] xencomm trivial bug fix
- fix return address of xencomm_copy_to_guest()
- fix xencomm_add_offset()
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
17 years agoxen: Cache 'current' vcpu in physdev_op hcall implementation.
kfraser@localhost.localdomain [Tue, 14 Aug 2007 14:58:16 +0000 (15:58 +0100)]
xen: Cache 'current' vcpu in physdev_op hcall implementation.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
17 years agoxen: Do not accept DOMID_SELF as input to DOMCTL_getdomaininfo.
kfraser@localhost.localdomain [Tue, 14 Aug 2007 08:56:46 +0000 (09:56 +0100)]
xen: Do not accept DOMID_SELF as input to DOMCTL_getdomaininfo.
This was screwing up callers that loop on getdomaininfo(), if there
was a domain with domid DOMID_FIRST_RESERVED-1 (== DOMID_SELF-1).
They would see DOMID_SELF-1, then look up DOMID_SELF, which has domid
0 of course, and then start their domain-finding loop all over again!
Found by Kouya Shimura <kouya@jp.fujitsu.com>. Thanks!
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agolibxc: Various xc_evtchn_* functions must return signed integer type.
kfraser@localhost.localdomain [Tue, 14 Aug 2007 08:21:39 +0000 (09:21 +0100)]
libxc: Various xc_evtchn_* functions must return signed integer type.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agohvm: Cleanups to state-restore paths (including vmxassist world restore).
kfraser@localhost.localdomain [Mon, 13 Aug 2007 17:18:22 +0000 (18:18 +0100)]
hvm: Cleanups to state-restore paths (including vmxassist world restore).
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years ago[HVM] [TOOLS] Move device state save earlier in suspend path
Tim Deegan [Mon, 13 Aug 2007 15:47:11 +0000 (16:47 +0100)]
[HVM] [TOOLS] Move device state save earlier in suspend path
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
17 years ago[PV-on-HVM]: Add missing includes
kfraser@localhost.localdomain [Mon, 13 Aug 2007 15:41:04 +0000 (16:41 +0100)]
[PV-on-HVM]: Add missing includes

This patch adds missing includes that currently work through indirect
inclusions.  This cannot be relied on and indeed does break on older
kernels (2.4 for PV-on-HVM).

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agox86-64: enable hypervisor output on VESA frame buffer
kfraser@localhost.localdomain [Mon, 13 Aug 2007 09:09:06 +0000 (10:09 +0100)]
x86-64: enable hypervisor output on VESA frame buffer

This is x86-64 only for now due to the virtual address space
constraints on x86-32.

New options 'vesa-ram', 'vesa-map', 'vesa-mtrr' are close equivalents
to the vesafb Linux options 'vtotal', 'vremap', 'mtrr'.

Also the font can be specified: font=8x{8,14,16}.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agomerge with xen-unstable.hg
Alex Williamson [Sun, 12 Aug 2007 20:50:02 +0000 (14:50 -0600)]
merge with xen-unstable.hg

17 years ago[IA64] Make MMU setting of domVTi configurable
Alex Williamson [Sun, 12 Aug 2007 18:19:13 +0000 (12:19 -0600)]
[IA64] Make MMU setting of domVTi configurable

This patch makes MMU setting of domVTi configurable.
The size of VTLB and VHPT can be set by boot option.
(e.g. "vti_vtlb_size=256k vti_vhpt_size=1m")

Also some cleanups.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
17 years ago[IA64] Minimal long vhpt format support
Alex Williamson [Sun, 12 Aug 2007 18:13:22 +0000 (12:13 -0600)]
[IA64] Minimal long vhpt format support

Signed-off-by: Juergen Gross juergen.gross@fujitsu-siemens.com
17 years ago[IA64] Use defines instead of hard coded numbers
Alex Williamson [Sun, 12 Aug 2007 18:06:43 +0000 (12:06 -0600)]
[IA64] Use defines instead of hard coded numbers

Some minor instruction grouping enhancements

Signed-off-by: Juergen Gross juergen.gross@fujitsu-siemens.com
17 years agoxm-test: Allow dom0 network interface used in tests to be overriden
James Bulpin [Sun, 12 Aug 2007 15:09:13 +0000 (16:09 +0100)]
xm-test: Allow dom0 network interface used in tests to be overriden
  ./configure --with-dom0-intf=<intf>  (default vif0.0)

17 years agox86: Trivial clean up of debug output.
kfraser@localhost.localdomain [Fri, 10 Aug 2007 16:23:33 +0000 (17:23 +0100)]
x86: Trivial clean up of debug output.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agox86: Improved memcpy() asm implementation.
kfraser@localhost.localdomain [Fri, 10 Aug 2007 14:01:09 +0000 (15:01 +0100)]
x86: Improved memcpy() asm implementation.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
17 years agoFix xm block/network-detach command.
kfraser@localhost.localdomain [Thu, 9 Aug 2007 15:21:41 +0000 (16:21 +0100)]
Fix xm block/network-detach command.

 - To remove device info, it waits for the backend path of the device
   to be removed.
 - It removes device info from domain info.
 - It saves domain info to the config.sxp of the managed domain.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
17 years agoacm: Some fixes to the Xend ACM management code
kfraser@localhost.localdomain [Thu, 9 Aug 2007 15:14:56 +0000 (16:14 +0100)]
acm: Some fixes to the Xend ACM management code

- prevent vlans from being relabeled when they are in use by the
  current policy
- fix problems when doing an update of the policy and the name of the
policy changes while doing that
- refactor code that has to take into consideration that unlabeled
domains may be defined using the label __UNLABELED__
- make 'xm list --label' show the complete label of a domain

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
17 years agox86-64: pv wrmsr emulation fix
kfraser@localhost.localdomain [Thu, 9 Aug 2007 15:02:33 +0000 (16:02 +0100)]
x86-64: pv wrmsr emulation fix

Make sure the upper 32 bits of RAX are disregarded during MSR write
emulation.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoEnsure multiboot modules are mapped when we copy them.
kfraser@localhost.localdomain [Thu, 9 Aug 2007 14:16:51 +0000 (15:16 +0100)]
Ensure multiboot modules are mapped when we copy them.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agox86: Always define both PAE and non-PAE address constants
kfraser@localhost.localdomain [Thu, 9 Aug 2007 09:14:38 +0000 (10:14 +0100)]
x86: Always define both PAE and non-PAE address constants

Solaris decides to run as PAE or not at runtime. Thus, make the
address constants for both cases always available in the public
headers.

Signed-off-by: John Levon <john.levon@sun.com>
17 years agoacm: Cleaner use of copy_from_guest().
kfraser@localhost.localdomain [Thu, 9 Aug 2007 09:03:59 +0000 (10:03 +0100)]
acm: Cleaner use of copy_from_guest().
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
17 years agoClean up usage of 'current' in do_iret() hypercall.
kfraser@localhost.localdomain [Thu, 9 Aug 2007 09:01:17 +0000 (10:01 +0100)]
Clean up usage of 'current' in do_iret() hypercall.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years ago[IA64] Saner dom0 memory and cpu defaults
Alex Williamson [Thu, 9 Aug 2007 02:48:11 +0000 (20:48 -0600)]
[IA64] Saner dom0 memory and cpu defaults

Some ia64 xen dom0 tweaks:
* Increase default memory allocation from 512M to 4G
* Increase default vcpu allocation from 1 to 4
* Implement rough calculation of what the maximum memory
  that can be safely allocated to dom0 is
* If need be, scale down requested memory allocation to fit
  available memory, rather than simply panicking
* If dom0_mem=0 is specified, allocate all available mem

Signed-off-by: Jarod Wilson <jwilson@redhat.com>
17 years agox86: Do not print unbounded bogus FACS signature.
kfraser@localhost.localdomain [Wed, 8 Aug 2007 16:50:24 +0000 (17:50 +0100)]
x86: Do not print unbounded bogus FACS signature.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agohvm: Handle hw_cr[] array a bit more sanely.
kfraser@localhost.localdomain [Wed, 8 Aug 2007 16:28:13 +0000 (17:28 +0100)]
hvm: Handle hw_cr[] array a bit more sanely.
SVM for the most part does not need to use it at all, and this makes
the code clearer.
Signed-off-by: Keir Fraser <keir@xensource.com>