Re: [Xen-devel] [PATCH V3 1/8] xen: Make functions static

2014-11-11 Thread Juergen Gross
On 11/11/2014 11:21 AM, David Vrabel wrote: On 11/11/14 05:43, Juergen Gross wrote: Some functions in arch/x86/xen/p2m.c are used locally only. Make them static. Rearrange the functions in p2m.c to avoid forward declarations. While at it correct some style issues (long lines, use pr_warn

Re: [Xen-devel] Wrong cpupool handling

2014-11-11 Thread Juergen Gross
Mon Sep 17 00:00:00 2001 From: Juergen Gross jgr...@suse.com Date: Tue, 11 Nov 2014 15:03:33 +0100 Subject: [PATCH] Adjust number of domains in cpupools when destroying domain Commit bac6334b51d9bcfe57ecf4a4cb5288348fcf044a (move domain to cpupool0 before destroying it) introduced an error

Re: [Xen-devel] Wrong cpupool handling

2014-11-11 Thread Juergen Gross
From: Juergen Gross jgr...@suse.com Date: Tue, 11 Nov 2014 15:03:33 +0100 Subject: [PATCH] Adjust number of domains in cpupools when destroying domain Commit bac6334b51d9bcfe57ecf4a4cb5288348fcf044a (move domain to cpupool0 before destroying it) introduced an error in the accounting of cpupools

Re: [Xen-devel] Wrong cpupool handling

2014-11-12 Thread Juergen Gross
On 11/12/2014 10:53 AM, Dietmar Hahn wrote: Am Dienstag 11 November 2014, 15:21:01 schrieb Juergen Gross: Hi again, On 11/11/2014 01:18 PM, Dietmar Hahn wrote: Hi list, When creating a cpupool, starting and destroying a guest within this pool, then removing this pool doesn't work because

[Xen-devel] [PATCH] Adjust number of domains in cpupools when destroying domain

2014-11-12 Thread Juergen Gross
a cpupool function doing the move instead of open coding it by calling sched_move_domain(). Signed-off-by: Juergen Gross jgr...@suse.com Tested-by: Dietmar Hahn dietmar.h...@ts.fujitsu.com --- xen/common/cpupool.c| 47 +-- xen/common/domain.c

[Xen-devel] [PATCH] Adjust number of domains in cpupools when destroying domain

2014-11-12 Thread Juergen Gross
a cpupool function doing the move instead of open coding it by calling sched_move_domain(). Signed-off-by: Juergen Gross jgr...@suse.com Tested-by: Dietmar Hahn dietmar.h...@ts.fujitsu.com Reviewed-by: Andrew Cooper andrew.coop...@citrix.com --- xen/common/cpupool.c| 47

Re: [Xen-devel] [PATCH] Adjust number of domains in cpupools when destroying domain

2014-11-12 Thread Juergen Gross
On 11/12/2014 12:10 PM, George Dunlap wrote: On Wed, Nov 12, 2014 at 10:40 AM, Juergen Gross jgr...@suse.com wrote: Commit bac6334b51d9bcfe57ecf4a4cb5288348fcf044a (move domain to cpupool0 before destroying it) introduced an error in the accounting of cpupools regarding the number of domains

Re: [Xen-devel] [PATCH V3 2/8] xen: Delay remapping memory of pv-domain

2014-11-12 Thread Juergen Gross
On 11/12/2014 10:45 PM, Konrad Rzeszutek Wilk wrote: On Tue, Nov 11, 2014 at 06:43:40AM +0100, Juergen Gross wrote: diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c index a8a1a3d..d3e492b 100644 --- a/arch/x86/xen/mmu.c +++ b/arch/x86/xen/mmu.c @@ -1223,6 +1223,10 @@ static void __init

Re: [Xen-devel] [PATCH V3 4/8] xen: Delay invalidating extra memory

2014-11-12 Thread Juergen Gross
On 11/12/2014 11:10 PM, Konrad Rzeszutek Wilk wrote: @@ -376,12 +374,14 @@ void __init xen_build_dynamic_phys_to_machine(void) unsigned long max_pfn; unsigned long pfn; -if (xen_feature(XENFEAT_auto_translated_physmap)) + if

Re: [Xen-devel] [PATCH V3 5/8] x86: Introduce function to get pmd entry pointer

2014-11-12 Thread Juergen Gross
On 11/12/2014 11:12 PM, Konrad Rzeszutek Wilk wrote: On Tue, Nov 11, 2014 at 06:43:43AM +0100, Juergen Gross wrote: Introduces lookup_pmd_address() to get the address of the pmd entry related to a virtual address in the current address space. This function is needed for support of a virtual

Re: [Xen-devel] [PATCH V3 7/8] xen: switch to linear virtual mapped sparse p2m list

2014-11-13 Thread Juergen Gross
On 11/11/2014 06:47 PM, David Vrabel wrote: On 11/11/14 05:43, Juergen Gross wrote: At start of the day the Xen hypervisor presents a contiguous mfn list to a pv-domain. In order to support sparse memory this mfn list is accessed via a three level p2m tree built early in the boot process

Re: [Xen-devel] [PATCH V6 00/18] x86: Full support of PAT

2014-11-13 Thread Juergen Gross
Ingo, could you take the patches, please? Juergen On 11/03/2014 02:01 PM, Juergen Gross wrote: The x86 architecture offers via the PAT (Page Attribute Table) a way to specify different caching modes in page table entries. The PAT MSR contains 8 entries each specifying one of 6 possible cache

Re: [Xen-devel] [PATCH V3 7/8] xen: switch to linear virtual mapped sparse p2m list

2014-11-14 Thread Juergen Gross
On 11/14/2014 12:58 PM, David Vrabel wrote: On 13/11/14 09:21, Juergen Gross wrote: On 11/11/2014 06:47 PM, David Vrabel wrote: Can you please test this with the following guests/scenarios. * 64 bit dom0 with PCI devices with high MMIO BARs. I'm not sure I have a machine available

Re: [Xen-devel] [PATCH 1/4] expand x86 arch_shared_info to support linear p2m list

2014-11-14 Thread Juergen Gross
On 11/14/2014 03:59 PM, Andrew Cooper wrote: On 14/11/14 14:14, Jürgen Groß wrote: On 11/14/2014 02:56 PM, Andrew Cooper wrote: On 14/11/14 12:53, Juergen Gross wrote: On 11/14/2014 12:41 PM, Andrew Cooper wrote: On 14/11/14 09:37, Juergen Gross wrote: The x86 struct arch_shared_info field

Re: [Xen-devel] [PATCH V3 2/8] xen: Delay remapping memory of pv-domain

2014-11-14 Thread Juergen Gross
On 11/14/2014 05:47 PM, Konrad Rzeszutek Wilk wrote: On Fri, Nov 14, 2014 at 05:53:19AM +0100, Juergen Gross wrote: On 11/13/2014 08:56 PM, Konrad Rzeszutek Wilk wrote: + mfn_save = virt_to_mfn(buf); + + while (xen_remap_mfn != INVALID_P2M_ENTRY) { So the 'list' is constructed

Re: [Xen-devel] [PATCH 1/4] expand x86 arch_shared_info to support linear p2m list

2014-11-17 Thread Juergen Gross
On 11/14/2014 05:08 PM, Andrew Cooper wrote: On 14/11/14 15:32, Juergen Gross wrote: On 11/14/2014 03:59 PM, Andrew Cooper wrote: On 14/11/14 14:14, Jürgen Groß wrote: On 11/14/2014 02:56 PM, Andrew Cooper wrote: On 14/11/14 12:53, Juergen Gross wrote: On 11/14/2014 12:41 PM, Andrew Cooper

Re: [Xen-devel] [PATCH 3/4] introduce boot parameter for setting XENFEAT_virtual_p2m

2014-11-19 Thread Juergen Gross
On 11/19/2014 10:04 PM, Konrad Rzeszutek Wilk wrote: On Fri, Nov 14, 2014 at 10:37:25AM +0100, Juergen Gross wrote: Introduce a new boot parameter virt_p2m to be able to set XENFEAT_virtual_p2m for a pv domain. As long as Xen tools and kdump don't support this new feature it is turned off

Re: [Xen-devel] [PATCH V3 2/8] xen: Delay remapping memory of pv-domain

2014-11-19 Thread Juergen Gross
On 11/19/2014 08:43 PM, Konrad Rzeszutek Wilk wrote: On Fri, Nov 14, 2014 at 06:14:06PM +0100, Juergen Gross wrote: On 11/14/2014 05:47 PM, Konrad Rzeszutek Wilk wrote: On Fri, Nov 14, 2014 at 05:53:19AM +0100, Juergen Gross wrote: On 11/13/2014 08:56 PM, Konrad Rzeszutek Wilk wrote

Re: [Xen-devel] [PATCH V3 0/8] xen: Switch to virtual mapped linear p2m list

2014-11-19 Thread Juergen Gross
On 11/19/2014 09:41 PM, Konrad Rzeszutek Wilk wrote: On Tue, Nov 11, 2014 at 06:43:38AM +0100, Juergen Gross wrote: Paravirtualized kernels running on Xen use a three level tree for translation of guest specific physical addresses to machine global addresses. This p2m tree is used

Re: [Xen-devel] Buggy interaction of live migration and p2m updates

2014-11-20 Thread Juergen Gross
On 11/20/2014 07:28 PM, Andrew Cooper wrote: Hello, Tim, David and I were discussing this over lunch. This email is a (hopefully accurate) account of our findings, and potential solutions. (If I have messed up, please shout.) Currently, correct live migration of PV domains relies on the

[Xen-devel] Hypervisor error messages after xl block-detach with linux 3.18-rc5

2014-11-21 Thread Juergen Gross
Hi, while testing my linear p2m list patches I saw the following problem (even without my patches in place): In dom0 running linux 3.18-rc5 on top of Xen 4.4.1 I modified the disk image of a guest by attaching it to dom0: xl block-attach 0 file:/var/lib/libvirt/images/opensuse13-1/xvda,xvda,w

[Xen-devel] WARNings in guest during xl save/restore

2014-11-21 Thread Juergen Gross
Hi, during tests of my linear p2m list patches I stumbled over some WARNs issued during xl save and xl restore of a pv-domU with unpatched linux 3.18-rc5: during save I saw multiple entries like: [ 176.900393] WARNING: CPU: 0 PID: 9 at arch/x86/xen/enlighten.c:968

Re: [Xen-devel] Buggy interaction of live migration and p2m updates

2014-11-21 Thread Juergen Gross
On 11/21/2014 12:15 PM, Ian Campbell wrote: On Fri, 2014-11-21 at 11:07 +, Andrew Cooper wrote: On 21/11/14 10:46, Ian Campbell wrote: On Fri, 2014-11-21 at 10:24 +, Andrew Cooper wrote: On 21/11/14 09:43, Ian Campbell wrote: I don't see any (explicit) mention of the

Re: [Xen-devel] [PATCH 1/4] expand x86 arch_shared_info to support linear p2m list

2014-11-21 Thread Juergen Gross
On 11/21/2014 01:23 PM, Jan Beulich wrote: On 14.11.14 at 10:37, jgr...@suse.com.non-mime.internet wrote: --- a/xen/include/public/arch-x86/xen.h +++ b/xen/include/public/arch-x86/xen.h @@ -224,7 +224,12 @@ struct arch_shared_info { /* Frame containing list of mfns containing list of mfns

[Xen-devel] PCI-passthrough for 32 bit guests and high MMIO addresses

2014-11-21 Thread Juergen Gross
Hi, again a fallout from my linear p2m list tests: Trying to do PCI-passthrough with a 32-bit pv-domain I passed the wrong device to the domain. The MMIO address was too large for a MFN of a 32-bit system (it was 38000320-3800036f). Instead of rejecting the operation Xen tried to

Re: [Xen-devel] PCI-passthrough for 32 bit guests and high MMIO addresses

2014-11-21 Thread Juergen Gross
On 11/21/2014 03:45 PM, Andrew Cooper wrote: On 21/11/14 14:39, Juergen Gross wrote: Hi, again a fallout from my linear p2m list tests: Trying to do PCI-passthrough with a 32-bit pv-domain I passed the wrong device to the domain. The MMIO address was too large for a MFN of a 32-bit system

Re: [Xen-devel] PCI-passthrough for 32 bit guests and high MMIO addresses

2014-11-21 Thread Juergen Gross
On 11/21/2014 03:54 PM, Jan Beulich wrote: On 21.11.14 at 15:39, jgr...@suse.com wrote: Trying to do PCI-passthrough with a 32-bit pv-domain I passed the wrong device to the domain. The MMIO address was too large for a MFN of a 32-bit system (it was 38000320-3800036f). Instead of

Re: [Xen-devel] Hypervisor error messages after xl block-detach with linux 3.18-rc5

2014-11-24 Thread Juergen Gross
On 11/24/2014 11:20 AM, Jan Beulich wrote: On 24.11.14 at 10:55, jgr...@suse.com wrote: - Sometimes I see only NMI watchdog messages, looking into hanging cpu state via xen debug keys I can see the cpu(s) in question are spinning in _raw_spin_lock():

Re: [Xen-devel] Hypervisor error messages after xl block-detach with linux 3.18-rc5

2014-11-24 Thread Juergen Gross
On 11/24/2014 11:59 AM, Juergen Gross wrote: On 11/24/2014 11:20 AM, Jan Beulich wrote: On 24.11.14 at 10:55, jgr...@suse.com wrote: - Sometimes I see only NMI watchdog messages, looking into hanging cpu state via xen debug keys I can see the cpu(s) in question are spinning

Re: [Xen-devel] Hypervisor error messages after xl block-detach with linux 3.18-rc5

2014-11-24 Thread Juergen Gross
On 11/24/2014 04:09 PM, Juergen Gross wrote: On 11/24/2014 11:59 AM, Juergen Gross wrote: On 11/24/2014 11:20 AM, Jan Beulich wrote: On 24.11.14 at 10:55, jgr...@suse.com wrote: - Sometimes I see only NMI watchdog messages, looking into hanging cpu state via xen debug keys I can see

Re: [Xen-devel] Hypervisor error messages after xl block-detach with linux 3.18-rc5

2014-11-24 Thread Juergen Gross
On 11/24/2014 04:09 PM, Juergen Gross wrote: On 11/24/2014 11:59 AM, Juergen Gross wrote: On 11/24/2014 11:20 AM, Jan Beulich wrote: On 24.11.14 at 10:55, jgr...@suse.com wrote: - Sometimes I see only NMI watchdog messages, looking into hanging cpu state via xen debug keys I can see

[Xen-devel] Failure on make clean

2014-11-24 Thread Juergen Gross
Hi, make clean in xen-unstable is failing: make[2]: Entering directory '/home/gross/xen/tools' set -e; if test -d qemu-xen-traditional-dir/.; then \ make -C qemu-xen-traditional-dir clean; \ fi make[3]: Entering directory '/home/gross/xen/tools/qemu-xen-traditional-dir-remote'

Re: [Xen-devel] Failure on make clean

2014-11-25 Thread Juergen Gross
On 11/25/2014 10:01 AM, Jan Beulich wrote: On 25.11.14 at 08:44, jgr...@suse.com wrote: Hi, make clean in xen-unstable is failing: make[2]: Entering directory '/home/gross/xen/tools' set -e; if test -d qemu-xen-traditional-dir/.; then \ make -C qemu-xen-traditional-dir clean; \ fi

Re: [Xen-devel] Hypervisor error messages after xl block-detach with linux 3.18-rc5

2014-11-25 Thread Juergen Gross
On 11/24/2014 11:02 AM, Ian Campbell wrote: On Mon, 2014-11-24 at 10:55 +0100, Juergen Gross wrote: On 11/21/2014 02:57 PM, Konrad Rzeszutek Wilk wrote: On Fri, Nov 21, 2014 at 09:42:11AM +0100, Juergen Gross wrote: Hi, while testing my linear p2m list patches I saw the following problem

Re: [Xen-devel] Hypervisor error messages after xl block-detach with linux 3.18-rc5

2014-11-25 Thread Juergen Gross
On 11/25/2014 05:18 PM, Ian Campbell wrote: On Tue, 2014-11-25 at 17:10 +0100, Juergen Gross wrote: On 11/24/2014 11:02 AM, Ian Campbell wrote: On Mon, 2014-11-24 at 10:55 +0100, Juergen Gross wrote: On 11/21/2014 02:57 PM, Konrad Rzeszutek Wilk wrote: On Fri, Nov 21, 2014 at 09:42:11AM

Re: [Xen-devel] Hypervisor error messages after xl block-detach with linux 3.18-rc5

2014-11-25 Thread Juergen Gross
On 11/24/2014 11:02 AM, Ian Campbell wrote: On Mon, 2014-11-24 at 10:55 +0100, Juergen Gross wrote: On 11/21/2014 02:57 PM, Konrad Rzeszutek Wilk wrote: On Fri, Nov 21, 2014 at 09:42:11AM +0100, Juergen Gross wrote: Hi, while testing my linear p2m list patches I saw the following problem

Re: [Xen-devel] frequent lockups in 3.18rc4

2014-11-26 Thread Juergen Gross
On 11/26/2014 07:21 AM, Linus Torvalds wrote: On Tue, Nov 25, 2014 at 9:52 PM, Linus Torvalds torva...@linux-foundation.org wrote: And leave it running for a while, and see if the trace is always the same, or if there are variations on it... Amusing. Lookie here:

[Xen-devel] kdump with xen-unstable on efi machine

2014-11-26 Thread Juergen Gross
Hi, I tried to enable kdump on my test-machine with actual xen-unstable booting via EFI. The kdump kernel is not being loaded. I'm seeing the memory being reserved: (XEN) EFI RAM map: (XEN) - 000a (usable) (XEN) 0010 - 4bc0 (usable) (XEN)

Re: [Xen-devel] kdump with xen-unstable on efi machine

2014-11-26 Thread Juergen Gross
On 11/26/2014 01:41 PM, Andrew Cooper wrote: On 26/11/14 12:15, Juergen Gross wrote: Hi, I tried to enable kdump on my test-machine with actual xen-unstable booting via EFI. The kdump kernel is not being loaded. I'm seeing the memory being reserved: (XEN) EFI RAM map: (XEN

Re: [Xen-devel] kdump with xen-unstable on efi machine

2014-11-26 Thread Juergen Gross
On 11/26/2014 03:30 PM, Konrad Rzeszutek Wilk wrote: On Wed, Nov 26, 2014 at 03:01:51PM +0100, Juergen Gross wrote: On 11/26/2014 01:41 PM, Andrew Cooper wrote: On 26/11/14 12:15, Juergen Gross wrote: Hi, I tried to enable kdump on my test-machine with actual xen-unstable booting via EFI

Re: [Xen-devel] kdump with xen-unstable on efi machine

2014-11-26 Thread Juergen Gross
On 11/27/2014 01:19 AM, Daniel Kiper wrote: On Wed, Nov 26, 2014 at 03:49:54PM +0100, Juergen Gross wrote: On 11/26/2014 03:30 PM, Konrad Rzeszutek Wilk wrote: On Wed, Nov 26, 2014 at 03:01:51PM +0100, Juergen Gross wrote: On 11/26/2014 01:41 PM, Andrew Cooper wrote: On 26/11/14 12:15

Re: [Xen-devel] [PATCH] xen: privcmd: schedule() after private hypercall when non CONFIG_PREEMPT

2014-11-27 Thread Juergen Gross
On 11/27/2014 07:50 PM, Andrew Cooper wrote: On 27/11/14 18:36, Luis R. Rodriguez wrote: On Thu, Nov 27, 2014 at 07:36:31AM +0100, Juergen Gross wrote: On 11/26/2014 11:26 PM, Luis R. Rodriguez wrote: From: Luis R. Rodriguez mcg...@suse.com Some folks had reported that some xen hypercalls

[Xen-devel] [PATCH V4 08/10] xen: Hide get_phys_to_machine() to be able to tune common path

2014-11-28 Thread Juergen Gross
Today get_phys_to_machine() is always called when the mfn for a pfn is to be obtained. Add a wrapper __pfn_to_mfn() as inline function to be able to avoid calling get_phys_to_machine() when possible as soon as the switch to a linear mapped p2m list has been done. Signed-off-by: Juergen Gross jgr

[Xen-devel] [PATCH V4 00/10] xen: Switch to virtual mapped linear p2m list

2014-11-28 Thread Juergen Gross
up set_phys_to_machine() as suggested by David Vrabel Changes in V2: - splitted patch 2 in 4 smaller ones as requested by David Vrabel - added highmem check when remapping kernel memory as requested by David Vrabel Juergen Gross (10): xen: fix some style issues in p2m.c xen: Make

[Xen-devel] [PATCH V4 03/10] xen: use common page allocation function in p2m.c

2014-11-28 Thread Juergen Gross
the to be called allocation routine dynamically based on the boot progress. This allows moving initialization steps without having to care about changing allocation calls. Signed-off-by: Juergen Gross jgr...@suse.com --- arch/x86/xen/mmu.c | 2 ++ arch/x86/xen/p2m.c | 57

[Xen-devel] [PATCH V4 05/10] xen: Delay m2p_override initialization

2014-11-28 Thread Juergen Gross
be done later without doing any harm, removing the need for allocating memory via extend_brk(). While at it make some m2p override functions static as they are only used internally. Signed-off-by: Juergen Gross jgr...@suse.com Reviewed-by: David Vrabel david.vra...@citrix.com Reviewed-by: Konrad

[Xen-devel] [PATCH V4 2/9] xen: Make functions static

2014-11-28 Thread Juergen Gross
Some functions in arch/x86/xen/p2m.c are used locally only. Make them static. Rearrange the functions in p2m.c to avoid forward declarations. Signed-off-by: Juergen Gross jgr...@suse.com --- arch/x86/include/asm/xen/page.h | 6 - arch/x86/xen/p2m.c | 346

[Xen-devel] [PATCH V4 09/10] xen: switch to linear virtual mapped sparse p2m list

2014-11-28 Thread Juergen Gross
, ballooning up and down - 32 bit domU, save and restore - 32 bit domU with PCI passthrough - 64 bit domU, 8 GB, 2049 MB, 5000 MB - 64 bit domU, ballooning up and down - 64 bit domU, save and restore - 64 bit domU with PCI passthrough Signed-off-by: Juergen Gross jgr...@suse.com --- arch/x86/include/asm/xen

[Xen-devel] [PATCH V4 04/10] xen: Delay remapping memory of pv-domain

2014-11-28 Thread Juergen Gross
memory initialization time due to it's fixed structure. A further advantage is the reduction in complexity and code volume as we don't have to be careful regarding memory restrictions during p2m updates. Signed-off-by: Juergen Gross jgr...@suse.com Reviewed-by: David Vrabel david.vra...@citrix.com

[Xen-devel] [PATCH V4 07/10] x86: Introduce function to get pmd entry pointer

2014-11-28 Thread Juergen Gross
. Signed-off-by: Juergen Gross jgr...@suse.com --- arch/x86/include/asm/pgtable_types.h | 1 + arch/x86/mm/pageattr.c | 20 2 files changed, 21 insertions(+) diff --git a/arch/x86/include/asm/pgtable_types.h b/arch/x86/include/asm/pgtable_types.h index 0778964

[Xen-devel] [PATCH V4 06/10] xen: Delay invalidating extra memory

2014-11-28 Thread Juergen Gross
process until some more basic memory management functions are callable. This removes the need to create new p2m entries until virtual memory management is available. Signed-off-by: Juergen Gross jgr...@suse.com Reviewed-by: David Vrabel david.vra...@citrix.com --- arch/x86/include/asm/xen/page.h | 3

[Xen-devel] [PATCH V4 10/10] xen: Speed up set_phys_to_machine() by using read-only mappings

2014-11-28 Thread Juergen Gross
with no allocation much faster as it only requires a single write of the new mfn instead of walking the address translation tables and checking for the special cases. Suggested-by: David Vrabel david.vra...@citrix.com Signed-off-by: Juergen Gross jgr...@suse.com Reviewed-by: David Vrabel david.vra

Re: [Xen-devel] [Patch V2] expand x86 arch_shared_info to support linear p2m list

2014-12-01 Thread Juergen Gross
On 12/01/2014 02:37 PM, Jan Beulich wrote: On 01.12.14 at 14:11, jgr...@suse.com wrote: On 12/01/2014 12:29 PM, Jan Beulich wrote: On 01.12.14 at 12:19, david.vra...@citrix.com wrote: On 01/12/14 10:15, Jan Beulich wrote: On 01.12.14 at 10:29, jgr...@suse.com wrote: The x86 struct

Re: [Xen-devel] [PATCH] xen: privcmd: schedule() after private hypercall when non CONFIG_PREEMPT

2014-12-01 Thread Juergen Gross
On 12/01/2014 02:32 PM, Luis R. Rodriguez wrote: On Mon, Dec 01, 2014 at 11:01:18AM +, David Vrabel wrote: On 28/11/14 04:49, Juergen Gross wrote: On 11/27/2014 07:50 PM, Andrew Cooper wrote: XenServer uses https://github.com/xenserver/linux-3.x.pg/blob/master/master/0001-x86-xen-allow

Re: [Xen-devel] [PATCH] xen: privcmd: schedule() after private hypercall when non CONFIG_PREEMPT

2014-12-01 Thread Juergen Gross
, 2014 at 11:11:43AM +, David Vrabel wrote: On 27/11/14 18:36, Luis R. Rodriguez wrote: On Thu, Nov 27, 2014 at 07:36:31AM +0100, Juergen Gross wrote: On 11/26/2014 11:26 PM, Luis R. Rodriguez wrote: From: Luis R. Rodriguez mcg...@suse.com Some folks had reported that some xen hypercalls take

[Xen-devel] PVHVM drivers in upstream linux kernel

2014-12-02 Thread Juergen Gross
Hi, looking into the upstream linux sources I realized that the PVHVM drivers of XEN are only available with the pvops kernel. Is this on purpose? Shouldn't the frontend drivers, xen/platform-pci.c etc. be configurable without having to enable CONFIG_PARAVIRT? Juergen

Re: [Xen-devel] PVHVM drivers in upstream linux kernel

2014-12-02 Thread Juergen Gross
On 12/02/2014 11:54 AM, David Vrabel wrote: On 02/12/14 09:39, Juergen Gross wrote: Hi, looking into the upstream linux sources I realized that the PVHVM drivers of XEN are only available with the pvops kernel. Is this on purpose? Shouldn't the frontend drivers, xen/platform-pci.c etc

Re: [Xen-devel] PVHVM drivers in upstream linux kernel

2014-12-02 Thread Juergen Gross
On 12/02/2014 12:05 PM, Ian Campbell wrote: On Tue, 2014-12-02 at 10:54 +, David Vrabel wrote: On 02/12/14 09:39, Juergen Gross wrote: Hi, looking into the upstream linux sources I realized that the PVHVM drivers of XEN are only available with the pvops kernel. Is this on purpose

Re: [Xen-devel] PVHVM drivers in upstream linux kernel

2014-12-02 Thread Juergen Gross
On 12/02/2014 12:36 PM, Ian Campbell wrote: On Tue, 2014-12-02 at 12:33 +0100, Juergen Gross wrote: On 12/02/2014 12:05 PM, Ian Campbell wrote: On Tue, 2014-12-02 at 10:54 +, David Vrabel wrote: On 02/12/14 09:39, Juergen Gross wrote: Hi, looking into the upstream linux sources I

Re: [Xen-devel] PVHVM drivers in upstream linux kernel

2014-12-02 Thread Juergen Gross
On 12/02/2014 12:59 PM, David Vrabel wrote: On 02/12/14 11:33, Juergen Gross wrote: I think we have customers wanting to run a default kernel as domU. So it isn't always the distro refusing paravirt, it might be the user... I don't think this is a sensible use case but I'm not adverse

[Xen-devel] [Patch V3] expand x86 arch_shared_info to support linear p2m list

2014-12-05 Thread Juergen Gross
expands struct arch_shared_info with a new p2m list virtual address, the root of the page table root and a p2m generation count. The new information is indicated by the domain to be valid by storing a non-zero value into the page table root member. Signed-off-by: Juergen Gross jgr...@suse.com

[Xen-devel] [PATCH] xen: introduce helper functions to do save read and write accesses

2014-12-05 Thread Juergen Gross
the helpers in page.h and p2m.c. This will fix the sparse warnings when doing make C=1. Signed-off-by: Juergen Gross jgr...@suse.com --- arch/x86/include/asm/xen/page.h | 16 +++- arch/x86/xen/p2m.c | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git

[Xen-devel] [PATCH] xen: annotate xen_set_identity_and_remap_chunk() with __init

2014-12-07 Thread Juergen Gross
Commit 5b8e7d80542487ff1bf17b4cf2922a01dee13d3a removed the __init annotation from xen_set_identity_and_remap_chunk(). Add it again. Signed-off-by: Juergen Gross jgr...@suse.com --- arch/x86/xen/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/xen/setup.c b

[Xen-devel] [PATCH] xen: switch to post-init routines in xen mmu.c earlier

2014-12-10 Thread Juergen Gross
With the virtual mapped linear p2m list the post-init mmu operations must be used for setting up the p2m mappings, as in case of CONFIG_FLATMEM the init routines may trigger BUGs. Reported-by: Boris Ostrovsky boris.ostrov...@oracle.com Signed-off-by: Juergen Gross jgr...@suse.com --- arch/x86

Re: [Xen-devel] [PATCH] xen: switch to post-init routines in xen mmu.c earlier

2014-12-10 Thread Juergen Gross
On 12/10/2014 05:13 PM, Konrad Rzeszutek Wilk wrote: On Wed, Dec 10, 2014 at 04:56:03PM +0100, Juergen Gross wrote: With the virtual mapped linear p2m list the post-init mmu operations must be used for setting up the p2m mappings, as in case of CONFIG_FLATMEM the init routines may trigger BUGs

Re: [Xen-devel] [PATCH] xen: switch to post-init routines in xen mmu.c earlier

2014-12-10 Thread Juergen Gross
On 12/10/2014 07:07 PM, David Vrabel wrote: On 10/12/14 15:56, Juergen Gross wrote: With the virtual mapped linear p2m list the post-init mmu operations must be used for setting up the p2m mappings, as in case of CONFIG_FLATMEM the init routines may trigger BUGs. Reported-by: Boris Ostrovsky

[Xen-devel] [PATCH 2/4] xen: synchronize include/xen/interface/xen.h with xen

2014-12-11 Thread Juergen Gross
The header include/xen/interface/xen.h doesn't contain all definitions from Xen's version of that header. Update it accordingly. Signed-off-by: Juergen Gross jgr...@suse.com --- arch/x86/xen/trace.c| 2 +- include/xen/interface/xen.h | 6 +- 2 files changed, 6 insertions(+), 2

[Xen-devel] [PATCH 4/4] xen: use generated hypercall symbols in arch/x86/xen/xen-head.S

2014-12-11 Thread Juergen Gross
. Based-on-patch-by: Jan Beulich jbeul...@suse.com Signed-off-by: Juergen Gross jgr...@suse.com --- arch/x86/xen/xen-head.S | 62 - 1 file changed, 10 insertions(+), 52 deletions(-) diff --git a/arch/x86/xen/xen-head.S b/arch/x86/xen/xen-head.S index

[Xen-devel] [PATCH 1/4] xen: build infrastructure for generating hypercall depending symbols

2014-12-11 Thread Juergen Gross
Today there are several places in the kernel which build tables containing one entry for each possible Xen hypercall. Create an infrastructure to be able to generate these tables at build time. Based-on-patch-by: Jan Beulich jbeul...@suse.com Signed-off-by: Juergen Gross jgr...@suse.com --- arch

[Xen-devel] [PATCH 3/4] xen: use generated hypervisor symbols in arch/x86/xen/trace.c

2014-12-11 Thread Juergen Gross
Instead of manually list all hypervisor calls in arch/x86/xen/trace.c use the auto generated list. Signed-off-by: Juergen Gross jgr...@suse.com --- arch/x86/xen/trace.c | 50 -- 1 file changed, 4 insertions(+), 46 deletions(-) diff --git a/arch

[Xen-devel] [PATCH 0/4] xen: auto-generate symbols for xen hypercalls

2014-12-11 Thread Juergen Gross
The Xen hypercalls are defined in include/xen/interface/xen.h. There are some places where for each hypercall a table element is created. Instead of manually add each hypercall element to these tables use an auto generated header built during the make process of the kernel. Juergen Gross (4

[Xen-devel] Xen's Linux kernel config options

2014-12-12 Thread Juergen Gross
Hi, This is a design proposal for a rework of the config options on the Linux kernel which are related to Xen. The need to do so arose from the fact that it is currently not possible to build the Xen frontend drivers for a non-pvops kernel, e.g. to run them in a HVM-domain. There are more

Re: [Xen-devel] [PATCH 1/4] xen: build infrastructure for generating hypercall depending symbols

2014-12-14 Thread Juergen Gross
On 12/12/2014 11:48 PM, Boris Ostrovsky wrote: On 12/11/2014 01:04 PM, Juergen Gross wrote: diff --git a/scripts/xen-hypercalls.sh b/scripts/xen-hypercalls.sh new file mode 100644 index 000..e6447b7 --- /dev/null +++ b/scripts/xen-hypercalls.sh @@ -0,0 +1,11 @@ +#!/bin/sh +out=$1 +shift

Re: [Xen-devel] Xen's Linux kernel config options

2014-12-15 Thread Juergen Gross
On 12/12/2014 05:44 PM, Konrad Rzeszutek Wilk wrote: On Fri, Dec 12, 2014 at 02:17:27PM +0100, Juergen Gross wrote: Hi, This is a design proposal for a rework of the config options on the Linux kernel which are related to Xen. The need to do so arose from the fact that it is currently

Re: [Xen-devel] Xen's Linux kernel config options

2014-12-15 Thread Juergen Gross
On 12/12/2014 06:29 PM, David Vrabel wrote: On 12/12/14 13:17, Juergen Gross wrote: As a first draft I'd suggest the following: Some rough thoughts below. Option Selects Depends

Re: [Xen-devel] [PATCH 4/4] xen: use generated hypercall symbols in arch/x86/xen/xen-head.S

2014-12-16 Thread Juergen Gross
On 12/16/2014 11:24 AM, David Vrabel wrote: On 16/12/14 05:55, Juergen Gross wrote: On 12/15/2014 01:05 PM, David Vrabel wrote: On 11/12/14 18:04, Juergen Gross wrote: Instead of manually list each hypercall in arch/x86/xen/xen-head.S use the auto generated symbol list. This also corrects

Re: [Xen-devel] [PATCH 1/4] xen: build infrastructure for generating hypercall depending symbols

2014-12-16 Thread Juergen Gross
On 12/15/2014 12:38 PM, David Vrabel wrote: On 11/12/14 18:04, Juergen Gross wrote: Today there are several places in the kernel which build tables containing one entry for each possible Xen hypercall. Create an infrastructure to be able to generate these tables at build time. Does arm

[Xen-devel] [Patch V2 0/4] xen: auto-generate symbols for xen hypercalls

2014-12-17 Thread Juergen Gross
autogenerated comment to generated header file as suggested by David Vrabel (patch 1) - some minor adjustments to patch 4 as suggested by David Vrabel Juergen Gross (4): xen: build infrastructure for generating hypercall depending symbols xen: synchronize include/xen/interface/xen.h with xen

[Xen-devel] [Patch V2 1/4] xen: build infrastructure for generating hypercall depending symbols

2014-12-17 Thread Juergen Gross
Today there are several places in the kernel which build tables containing one entry for each possible Xen hypercall. Create an infrastructure to be able to generate these tables at build time. Based-on-patch-by: Jan Beulich jbeul...@suse.com Signed-off-by: Juergen Gross jgr...@suse.com --- arch

[Xen-devel] [Patch V2 2/4] xen: synchronize include/xen/interface/xen.h with xen

2014-12-17 Thread Juergen Gross
The header include/xen/interface/xen.h doesn't contain all definitions from Xen's version of that header. Update it accordingly. Signed-off-by: Juergen Gross jgr...@suse.com Reviewed-by: David Vrabel david.vra...@citrix.com --- arch/x86/xen/trace.c| 2 +- include/xen/interface/xen.h | 6

Re: [Xen-devel] [OSSTEST PATCH 0/2] Test case for cpupools

2014-12-18 Thread Juergen Gross
On 12/18/2014 02:38 PM, Dario Faggioli wrote: Just the fact that we are not doing anything to smoke test cpupools, while I think we should. :-) This add something quite basic, but it's, IMO, already representative one typically does with cpupools. We can add more pCPU related tricks (removing,

Re: [Xen-devel] [OSSTEST PATCH 1/2] ts-cpupools: new test script

2014-12-18 Thread Juergen Gross
and then back to Pool-0. Signed-off-by: Dario Faggioli dario.faggi...@citrix.com Acked-by: Juergen Gross jgr...@suse.com --- ts-cpupools | 124 +++ 1 file changed, 124 insertions(+) create mode 100755 ts-cpupools diff --git a/ts

Re: [Xen-devel] [OSSTEST PATCH 2/2] Testing cpupools: recipe for it and job definition

2014-12-18 Thread Juergen Gross
On 12/18/2014 02:39 PM, Dario Faggioli wrote: Signed-off-by: Dario Faggioli dario.faggi...@citrix.com --- make-flight | 11 +++ sg-run-job |6 ++ 2 files changed, 17 insertions(+) diff --git a/make-flight b/make-flight index a91f256..ce02c89 100755 --- a/make-flight +++

Re: [Xen-devel] [OSSTEST PATCH 2/2] Testing cpupools: recipe for it and job definition

2014-12-18 Thread Juergen Gross
On 12/18/2014 04:04 PM, Wei Liu wrote: On Thu, Dec 18, 2014 at 04:00:12PM +0100, Juergen Gross wrote: On 12/18/2014 02:39 PM, Dario Faggioli wrote: Signed-off-by: Dario Faggioli dario.faggi...@citrix.com --- make-flight | 11 +++ sg-run-job |6 ++ 2 files changed, 17

Re: [Xen-devel] [PATCH V6 01/18] x86: Make page cache mode a real type

2015-01-22 Thread Juergen Gross
On 01/22/2015 12:06 PM, Thomas Gleixner wrote: On Thu, 22 Jan 2015, Juergen Gross wrote: On 01/22/2015 08:11 AM, Steven Noonan wrote: I notice these two symbols are exported GPL-only. This breaks builds of several out-of-tree non-GPL modules such as the NVIDIA driver, and VMware modules, etc

Re: [Xen-devel] Xen's Linux kernel config options V2

2015-02-03 Thread Juergen Gross
to be available for both backend and frontend we could use a dependency on XEN_BACKEND || XEN_FRONTEND. Thoughts? On Fri, Jan 9, 2015 at 11:02 AM, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: On Tue, Dec 16, 2014 at 05:21:05PM +0100, Juergen Gross wrote: After some feedback for the first

Re: [Xen-devel] [PATCH linux-2.6.18] xen: mark pvscsi frontend request consumed only after last read

2015-02-02 Thread Juergen Gross
On 02/02/2015 08:52 AM, Jan Beulich wrote: On 30.01.15 at 14:51, jgr...@suse.com.non-mime.internet wrote: A request in the ring buffer mustn't be read after it has been marked as consumed. Otherwise it might already have been reused by the frontend without violating the ring protocol. This is

Re: [Xen-devel] pvSCSI test

2015-02-06 Thread Juergen Gross
On 02/06/2015 10:32 AM, Kristian Hagsted Rasmussen wrote: On Wednesday, February 4, 2015 05:41, Juergen Gross jgr...@suse.com wrote: To: Kristian Hagsted Rasmussen; Olaf Hering; xen-de...@lists.xensource.com Subject: Re: pvSCSI test On 02/03/2015 07:16 PM, Kristian Hagsted Rasmussen wrote

Re: [Xen-devel] pvSCSI test

2015-02-06 Thread Juergen Gross
On 02/06/2015 03:02 PM, Kristian Hagsted Rasmussen wrote: On Friday, February 6, 2015 10:57, Juergen Gross jgr...@suse.com wrote: To: Kristian Hagsted Rasmussen; Olaf Hering; xen-de...@lists.xensource.com Subject: Re: pvSCSI test On 02/06/2015 10:32 AM, Kristian Hagsted Rasmussen wrote

Re: [Xen-devel] [RESEND Patch V2 1/4] xen: build infrastructure for generating hypercall depending symbols

2015-02-06 Thread Juergen Gross
Hey, x86 maintainers! could you please comment? Juergen On 01/28/2015 06:11 AM, Juergen Gross wrote: *Ping* David wants a comment from the x86 maintainers. Juergen On 01/21/2015 08:49 AM, Juergen Gross wrote: Today there are several places in the kernel which build tables containing one

Re: [Xen-devel] [PATCH] xen-scsiback: some modifications about code comment

2015-02-08 Thread Juergen Gross
On 02/07/2015 04:31 AM, Rudy Zhang wrote: From: Tao Chen boby.c...@huawei.com Signed-off-by: Tao Chen boby.c...@huawei.com Are some white space fixes in comments really worth a patch? Juergen --- drivers/xen/xen-scsiback.c | 16 1 file changed, 8 insertions(+), 8

Re: [Xen-devel] pvSCSI test

2015-02-08 Thread Juergen Gross
On 02/06/2015 09:33 PM, Kristian Hagsted Rasmussen wrote: On Friday, February 6, 2015 15:25, Juergen Gross jgr...@suse.com wrote: To: Kristian Hagsted Rasmussen; Olaf Hering; xen-de...@lists.xensource.com Subject: Re: [Xen-devel] pvSCSI test After some more fiddling around, I believe

Re: [Xen-devel] Xen's Linux kernel config options v3

2015-02-08 Thread Juergen Gross
On 02/07/2015 12:44 AM, Luis R. Rodriguez wrote: This is a third respin for a design proposal for a rework on the config options on the Linux kernel related to Xen. The frist two proposals came from Juergen, I'm taking on the work now as some other work I am doing is related to this. This third

Re: [Xen-devel] [Patch V2 0/4] xen: auto-generate symbols for xen hypercalls

2015-01-18 Thread Juergen Gross
Hi, anything missing to take these patches? Juergen On 12/17/2014 10:50 AM, Juergen Gross wrote: The Xen hypercalls are defined in include/xen/interface/xen.h. There are some places where for each hypercall a table element is created. Instead of manually add each hypercall element

Re: [Xen-devel] [PATCH V6 01/18] x86: Make page cache mode a real type

2015-01-22 Thread Juergen Gross
On 01/22/2015 08:11 AM, Steven Noonan wrote: On Mon, Nov 3, 2014 at 5:01 AM, Juergen Gross jgr...@suse.com wrote: At the moment there are a lot of places that handle setting or getting the page cache mode by treating the pgprot bits equal to the cache mode. This is only true because

[Xen-devel] [RESEND Patch V2 0/4] xen: auto-generate symbols for xen hypercalls

2015-01-20 Thread Juergen Gross
autogenerated comment to generated header file as suggested by David Vrabel (patch 1) - some minor adjustments to patch 4 as suggested by David Vrabel Juergen Gross (4): xen: build infrastructure for generating hypercall depending symbols xen: synchronize include/xen/interface/xen.h with xen

[Xen-devel] [RESEND Patch V2 2/4] xen: synchronize include/xen/interface/xen.h with xen

2015-01-20 Thread Juergen Gross
The header include/xen/interface/xen.h doesn't contain all definitions from Xen's version of that header. Update it accordingly. Signed-off-by: Juergen Gross jgr...@suse.com Reviewed-by: David Vrabel david.vra...@citrix.com --- arch/x86/xen/trace.c| 2 +- include/xen/interface/xen.h | 6

[Xen-devel] [RESEND Patch V2 3/4] xen: use generated hypervisor symbols in arch/x86/xen/trace.c

2015-01-20 Thread Juergen Gross
Instead of manually list all hypervisor calls in arch/x86/xen/trace.c use the auto generated list. Signed-off-by: Juergen Gross jgr...@suse.com Reviewed-by: David Vrabel david.vra...@citrix.com --- arch/x86/xen/trace.c | 50 -- 1 file changed, 4

[Xen-devel] [RESEND Patch V2 4/4] xen: use generated hypercall symbols in arch/x86/xen/xen-head.S

2015-01-20 Thread Juergen Gross
. Based-on-patch-by: Jan Beulich jbeul...@suse.com Signed-off-by: Juergen Gross jgr...@suse.com Reviewed-by: David Vrabel david.vra...@citrix.com --- arch/x86/xen/xen-head.S | 63 - 1 file changed, 10 insertions(+), 53 deletions(-) diff --git a/arch/x86

[Xen-devel] [RESEND Patch V2 1/4] xen: build infrastructure for generating hypercall depending symbols

2015-01-20 Thread Juergen Gross
Today there are several places in the kernel which build tables containing one entry for each possible Xen hypercall. Create an infrastructure to be able to generate these tables at build time. Based-on-patch-by: Jan Beulich jbeul...@suse.com Signed-off-by: Juergen Gross jgr...@suse.com Reviewed

  1   2   3   4   5   6   7   8   9   10   >