Commit Graph
15761 Commits
Author SHA1 Message Date
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 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
kfraser@localhost.localdomain ba2a198fc7 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>
2007-08-08 17:28:13 +01:00
kfraser@localhost.localdomain d2b8c77679 hvm: Unify %cr0 handling.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-08 16:09:17 +01:00
Ian Campbell 16e00ecd92 Do not clobber new wallclock offset on restore.
The new hypervisor will set shared_info->wc_* so do not clobber those
values with the saved versions from the old hypervisor.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-08-08 15:03:40 +01:00
kfraser@localhost.localdomain 2da2ec1973 hvm: Fix %cr4 handling in HAP paging mode.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-08 13:18:07 +01:00
Tim Deegan fa5827f35e Merge 2007-08-08 12:27:23 +01:00
Tim Deegan 52c3a7596e [TOOLS] Avoid unaligned accesses in libfsimage FAT16 code
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
2007-08-08 12:26:21 +01:00
kfraser@localhost.localdomain 5a0f2ae0d2 hvm: More cleanups, particularly to %cr4 handling.
Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
2007-08-08 11:28:26 +01:00
kfraser@localhost.localdomain a33bee88f7 hvm: More cleanups around paging interfaces.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-08 10:34:03 +01:00
kfraser@localhost.localdomain b4923c7d99 hvm: Clean up control-register and EFER handling.
No semantic changes. :-)
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-07 17:30:09 +01:00
kfraser@localhost.localdomain c0efd4c939 xen: Clean up some paging files: no tab and trailing spaces.
Signed-off-by: Xin Li <xin.b.li@intel.com>
2007-08-07 09:07:29 +01:00
kfraser@localhost.localdomain d1b295913f xentop: fix abnormal value cpu(%) when domain shutdown.
If we test multiple domain create/shutdown many times.
sometimes abnormal values of cpu(%) are appeared.
This is because shutdown domain remove failure.
(in other words, memory corruption of struct )
This corruption makes abnormal cpu(%) values are shown xentop
sometimes.

Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
2007-08-07 09:06:38 +01:00
kfraser@localhost.localdomain 7b448e13e0 [ACM] Explicitly cast byte arrays when used in copy_from_guest
Explicitly cast the target array type to an array of 'u8' since the
number of bytes copied is calculated from the type of element in the
target array times the number of elements (3rd parameter).

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-08-07 09:04:44 +01:00
Alex Williamson 006220d4c6 [IA64] Fix parameter check in do_hvm_op()
Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
2007-08-06 21:40:47 -06:00
Tim Deegan 617f360651 [HVM] Store Etherboot ROM as hexdump, not binary
for ease of patch management
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-08-06 15:33:42 +01:00
kfraser@localhost.localdomain 4eee6b2435 xm: Fix control characters causing xm tests to fail.
On my FC7 installation some of the test in the xm test suite fail for
no apparent reason. The problem is that the python 'readline' module
puts out control characters that confuse code that parses the output
of some of the xm commands that are being run. The readline module
dumps those characters upon import. The attached patch works around
this problem.

Here's what I get in out.txt when doing 'python 2>&1 | tee out.txt'
and 'import readline' on the python command line:

Python 2.5 (r25:51908, Apr 10 2007, 10:29:13)
[GCC 4.1.2 20070403 (Red Hat 4.1.2-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
[[?1034h>>> >>>

The characters before the '>>>' above are those printed by that
version of 'readline' and remain invisible on the screen but appear in
the file and confuse the xm test suite parser.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-08-06 13:42:15 +01:00
kfraser@localhost.localdomain 050883d0fd xm: pass --skipdtd parameter through to 'xm new'
Pass the command line parameter '--skipdtd|-s' through to the actual
'xm new' command.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-08-06 13:39:20 +01:00
Ian Campbell 44cdadd1cd [32on64] Copy the right grant table status code back to the guest.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-08-06 13:19:44 +01:00
kfraser@localhost.localdomain 647f41c70d hvm: Fix PV-on-HVM drivers to not execuite hypercall page while it is
being re-initialised.
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
2007-08-06 11:16:14 +01:00