]> xenbits.xensource.com Git - xen.git/log
xen.git
18 years ago[LINUX] Explcitly include linux/mutex.h in files which use mutexes, rather then
Ian Campbell [Fri, 30 Mar 2007 16:33:31 +0000 (17:33 +0100)]
[LINUX] Explcitly include linux/mutex.h in files which use mutexes, rather then
relying on an include via some other header.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years agoAdd support for HVM domains to new xm XenAPI create code
Tom Wilkie [Fri, 30 Mar 2007 16:28:54 +0000 (17:28 +0100)]
Add support for HVM domains to new xm XenAPI create code

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

18 years agosvm: Improve emulation of SMSW instruction for memory operands.
Keir Fraser [Fri, 30 Mar 2007 16:13:50 +0000 (17:13 +0100)]
svm: Improve emulation of SMSW instruction for memory operands.
From: Trolle Selander <trolle.selander@gmail.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agohvm: Must increment RIP on INT3 instruction in SVM.
Keir Fraser [Fri, 30 Mar 2007 16:02:46 +0000 (17:02 +0100)]
hvm: Must increment RIP on INT3 instruction in SVM.
Also tighten up checking of valid exception intercepts -- we should
not vmexit on an exception we have not registered an interest in.
Signed-off-by Tom Woller <thomas.woller@amd.com>
Signed-off-by Thomas Friebel <thomas.friebel@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[LINUX] Make sure to initialiase the xen features bitmap before first use on x86_64.
Ian Campbell [Fri, 30 Mar 2007 13:13:53 +0000 (14:13 +0100)]
[LINUX] Make sure to initialiase the xen features bitmap before first use on x86_64.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years agoAdd config files for testing xm via XendAPI
Tom Wilkie [Fri, 30 Mar 2007 10:55:34 +0000 (11:55 +0100)]
Add config files for testing xm via XendAPI

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

18 years agoManaged HVM guests are not displayed by 'xm list' after restarting xend.
Jim Fehlig [Wed, 14 Mar 2007 00:13:11 +0000 (18:13 -0600)]
Managed HVM guests are not displayed by 'xm list' after restarting xend.
This patch prevents writing empty configuration items to the domain's
sexpr configuration file.  Without the empty items, the sexpr is
parsed properly when xend is started.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
18 years agoMade tracing thread safe, and also print thread name.
Magnus Carlsson [Thu, 29 Mar 2007 21:27:46 +0000 (14:27 -0700)]
Made tracing thread safe, and also print thread name.

18 years agoxend: Fix shutdown method after PV-on-HVM save/restore patch.
kfraser@localhost.localdomain [Thu, 29 Mar 2007 22:31:58 +0000 (23:31 +0100)]
xend: Fix shutdown method after PV-on-HVM save/restore patch.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoacm: Provide the possibility to choose the VM label of domain-0 in the
kfraser@localhost.localdomain [Thu, 29 Mar 2007 18:26:13 +0000 (19:26 +0100)]
acm: Provide the possibility to choose the VM label of domain-0 in the
kernel line in grub.conf. The format is
ssidref=<ssidref>:sHype:<policy name>:<vm label>. The name of the
policy specified here must be the same name as the in the policy
provided as a module during boot, otherwise the policy will not be
accepted and the system then starts without a policy. The user tool
for 'xm dumppolicy' has been adapted to show which entry in the binary
policy is used by domain-0.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
18 years agohvm: Fix the assert on size in HVM MMIO flag-setting functions
kfraser@localhost.localdomain [Thu, 29 Mar 2007 18:23:41 +0000 (19:23 +0100)]
hvm: Fix the assert on size in HVM MMIO flag-setting functions
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoEnable VMX MSR bitmap support.
kfraser@localhost.localdomain [Thu, 29 Mar 2007 18:18:43 +0000 (19:18 +0100)]
Enable VMX MSR bitmap support.
We use it to avoid VMExits on FS_BASE and GS_BASE MSR accesses.

Signed-off-by: Weidong Han <weidong.han@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoxen: Rename remaining vcpu_flags as pause_flags.
kfraser@localhost.localdomain [Thu, 29 Mar 2007 17:26:12 +0000 (18:26 +0100)]
xen: Rename remaining vcpu_flags as pause_flags.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoxen: Remove droppings from a previous patch.
kfraser@localhost.localdomain [Thu, 29 Mar 2007 17:19:10 +0000 (18:19 +0100)]
xen: Remove droppings from a previous patch.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoxen: Remove {nmi_pending,nmi_masked,paused} vcpu bitflags.
kfraser@localhost.localdomain [Thu, 29 Mar 2007 17:07:33 +0000 (18:07 +0100)]
xen: Remove {nmi_pending,nmi_masked,paused} vcpu bitflags.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoMerge
Tim Deegan [Thu, 29 Mar 2007 16:28:34 +0000 (16:28 +0000)]
Merge

18 years ago[HVM] Save/restore: PV-on-HVM driver save/restore support
Tim Deegan [Thu, 29 Mar 2007 16:27:52 +0000 (16:27 +0000)]
[HVM] Save/restore: PV-on-HVM driver save/restore support
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
18 years agoLet xm commands use domids with XenAPI
Tom Wilkie [Thu, 29 Mar 2007 16:09:49 +0000 (17:09 +0100)]
Let xm commands use domids with XenAPI

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

18 years agoxen: Get rid of some VCPUF_* flags and move into their own byte fields.
kfraser@localhost.localdomain [Thu, 29 Mar 2007 15:52:40 +0000 (16:52 +0100)]
xen: Get rid of some VCPUF_* flags and move into their own byte fields.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoMerge
Tim Deegan [Thu, 29 Mar 2007 15:33:32 +0000 (15:33 +0000)]
Merge

18 years ago[HVM] Save/restore: fix missing return code in USB restore
Tim Deegan [Thu, 29 Mar 2007 15:32:08 +0000 (15:32 +0000)]
[HVM] Save/restore: fix missing return code in USB restore
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years ago[HVM] Save/restore: Allow save/restore of multiple NICs
Tim Deegan [Thu, 29 Mar 2007 15:30:01 +0000 (15:30 +0000)]
[HVM] Save/restore: Allow save/restore of multiple NICs
Signed-off-by: Tim Deegan <Tim.Deegan@xenource.com>
18 years agoFinish off network in xm via XenAPI
Tom Wilkie [Thu, 29 Mar 2007 15:29:31 +0000 (16:29 +0100)]
Finish off network in xm via XenAPI

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

18 years ago[HVM] Save/restore: backport pcnet save/restore from qemu tip.
Tim Deegan [Thu, 29 Mar 2007 15:29:15 +0000 (15:29 +0000)]
[HVM] Save/restore: backport pcnet save/restore from qemu tip.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years ago[HVM] Save/restore: Save the ACPI PM control register in qemu
Tim Deegan [Thu, 29 Mar 2007 15:28:27 +0000 (15:28 +0000)]
[HVM] Save/restore: Save the ACPI PM control register in qemu
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years ago[HVM] Save/restore: don't get guest size from "memory_static_min"
Tim Deegan [Thu, 29 Mar 2007 15:27:18 +0000 (15:27 +0000)]
[HVM] Save/restore: don't get guest size from "memory_static_min"
since it doesn't mean that any more.  This is a sticking-plaster
to get HVM S/R working until the proper memory-map handling patch
is ready.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years agoFix bad behaviour of xm when calling event.next(), by adding a different error
Ewan Mellor [Thu, 29 Mar 2007 15:18:39 +0000 (16:18 +0100)]
Fix bad behaviour of xm when calling event.next(), by adding a different error
code (SESSION_NOT_REGISTERED).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoMake network.name_label == bridge name
Tom Wilkie [Thu, 29 Mar 2007 14:59:53 +0000 (15:59 +0100)]
Make network.name_label == bridge name

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

18 years agoMinor fix.
Ewan Mellor [Thu, 29 Mar 2007 14:51:04 +0000 (15:51 +0100)]
Minor fix.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoAdded asynchronous event notification through the Xen-API. Added a new command,
Ewan Mellor [Thu, 29 Mar 2007 14:46:30 +0000 (15:46 +0100)]
Added asynchronous event notification through the Xen-API.  Added a new command,
xm event-monitor, a new test program for the C bindings, and new bindings
themselves.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoFix the xen-api-server option parsing, so that we default to listening on
Ewan Mellor [Thu, 29 Mar 2007 14:22:02 +0000 (15:22 +0100)]
Fix the xen-api-server option parsing, so that we default to listening on
all interfaces when only a port is given.

This was broken by cset 14601:966c65f0ddba.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoFix PIF_metrics_methods declaration, which has broken PIF.
Ewan Mellor [Thu, 29 Mar 2007 14:10:26 +0000 (15:10 +0100)]
Fix PIF_metrics_methods declaration, which has broken PIF.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoThis patch adds serialization of sets with strings. I recursified the
Ewan Mellor [Thu, 29 Mar 2007 14:06:12 +0000 (15:06 +0100)]
This patch adds serialization of sets with strings. I recursified the
serialization. Only sets with strings are supported so far.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
18 years agoxen: Split domain_flags into discrete first-class fields in the
kfraser@localhost.localdomain [Thu, 29 Mar 2007 14:14:26 +0000 (15:14 +0100)]
xen: Split domain_flags into discrete first-class fields in the
domain structure. This makes them quicker to access, and simplifies
domain pause and checking of runnable status.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoxen: Pause domain when changing debug status.
kfraser@localhost.localdomain [Thu, 29 Mar 2007 12:29:24 +0000 (13:29 +0100)]
xen: Pause domain when changing debug status.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agohvm: Avoid separate nested-page-table control-register logic in SVM code.
kfraser@localhost.localdomain [Thu, 29 Mar 2007 11:04:35 +0000 (12:04 +0100)]
hvm: Avoid separate nested-page-table control-register logic in SVM code.
Clean up VMX set_cr0() function a little to avoid unnecesasry diffs
with SVM version.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agohvm: Remove extremely verbose debugging from SVM code.
kfraser@localhost.localdomain [Thu, 29 Mar 2007 10:01:41 +0000 (11:01 +0100)]
hvm: Remove extremely verbose debugging from SVM code.
It would be too verbose to actually turn on to find any non-subtle
bugs, and severely bloats the vmexit handler (making it hard to find
the real code amongst the debugging code).
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agohvm vmx: Better management of VMX control bitmaps.
kfraser@localhost.localdomain [Thu, 29 Mar 2007 09:41:37 +0000 (10:41 +0100)]
hvm vmx: Better management of VMX control bitmaps.
Distinguish between 'nice to have' and 'must have' features.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agopciback: Devices can lose config space info on D3->D0 transition, yet
Keir Fraser [Wed, 28 Mar 2007 19:19:11 +0000 (20:19 +0100)]
pciback: Devices can lose config space info on D3->D0 transition, yet
they may not (and even if they try, can not) restore the BARs. Since
Linux does not do this for us, pciback must do it for itself manually.

Possible todo: Restore all first 64 bytes of the config space?

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoia64: Remove list_move() implementation. Now implemenetd in generic list.h.
Keir Fraser [Wed, 28 Mar 2007 17:48:54 +0000 (18:48 +0100)]
ia64: Remove list_move() implementation. Now implemenetd in generic list.h.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
18 years agohvm: Clean up handling of exception intercepts.
Keir Fraser [Wed, 28 Mar 2007 17:47:17 +0000 (18:47 +0100)]
hvm: Clean up handling of exception intercepts.
Only intercept #DB/#BP if a debugger is attached.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agohvm svm: Inject #UD exception if guest tries to execute any SVM-related
Keir Fraser [Wed, 28 Mar 2007 15:52:05 +0000 (16:52 +0100)]
hvm svm: Inject #UD exception if guest tries to execute any SVM-related
function (except VMMCALL).
Signed-off-by: Mats Petersson <mats.petersson@amd.com>
18 years agoMerge
Tim Deegan [Wed, 28 Mar 2007 15:04:14 +0000 (15:04 +0000)]
Merge

18 years ago[SVM] Inject a "fake" interrupt if we delay an interrupt for an exception
Tim Deegan [Wed, 28 Mar 2007 15:02:54 +0000 (15:02 +0000)]
[SVM] Inject a "fake" interrupt if we delay an interrupt for an exception
(instead of just waiting for the next vmexit to inject the pending
interrupt, since that could be some arbitrary number of instructions later).

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years agoDon't trap int3 instructions by default - can have a major overhead in
Steven Hand [Wed, 28 Mar 2007 14:58:42 +0000 (15:58 +0100)]
Don't trap int3 instructions by default - can have a major overhead in
certain cases, and typically not used for anything.

Signed-off-by: Steven Hand <steven@xensource.com>
18 years agoRemove unused import; library moved
Tom Wilkie [Wed, 28 Mar 2007 14:31:17 +0000 (15:31 +0100)]
Remove unused import; library moved

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

18 years agolinux pciback: Proper fix for build failure.
kfraser@localhost.localdomain [Wed, 28 Mar 2007 14:01:24 +0000 (15:01 +0100)]
linux pciback: Proper fix for build failure.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agoxen: Sync the list.h macros to Linux 2.6.18.
kfraser@localhost.localdomain [Wed, 28 Mar 2007 13:43:41 +0000 (14:43 +0100)]
xen: Sync the list.h macros to Linux 2.6.18.
This also pulls in RCU-related functions, superceding a patch from Mike Day.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agolinux: Fix the pciback build (temporary hack).
kfraser@localhost.localdomain [Wed, 28 Mar 2007 13:42:54 +0000 (14:42 +0100)]
linux: Fix the pciback build (temporary hack).
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[ACM] Allow version information to be embedded in the XML representation of
kfraser@localhost.localdomain [Wed, 28 Mar 2007 13:00:56 +0000 (14:00 +0100)]
[ACM] Allow version information to be embedded in the XML representation of
the ACM policy. The translation tool has been adapted to parse the
version found in the XML representation and put it into the binary
policy. Xen has been adapted to remember the version information and
report it when asked for the current policy.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
18 years agoxenbus: check function return values of functions declared with
kfraser@localhost.localdomain [Wed, 28 Mar 2007 12:56:22 +0000 (13:56 +0100)]
xenbus: check function return values of functions declared with
__must_check post-2.6.18.

This implies completely suppressing frontend/backend operations if the
respective bus or device registration failed.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agopciback: check function return values of functions declared with
kfraser@localhost.localdomain [Wed, 28 Mar 2007 12:55:01 +0000 (13:55 +0100)]
pciback: check function return values of functions declared with
__must_check post-2.6.18.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agoRemove page_is_removable arch hook. Now the ia64 p2m semantic becomes
kfraser@localhost.localdomain [Wed, 28 Mar 2007 12:53:27 +0000 (13:53 +0100)]
Remove page_is_removable arch hook. Now the ia64 p2m semantic becomes
same as the x86 p2m table so that the hook is unnecessary any more.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
18 years agolinux evtchn: Read function in evtchn driver requires locking.
kfraser@localhost.localdomain [Wed, 28 Mar 2007 12:52:03 +0000 (13:52 +0100)]
linux evtchn: Read function in evtchn driver requires locking.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoFix to let TCP server run without SSL installed.
Tom Wilkie [Wed, 28 Mar 2007 11:38:13 +0000 (12:38 +0100)]
Fix to let TCP server run without SSL installed.

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

18 years ago[linux] Fix xenbus device to allow replies larger than 4096 bytes.
Christian Limpach [Wed, 28 Mar 2007 10:01:58 +0000 (11:01 +0100)]
[linux] Fix xenbus device to allow replies larger than 4096 bytes.
Also fix reply_queue mutex across fragmented replies and for concurrent
readers.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
18 years agoMerge with xen-ia64-unstable.hg
kfraser@localhost.localdomain [Wed, 28 Mar 2007 09:41:53 +0000 (10:41 +0100)]
Merge with xen-ia64-unstable.hg

18 years agoMerge with xen-ia64-unstable.hg
kfraser@localhost.localdomain [Wed, 28 Mar 2007 09:38:41 +0000 (10:38 +0100)]
Merge with xen-ia64-unstable.hg

18 years ago[ioemu] Don't enable monitor or serial console on virtual consoles by default.
Christian Limpach [Wed, 28 Mar 2007 09:36:49 +0000 (10:36 +0100)]
[ioemu] Don't enable monitor or serial console on virtual consoles by default.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
18 years agoEditing long lines in pygrub interactively could lead to tracebacks.
Tim Deegan [Wed, 28 Mar 2007 09:12:16 +0000 (09:12 +0000)]
Editing long lines in pygrub interactively could lead to tracebacks.
Attached patch fixes things.

Signed-off-by: Jeremy Katz <katzj@redhat.com>
18 years ago[ioemu] Revert 14585:3375391fb0c9 since this removes useful functionality.
Christian Limpach [Wed, 28 Mar 2007 09:05:37 +0000 (10:05 +0100)]
[ioemu] Revert 14585:3375391fb0c9 since this removes useful functionality.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
18 years agoFix missing import.
Ewan Mellor [Wed, 28 Mar 2007 09:05:03 +0000 (10:05 +0100)]
Fix missing import.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoFix diagnosis of unhandled exceptions.
Ewan Mellor [Wed, 28 Mar 2007 09:04:32 +0000 (10:04 +0100)]
Fix diagnosis of unhandled exceptions.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoMerge
Tim Deegan [Wed, 28 Mar 2007 08:44:08 +0000 (08:44 +0000)]
Merge

18 years ago[HVM][HAP] Fix up some memory allocation bugs
Tim Deegan [Wed, 28 Mar 2007 08:40:42 +0000 (08:40 +0000)]
[HVM][HAP] Fix up some memory allocation bugs

The attached patch initializes count_info of newly allocated hap page
with 0, and removes unnecessary page deallcation when destroying monitor
table. Without this patch, destroying hap domain will fail.

Signed-off-by: Wei Huang (wei.huang2@amd.com)
18 years agoFix typo.
Ewan Mellor [Wed, 28 Mar 2007 00:09:14 +0000 (01:09 +0100)]
Fix typo.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoAdded HTTPS support to Xend. There are new configuration options for the
Ewan Mellor [Tue, 27 Mar 2007 22:23:01 +0000 (23:23 +0100)]
Added HTTPS support to Xend.  There are new configuration options for the
Xen-API and legacy XML-RPC servers to set key and certificate files, and
xm simply needs to be configured use an https rather than an http URL.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoAdded comment regarding a Python bug.
Ewan Mellor [Tue, 27 Mar 2007 22:03:32 +0000 (23:03 +0100)]
Added comment regarding a Python bug.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoMove the client-specific parts of xmlrpclib2 into xmlrpcclient.py. This means
Ewan Mellor [Tue, 27 Mar 2007 21:34:22 +0000 (22:34 +0100)]
Move the client-specific parts of xmlrpclib2 into xmlrpcclient.py.  This means
that clients do not need to import swathes of server code.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agomerge with xen-unstable.hg
awilliam@xenbuild2.aw [Tue, 27 Mar 2007 18:21:48 +0000 (12:21 -0600)]
merge with xen-unstable.hg

18 years agoAdd auto-start and auto-stop functionality.
Ewan Mellor [Tue, 27 Mar 2007 15:52:56 +0000 (16:52 +0100)]
Add auto-start and auto-stop functionality.

Patch by Alastair Tse <atse@xensource.com>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoUse the new blkback sysfs statistics/{rd,wr}_sect to get a more accurate
Ewan Mellor [Tue, 27 Mar 2007 15:33:26 +0000 (16:33 +0100)]
Use the new blkback sysfs statistics/{rd,wr}_sect to get a more accurate
bandwidth measurements for VBD I/O.

Patch by Alastair Tse <atse@xensource.com>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agohvm svm: Do not deliver virtual interrupts concurrently with virtual exceptions.
kfraser@localhost.localdomain [Tue, 27 Mar 2007 18:05:48 +0000 (19:05 +0100)]
hvm svm: Do not deliver virtual interrupts concurrently with virtual exceptions.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agohvm svm: Initialise VMCB CR4 and shadow CR4 with 0 when VMCB is being
kfraser@localhost.localdomain [Tue, 27 Mar 2007 17:53:05 +0000 (18:53 +0100)]
hvm svm: Initialise VMCB CR4 and shadow CR4 with 0 when VMCB is being
constructed under nested paging mode. It complies with recent
reset_to_realmode change in hvmloader.
Signed-off-by: Wei Huang <wei.huang2@amd.com>
18 years agohvm: Clean up intr_assist() functions (both VMX and SVM,. but mainly
kfraser@localhost.localdomain [Tue, 27 Mar 2007 17:51:07 +0000 (18:51 +0100)]
hvm: Clean up intr_assist() functions (both VMX and SVM,. but mainly
the latter!).
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoFix typo in VDB_metrics_methods in XenAPI
Tom Wilkie [Tue, 27 Mar 2007 16:43:36 +0000 (17:43 +0100)]
Fix typo in VDB_metrics_methods in XenAPI

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

18 years ago[IA64] Remove debugger calls from panic_domain()
awilliam@xenbuild2.aw [Tue, 27 Mar 2007 15:07:51 +0000 (09:07 -0600)]
[IA64] Remove debugger calls from panic_domain()

These hang when compiled with crash_debug=y

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
18 years agoMake xm sysrq work via XenAPI re: PAUSED state problem
Tom Wilkie [Tue, 27 Mar 2007 14:47:02 +0000 (15:47 +0100)]
Make xm sysrq work via XenAPI re: PAUSED state problem

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

18 years agolinux/x86-64: cleanup the Xen-specific macros in entry-xen.S
kfraser@localhost.localdomain [Tue, 27 Mar 2007 16:23:33 +0000 (17:23 +0100)]
linux/x86-64: cleanup the Xen-specific macros in entry-xen.S

- SWITCH_TO_KERNEL is dead (and was broken)
- comments to HYPERVISOR_IRET were somewhat outdated
- updates of selecor RPLs shouldn't be done with byte size to avoid
  store-to-load forwarding issues

Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agohvm svm: Bug fix for page allocation when HAP is being used
kfraser@localhost.localdomain [Tue, 27 Mar 2007 16:21:14 +0000 (17:21 +0100)]
hvm svm: Bug fix for page allocation when HAP is being used

Initialise count_info of newly allocated hap page with 0, and removes
unnecessary page deallcation when destroying monitor table. Without
this patch, destroying hap domain will fail.

Signed-off-by: Wei Huang <wei.huang2@amd.com>
18 years agohvm: Fix undefined bit shifting in mmio emulation path
kfraser@localhost.localdomain [Tue, 27 Mar 2007 15:56:20 +0000 (16:56 +0100)]
hvm: Fix undefined bit shifting in mmio emulation path

In functions set_eflags_* (xen/arch/x86/hvm/io.c), if the first
argument "size" equals sizeof(long), the following code will produce
unintended and invalid result:
        unsigned long mask = (1 << (8 * size)) - 1;

In ANSI C, if the shift amount is greater or equal to the width of the
data type, the result is undefined. Specifically on x86, a bit mask is
applied to the shift amount, so that more significant bits are
ignored. So the above expression results 0x0 instead of the intended
~0UL.

This patch fixes this issue. Because size=0 is not a valid parameter,
rewriting the code using right shift avoids an additional condition
check.

Signed-off-by: Qing He <qing.he@intel.com>
18 years agoFix 'xm list' long output to skip legacy 'cpus'.
kfraser@localhost.localdomain [Tue, 27 Mar 2007 15:45:37 +0000 (16:45 +0100)]
Fix 'xm list' long output to skip legacy 'cpus'.
Fixes bugzilla report #935.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years agoxen: Remove legacy references to explicitly per-cpu perf counters.
kfraser@localhost.localdomain [Tue, 27 Mar 2007 15:42:47 +0000 (16:42 +0100)]
xen: Remove legacy references to explicitly per-cpu perf counters.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoxen: Make all performance counter per-cpu, avoiding the need to update
kfraser@localhost.localdomain [Tue, 27 Mar 2007 15:35:37 +0000 (16:35 +0100)]
xen: Make all performance counter per-cpu, avoiding the need to update
them with atomic (locked) ops.

Conversion here isn't complete in the sense that many places still use
the old per-CPU accessors (which are now redundant). Since the patch
is already rather big, I'd prefer replacing those in a subsequent
patch.

While doing this, I also converted x86's multicall macros to no longer
require inclusion of asm-offsets.h in the respective C file (on IA64
the use of asm-offsets.h in C sources seems more wide spread, hence
there I rather used IA64_ prefixes for the otherwise conflicting
performance counter indices).

On x86, a few counter increments get moved a little, to avoid
duplicate counting of preempted hypercalls.

Also, a few counters are being added.

IA64 changes only compile-tested, hence somebody doing active IA64
work may want to have a close look at those changes.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agohvm: Remove access to QEMU monitor in VNC server
kfraser@localhost.localdomain [Tue, 27 Mar 2007 15:23:52 +0000 (16:23 +0100)]
hvm: Remove access to QEMU monitor in VNC server

This fixes a RHEL5 errata and CVE-2007-0998.

The monitor is still accessible in debug builds of ioemu (debug=y).

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
18 years agolinux: Fix for missing response to XS_UNWATCH request.
kfraser@localhost.localdomain [Tue, 27 Mar 2007 15:19:25 +0000 (16:19 +0100)]
linux: Fix for missing response to XS_UNWATCH request.
From: Magnus Carlsson <magnus@galois.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoFurther shrink the big-lock window.
kfraser@localhost.localdomain [Tue, 27 Mar 2007 15:03:30 +0000 (16:03 +0100)]
Further shrink the big-lock window.

A few more adjustments to when the 'big' lock is taken/dropped.

Also, fix a case where the foreign domain setting may not get properly
cleared at the end of a hypercall (in case of an early error).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoAdd WARN() and generic WARN_ON().
kfraser@localhost.localdomain [Tue, 27 Mar 2007 14:53:45 +0000 (15:53 +0100)]
Add WARN() and generic WARN_ON().

Based on a patch by Jan Beulich <jbeulich@novell.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoIn order to allow building as non-root with a non-default CC (which
kfraser@localhost.localdomain [Tue, 27 Mar 2007 13:50:17 +0000 (14:50 +0100)]
In order to allow building as non-root with a non-default CC (which
root may not have access to through its $PATH), defer the generation
of an error until CC is actually needed.

Original patch by Jan Beulich <jbeulich@novell.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoDo not issue a warning on XendDomainInfo.recreate for dom0 -- this is normal
Ewan Mellor [Tue, 27 Mar 2007 13:34:34 +0000 (14:34 +0100)]
Do not issue a warning on XendDomainInfo.recreate for dom0 -- this is normal
on a clean machine.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoFix some fields so that they are declared as read-only (always should have
Ewan Mellor [Tue, 27 Mar 2007 13:22:29 +0000 (14:22 +0100)]
Fix some fields so that they are declared as read-only (always should have
been) and implement {VBD,VIF}_metrics.get_all.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoMerge
Tom Wilkie [Tue, 27 Mar 2007 13:02:17 +0000 (14:02 +0100)]
Merge

18 years agoFix typo in VIF_metrics_methods in XenAPI
Tom Wilkie [Tue, 27 Mar 2007 12:45:30 +0000 (13:45 +0100)]
Fix typo in VIF_metrics_methods in XenAPI

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

18 years agolinux: Fix a compiler warning (unused local variable).
kfraser@localhost.localdomain [Tue, 27 Mar 2007 10:54:16 +0000 (11:54 +0100)]
linux: Fix a compiler warning (unused local variable).
Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agohvm svm: Rename svm_do_vmmcall_reset_to_realmode() and some small
kfraser@localhost.localdomain [Tue, 27 Mar 2007 10:53:07 +0000 (11:53 +0100)]
hvm svm: Rename svm_do_vmmcall_reset_to_realmode() and some small
cleanups.
Signed-off-by: Mats Petersson <mats.petersson@amd.com>
18 years ago[ACM] Check offset to be within the buffer's size
kfraser@localhost.localdomain [Tue, 27 Mar 2007 10:50:43 +0000 (11:50 +0100)]
[ACM] Check offset to be within the buffer's size
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
18 years agoFix time reporting to guest.
kfraser@localhost.localdomain [Tue, 27 Mar 2007 10:47:20 +0000 (11:47 +0100)]
Fix time reporting to guest.

The recent change to guest time handling dropped a call to
update_vcpu_system_time(), leading to time-went-backwards messages and
guest hangs (the latter were observed only in 2.6.21-rc4 and only when
no serial console was in use).

Debugging the issue also revealed that some commented out debug
printk-s in x86's time handling code didn't compile under x86-64.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoFix the default for the is_a_template flag.
Ewan Mellor [Tue, 27 Mar 2007 10:31:25 +0000 (11:31 +0100)]
Fix the default for the is_a_template flag.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoFix push/jmp/call <reg/mem> to check whether the operand is register
kfraser@localhost.localdomain [Tue, 27 Mar 2007 10:20:55 +0000 (11:20 +0100)]
Fix push/jmp/call <reg/mem> to check whether the operand is register
or memory when expanding the operand to 8 bytes on x86/64.

Based on original patch by Dexuan Cui <dexuan.cui@intel.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoFix xm network-attach via XenAPI re: paused domain state
Tom Wilkie [Mon, 26 Mar 2007 16:22:45 +0000 (17:22 +0100)]
Fix xm network-attach via XenAPI re: paused domain state

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>