Commit Graph
15779 Commits
Author SHA1 Message Date
kfraser@localhost.localdomain 145dd4e0fb 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>
2007-08-28 15:58:46 +01:00
kfraser@localhost.localdomain 62ba102d87 xencomm: Code style cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-28 15:44:19 +01:00
kfraser@localhost.localdomain ca4a49e4cc [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>
2007-08-28 15:32:27 +01:00
kfraser@localhost.localdomain ac1e3a08a8 [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>
2007-08-28 15:31:56 +01:00
kfraser@localhost.localdomain 22f2674542 hvmloader: Clarify relationship between xen_domain_handle_t and SMBIOS uuid field.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-24 16:32:56 +01:00
Keir Fraser 8356257742 x86: Fix paging_init() to not overwrite existing page-directory entry
for fixmap area.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-24 16:19:14 +01:00
kfraser@localhost.localdomain b7d20cfb9d Merge with ia64/xen-unstable.hg 2007-08-17 16:48:10 +01:00
Ian Campbell 47e2355fc9 silentoldconfig seems to break automated testing, try an explicit make prepare
instead.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-08-17 16:34:11 +01:00
kfraser@localhost.localdomain b43bbe7bf0 Update version number to reflect that next stable release will be 3.2.x
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-17 15:43:24 +01:00
Ian Campbell d6ad276628 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>
2007-08-17 13:30:05 +01:00
Ian Campbell bc39e90242 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>
2007-08-17 13:28:53 +01:00
kfraser@localhost.localdomain 270415d327 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>
2007-08-17 10:02:52 +01:00
kfraser@localhost.localdomain 8b7f8bce55 xend: Fix vbd detach.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-08-17 10:01:40 +01:00
kfraser@localhost.localdomain 133feccc85 Fix "xm restore" require 4 times amount of memory on ia64.
Signed-off-by: Masayuki Igawa <igawa@mxs.nes.nec.co.jp>
2007-08-17 10:00:22 +01:00
kfraser@localhost.localdomain 0af35cef10 xend: Avoid unnecessary writes to xenstore.
Type of rtc/timeoffset is not 'int' but 'str'.
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2007-08-17 09:59:28 +01:00
Alex Williamson f87e8be01d [IA64] xencomm - compilation fix of unmodified driver
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-08-16 13:46:50 -06:00
Alex Williamson 842e49b295 [IA64] Use common xencomm.c and remove ia64 xencomm.c
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-08-16 13:03:41 -06:00
Alex Williamson f628da7abf merge with xen-unstable.hg 2007-08-16 10:47:33 -06:00
Alex Williamson a787af4ec3 [IA64] Support of 4k page size for individual guests
4k pagesize support per vcpu

Signed-off-by: Juergen Gross <juergen.gross@fujitsu-siemens.com>
2007-08-16 10:03:26 -06:00
Alex Williamson b10564cbaa [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>
2007-08-16 09:37:54 -06:00
kfraser@localhost.localdomain 6fcad535ee Tack -m32/-m64 on HOSTCFLAGS when COMPILE_ARCH is x86.
Should fix building in Solaris environments.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-16 16:00:17 +01:00
kfraser@localhost.localdomain 2aef880641 Avoid new-fangled gnumake else-if syntax.
Declarative style is neater anyway.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-16 15:59:18 +01:00
kfraser@localhost.localdomain 713bbc0699 Allow Xen to build on FreeBSD.
From: Julian Stecklina <der_julian@web.de>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-16 15:44:37 +01:00
kfraser@localhost.localdomain e28e04d593 Remove unused max_dma_mfn variable.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-16 13:27:59 +01:00
kfraser@localhost.localdomain c9fd63e861 xencomm: Fix for code style.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-14 16:32:49 +01:00
kfraser@localhost.localdomain 6877a0de29 [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>
2007-08-14 16:01:34 +01:00
kfraser@localhost.localdomain ad2c8b83e8 [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>
2007-08-14 16:01:08 +01:00
kfraser@localhost.localdomain 5fcc2e7692 xen: Cache 'current' vcpu in physdev_op hcall implementation.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
2007-08-14 15:58:16 +01:00
kfraser@localhost.localdomain 10ef7a91b5 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>
2007-08-14 09:56:46 +01:00
kfraser@localhost.localdomain 807d8048a2 libxc: Various xc_evtchn_* functions must return signed integer type.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-14 09:21:39 +01:00
kfraser@localhost.localdomain 2209d892f9 hvm: Cleanups to state-restore paths (including vmxassist world restore).
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-13 18:18:22 +01:00
Tim Deegan 870e806e0d [HVM] [TOOLS] Move device state save earlier in suspend path
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
2007-08-13 16:47:11 +01:00
kfraser@localhost.localdomain 74a665b5ee [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>
2007-08-13 16:41:04 +01:00
kfraser@localhost.localdomain 6d9199bd0f 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>
2007-08-13 10:09:06 +01:00
Alex Williamson 087b48842b merge with xen-unstable.hg 2007-08-12 14:50:02 -06:00
Alex Williamson d3121a2b33 [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>
2007-08-12 12:19:13 -06:00
Alex Williamson 26ea5d6e3c [IA64] Minimal long vhpt format support
Signed-off-by: Juergen Gross juergen.gross@fujitsu-siemens.com
2007-08-12 12:13:22 -06:00
Alex Williamson 79c25a5441 [IA64] Use defines instead of hard coded numbers
Some minor instruction grouping enhancements

Signed-off-by: Juergen Gross juergen.gross@fujitsu-siemens.com
2007-08-12 12:06:43 -06:00
James Bulpin 9119ea5153 xm-test: Allow dom0 network interface used in tests to be overriden
./configure --with-dom0-intf=<intf>  (default vif0.0)
2007-08-12 16:09:13 +01:00
kfraser@localhost.localdomain 0067e95007 x86: Trivial clean up of debug output.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-10 17:23:33 +01:00
kfraser@localhost.localdomain a7f5e0e87e x86: Improved memcpy() asm implementation.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-08-10 15:01:09 +01:00
kfraser@localhost.localdomain b02c2e5dfc 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>
2007-08-09 16:21:41 +01:00
kfraser@localhost.localdomain db79ac4259 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>
2007-08-09 16:14:56 +01:00
kfraser@localhost.localdomain 834e828123 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>
2007-08-09 16:02:33 +01:00
kfraser@localhost.localdomain c9634cf790 Ensure multiboot modules are mapped when we copy them.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-09 15:16:51 +01:00
kfraser@localhost.localdomain 44c0c1e7ee 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>
2007-08-09 10:14:38 +01:00
kfraser@localhost.localdomain 5ebe96a023 acm: Cleaner use of copy_from_guest().
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-08-09 10:03:59 +01:00
kfraser@localhost.localdomain 7d97332018 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>
2007-08-09 10:01:17 +01:00
Alex Williamson 5fb08ad077 [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>
2007-08-08 20:48:11 -06:00
kfraser@localhost.localdomain 3e1ac88f3c x86: Do not print unbounded bogus FACS signature.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-08 17:50:24 +01:00