Commit Graph
15634 Commits
Author SHA1 Message Date
kfraser@localhost.localdomain 9f92ded9df [ACM] Check boundary conditions of passed parameters before accessing
an array with them.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-07-23 09:56:49 +01:00
kfraser@localhost.localdomain b68cfc61ea [ACM] Coding style cleanups.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-07-23 09:56:00 +01:00
kfraser@localhost.localdomain 973db1808f [ACM] Allow the loadpolicy operation once
This patch allows the loadpolicy operation to only happen once, then
require an update until the default policy has been installed (again).

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-07-23 09:45:23 +01:00
Tim Deegan fba898131d Fix IA64 build
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-07-20 14:10:40 +01:00
Tim Deegan 2347fadbc3 [HVM] HAP: mark domains as HAP-enabled, not shadow-enabled.
Thanks to Wei Huang.
Signed-off-by: TIm Deegan <Tim.Deegan@xensource.com>
2007-07-20 12:00:25 +01:00
Tim Deegan 89e4455a59 [XEN] replace shadow_* with paging_* in common code
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-07-20 11:36:36 +01:00
kfraser@localhost.localdomain 3d41eb2ac8 Xen PM: Clean up printk usage.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-07-20 10:47:11 +01:00
kfraser@localhost.localdomain e54e1009a8 Xen PM: Remove useless __sync_lazy_execstate().
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-07-20 10:41:31 +01:00
kfraser@localhost.localdomain 6cb06bacf1 Xen PM: Enter all ACPI S states on boot CPU.
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-07-20 10:38:51 +01:00
kfraser@localhost.localdomain 698959b530 Fix hypercall migration. schedule_tail() is not required
after set affinity, or else continue stub runs on current
cpu immediately before migrating is checked when switching
out.

Signed-off-by Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-07-20 09:38:27 +01:00
kfraser@localhost.localdomain 3eb4247336 [MAN] Explanation of recent extensions to xm security subcommands
Signed-off-by: Stefan Berger <stefanb@usa.ibm.com>
2007-07-19 17:18:20 +01:00
kfraser@localhost.localdomain 9d53b5f351 Improve xm vcpu-list command for inactive managed domains.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-07-19 17:17:25 +01:00
kfraser@localhost.localdomain bd99184d54 xend: Give back memory to dom0 after a failed auto-balloon attempt.
Signed-off-by: Frank van der Linden <frank.vanderlinden@sun.com>
2007-07-19 17:15:49 +01:00
kfraser@localhost.localdomain ab52a83704 Fix 64-bit build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-07-19 17:09:47 +01:00
kfraser@localhost.localdomain 0ba976c0c8 Update xen-api docs.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-07-19 17:00:31 +01:00
kfraser@localhost.localdomain fbf9c4996c [xend / libxen] Add support for labeling of virtual network interfaces.
This patch adds labeling of virtual network interfaces to xend and
makes this manageable through the Xen-API.  It's a feature that is
only usable if ACM is enabled in Xen and xend is used through the
xen-api. A labeled virtual network interface will be plugged into a
bridge where other domains with the same-labeled network interface are
connected to, so that only same-colored domains can communicate with
each other. The bridge should be connected to the outside world using
VLAN for isolation, extending the isolation beyond the local machine.
If a virtual machine is labeled with a VM label that only has one
Simple Type Enforcement Type then it is not necessary to label the
virtual network interface, but the color of the network interface is
determined from the VM's label. If, however, a virtual machine is
labeled with a VM label that has multiple Simple Type Enforcement
Types, then the explicit labeling of each virtual network interface is
required. To specify the label of a network interface, the vif line in
the VM's configuration file has been extended with parameters similar
use for specifying the label of the VM:

vif = ['policy=<policy name>,label=<resource label>']

This labels the VIF of the virtual machine for usage under the policy
'policy name' and labels it with the label 'resource label'.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-07-19 16:59:48 +01:00
kfraser@localhost.localdomain e090b45463 xen: Clean up code style.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-07-19 13:39:10 +01:00
kfraser@localhost.localdomain de46483fe4 SMP support for Xen PM.
Add SMP sleep support to Xen. One new utility is created
to allow vcpu continue previous running after migration
to new processor.

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-07-19 13:23:33 +01:00
kfraser@localhost.localdomain d3faf9badf [host s3] Retrieve necessary sleep information from plain-text ACPI
tables (FADT/FACS), and keep one hypercall remained for sleep
notification.

Signed-off-by: Ke Yu <ke.yu@intel.com>
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-07-19 12:53:32 +01:00
kfraser@localhost.localdomain d17ac42f37 vmx: Save host MSR state for SYSCALLs on all CPUs.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-07-19 10:59:05 +01:00
Ian Campbell 2aaae75a0f Build updates for building upstream trees.
* Merge the guts of the various upstream branch buildconfigs into a
  single mk.linux-2.6 which they include.
* Add support for the -git snapshot branch.
* Update .hgignore to ignore all these new trees.
* Update buildconfigs/enable-xen-config to make the upstream defconfig
  compile without questions.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-07-19 10:26:00 +01:00
Tim Deegan 1fe75c6807 Merge 2007-07-18 13:56:21 +01:00
Tim Deegan ed9a4b4929 [HVM] HAP: tidy up page allocation/tracking and monitor-table building.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-07-18 13:56:00 +01:00
kfraser@localhost.localdomain 3a3398a77b hvm: Only complain about short-period periodic tickers.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-07-18 11:00:32 +01:00
kfraser@localhost.localdomain 080ea11ff4 [xend][xen-api] Save new memory values in domain config when calling
VM.set_memory_[dynamic|static]_[min|max] via Xen API.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2007-07-18 10:10:04 +01:00
kfraser@localhost.localdomain a157ca83eb [Xend] More security-related fixes
This patch provides some more fixes related to the recent
security-related extensions to xend.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-07-18 10:09:06 +01:00
kfraser@localhost.localdomain 05a6e5c04e [Xm-Test] Additional tests for the xm-test suite
This adds a couple of test cases exercising the new policy management
functionality to the security tests.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-07-18 10:08:37 +01:00
Tim Deegan a903e96fce [HVM] More MCA MSRs to ignore
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-07-18 10:04:46 +01:00
Tim Deegan 8dc28d5ce5 [HVM] Hide contents of IA32_MCG_STATUS MSR from the guest.
It can't clear the MCE, and it probably can't understand it anyway.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-07-18 09:06:41 +01:00
kfraser@localhost.localdomain e82c10cd36 hap: Merge the guest-walking functions into one.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-07-17 14:09:45 +01:00
kfraser@localhost.localdomain b60125e83e Improve xm uptime command for inactive managed domains
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-07-17 10:36:33 +01:00
kfraser@localhost.localdomain f0a8a3f3fb [VTPM] Make vTPM hotplug scripts use the UUID of the vTPM instance
Make the vTPM hotplug script use the UUID of the vTPM instance for
associating it with its instance number rather than the name of the
domain.
Also change the cleanup in the xm test to use the atexit mechanism
rather than explicitly calling a function to clean up.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-07-17 10:33:26 +01:00
kfraser@localhost.localdomain 86de051ee1 Merge with PPC Xen tree. 2007-07-17 10:20:21 +01:00
kfraser@localhost.localdomain df4b2f1d63 hap: Fix for coding style.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-07-17 09:22:41 +01:00
Hollis Blanchard 2d9c9413ab [POWERPC][XEN] Use top-level CFLAGS.
- Append to CFLAGS instead of replacing it.
- Fix newly-exposed mixed statement/declaration warnings.
2007-07-16 14:20:16 -05:00
Tim Deegan d0706d17dd [HVM] Qemu rtl8139: correct rx CRC calculation
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-07-16 14:28:54 +01:00
Tim Deegan e7cd1bdfea [HVM] Qemu rtl8139: correct ring-buffer wrapping.
The rx DMA should never overrun when it hits the end of a 64k buffer
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-07-16 14:27:12 +01:00
Tim Deegan a7dcf2b9ce [XEN] HAP: need to intercept CR0 even when using NPT
because we tinker with CR0.TS.  Thanks to Wei Huang for pointing this out.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-07-16 10:36:52 +01:00
Keir Fraser 4f5db4762c Remove unused function reserve_boot_memory() and alloc_boot_low_page().
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-07-14 10:26:02 +01:00
Keir Fraser c3d1e4b95d xen: Fix 32-bit boot.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-07-14 08:19:17 +01:00
Hollis Blanchard 4d5616b775 [POWERPC][XEN] Enable in-guest performance monitoring.
- Lazily save and restore the performance monitor counters when switching
  domains.
- Control with the H_PERFMON PAPR hypercall.
- Ignore guest perfmon exceptions that land in Xen.
Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-07-13 17:28:15 -05:00
Hollis Blanchard 83b975762f [XEN][POWERPC] Fix build after NUMA nodemask changes.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-07-13 15:23:24 -05:00
kfraser@localhost.localdomain c8700f9b1d Remove hard tabs.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-07-13 17:08:05 +01:00
kfraser@localhost.localdomain 157d4e33cd x86/32: Limit bootstrap 1:1 mapping to 1GB.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-07-13 15:42:27 +01:00
kfraser@localhost.localdomain d8eb58d129 Implement domctl_sendtrigger_nmi for x86 hvm.
This patch implements DOMCTL_SENDTRIGGER_NMI hypercall for x86 hvm
domains. We can manually inject NMI into a domain by using
'xm trigger [domain] nmi [vcpu]'.

Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
2007-07-13 13:49:08 +01:00
kfraser@localhost.localdomain 0a330b99ed Do not clobber AMD TSC offset on real-mode switch.
Signed-off-by: David Lively <dlively@virtualiron.com>
Signed-off-by: Ben Guthro <bguthro@virtualiron.com>
2007-07-13 13:46:49 +01:00
kfraser@localhost.localdomain 98ee5b6406 [Xend] Fix problem when destroying VMs using the Xen-API
When domains are destroyed/suspend-resume/migration using the Xen-API
things break due to the domid not having been reset. This patch fixes
this. This is the best place I found for fixing this problem. I could
not push this line into _stateSet() for the case of DOM_STATE_HALTED
and left a comment regarding this.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-07-13 13:43:29 +01:00
kfraser@localhost.localdomain 9de675c1b3 [Build] Remove ACM option for NULL and STE+CHWALL policy
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-07-13 13:42:41 +01:00
kfraser@localhost.localdomain 2b0134dd5a [ACM-security] Some fixes to tools.
- Allow multiple ChineseWallTypes in a VM labels
- check for surfacing exceptions in the python code
- check for array sizes in the XML DOM in python
- properly display the labels when doing 'xm list --label' in xm's
non-Xen-API mode
- rely on the security checking hooks in xend to check access to the
block interface rather than doing this in xm.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-07-12 16:07:28 +01:00
kfraser@localhost.localdomain b28538178f Fix PV-on-HVM driver build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-07-12 16:03:41 +01:00