Re: [Xen-devel] Question about libxc-migration-stream.pandoc

2017-08-09 Thread Andrew Cooper
On 09/08/17 15:00, Bruno Alvisio wrote: > Hello, > > In /docs/specs/libxc-migration-stream.pandoc "x86 HVM Guest" section > states that: > > "HVM\_PARAMS must precede HVM\_CONTEXT, as certain parameters can > affect the validity of architectural state in the context." (line 679) > > However, from t

[Xen-devel] Question about libxc-migration-stream.pandoc

2017-08-09 Thread Bruno Alvisio
Hello, In /docs/specs/libxc-migration-stream.pandoc "x86 HVM Guest" section states that: "HVM\_PARAMS must precede HVM\_CONTEXT, as certain parameters can affect the validity of architectural state in the context." (line 679) However, from the code it looks like the HVM_CONTEXT record is sent an

Re: [Xen-devel] [Question] how to avoid Xen using a memory range?

2017-08-07 Thread Jan Beulich
>>> Chao Gao 08/04/17 10:12 AM >>> >I have a machine which has two numa nodes. The NODE0 contains >memory range from 0 to 0x18400MB and NODE1 contains memory range >from 0x18400MB to 0x1c400MB. The resource available to dom0 is >restricted through adding "dom0_mem=10G dom0_nodes=0 dom0_max_vcpus=4

[Xen-devel] [Question] how to avoid Xen using a memory range?

2017-08-04 Thread Chao Gao
Hi, everyone. I have a machine which has two numa nodes. The NODE0 contains memory range from 0 to 0x18400MB and NODE1 contains memory range from 0x18400MB to 0x1c400MB. The resource available to dom0 is restricted through adding "dom0_mem=10G dom0_nodes=0 dom0_max_vcpus=48" to Xen Command Line. E

Re: [Xen-devel] Question about hvm_monitor_interrupt

2017-07-21 Thread Razvan Cojocaru
On 07/22/2017 12:33 AM, Tamas K Lengyel wrote: > Hey Razvan, Hello, > the vm_event that is being generated by doing > VM_EVENT_FLAG_GET_NEXT_INTERRUPT sends almost all required information > about the interrupt to the listener to allow it to get reinjected, > except the instruction length. If the

[Xen-devel] Question about hvm_monitor_interrupt

2017-07-21 Thread Tamas K Lengyel
Hey Razvan, the vm_event that is being generated by doing VM_EVENT_FLAG_GET_NEXT_INTERRUPT sends almost all required information about the interrupt to the listener to allow it to get reinjected, except the instruction length. If the listener wants to reinject the interrupt to the guest via xc_hvm_

Re: [Xen-devel] Question about Xen on ARM

2017-07-18 Thread Andrii Anisov
Dear Christopher, On 18.07.17 12:08, Andrii Anisov wrote: In order to build the required system, a board candidate should: - have a CPU able to switch to EL2/Virtualization mode - have a public bootloader sources able to switch CPU to EL2/Virtualizaiotn mode - have a Linux system

Re: [Xen-devel] Question about Xen on ARM

2017-07-18 Thread Andrii Anisov
Dear Christopher, On 14.07.17 00:39, Christopher Lambert wrote: I would like to test xen on an ARM target with one linux (as dom0) and one android (as domU). As I know there were built such setups on Renesas R-Car H2 and H3, and TI DRA7xx based boards (Lager, Salvator-X and Jacinto6 EVM board

[Xen-devel] Question about Xen on ARM

2017-07-14 Thread Christopher Lambert
Hello, I would like to test xen on an ARM target with one linux (as dom0) and one android (as domU).My goal is to prototype a system with one critical application (on linux side) and one non critical gui application (on android side). If possible, I don't want to do porting job (driver writting)

Re: [Xen-devel] Question about "xen: Revert commits da72ff5bfcb0 and 72a9b186292d"

2017-07-04 Thread Jean-Louis Dupond
Op 2017-07-04 14:51, schreef Juergen Gross: On 04/07/17 14:44, Jean-Louis Dupond wrote: Hi Juergen, We run Xen as dom0 with Windows domU's. Now with older 4.9.x kernels, we had BSOD's when we booted a domU with old Xen drivers in it. With the newest kernel (4.9.34), this seems to be resolved.

Re: [Xen-devel] Question about "xen: Revert commits da72ff5bfcb0 and 72a9b186292d"

2017-07-04 Thread Juergen Gross
On 04/07/17 14:44, Jean-Louis Dupond wrote: > Hi Juergen, > > We run Xen as dom0 with Windows domU's. > > Now with older 4.9.x kernels, we had BSOD's when we booted a domU with > old Xen drivers in it. > With the newest kernel (4.9.34), this seems to be resolved. > > I was wondering what caused

Re: [Xen-devel] Question about "xen: Revert commits da72ff5bfcb0 and 72a9b186292d"

2017-07-04 Thread Jean-Louis Dupond
Hi Juergen, We run Xen as dom0 with Windows domU's. Now with older 4.9.x kernels, we had BSOD's when we booted a domU with old Xen drivers in it. With the newest kernel (4.9.34), this seems to be resolved. I was wondering what caused this. And that patch triggered my attention :) Thanks Je

Re: [Xen-devel] Question about "xen: Revert commits da72ff5bfcb0 and 72a9b186292d"

2017-07-04 Thread Juergen Gross
On 04/07/17 13:54, Jean-Louis Dupond wrote: > Hi All, > > We had some issues with BSOD's on Windows at startup when using some old > Xen drivers inside Windows. > Now when we upgrade to the most recent 4.9.x kernel. The issue seems to > be resolved. > > Could it be that the following commit fixes

[Xen-devel] Question about "xen: Revert commits da72ff5bfcb0 and 72a9b186292d"

2017-07-04 Thread Jean-Louis Dupond
Hi All, We had some issues with BSOD's on Windows at startup when using some old Xen drivers inside Windows. Now when we upgrade to the most recent 4.9.x kernel. The issue seems to be resolved. Could it be that the following commit fixes the issue: https://git.kernel.org/pub/scm/linux/kernel/

Re: [Xen-devel] Question about QEMU as ide device emulator

2017-05-26 Thread Bruno Alvisio
Question has been answered. Thanks. On Thu, May 25, 2017 at 6:35 PM, Bruno Alvisio wrote: > Hello all, > > Summary > > I am using XEN hypervisor to run a HVM with a QEMU backed disk. After I > start the HVM I use QMP "query-block" command to see the devices of the VM. > Initially the command ret

[Xen-devel] Question about QEMU as ide device emulator

2017-05-25 Thread Bruno Alvisio
Hello all, Summary I am using XEN hypervisor to run a HVM with a QEMU backed disk. After I start the HVM I use QMP "query-block" command to see the devices of the VM. Initially the command returns the disk that I set as part of the configuration but after a few seconds the "query-block" command

Re: [Xen-devel] Question about the general performance counter overflow interrupt handling

2017-03-31 Thread Boris Ostrovsky
On 03/31/2017 01:32 PM, Meng Xu wrote: > Hi Boris, > > On Fri, Mar 31, 2017 at 12:01 PM, Boris Ostrovsky > wrote: When I program the general performance counter to trigger an overflow interrupt, I set the following bits for the event selector register and run a task to generate the

Re: [Xen-devel] Question about the general performance counter overflow interrupt handling

2017-03-31 Thread Meng Xu
Hi Boris, On Fri, Mar 31, 2017 at 12:01 PM, Boris Ostrovsky wrote: > >>> When I program the general performance counter to trigger an overflow >>> interrupt, I set the following bits for the event selector register >>> and run a task to generate the L3 cache cache miss. >>> FLAG_ENABLE: 0x40U

Re: [Xen-devel] Question about the general performance counter overflow interrupt handling

2017-03-31 Thread Boris Ostrovsky
>> When I program the general performance counter to trigger an overflow >> interrupt, I set the following bits for the event selector register >> and run a task to generate the L3 cache cache miss. >> FLAG_ENABLE: 0x40UL >> FLAG_INT:0x10UL >> FLAG_USR: 0x01UL >> L3_ALLMISS_EVENT

Re: [Xen-devel] Question about the general performance counter overflow interrupt handling

2017-03-31 Thread Jan Beulich
>>> On 31.03.17 at 17:41, wrote: > I'm wondering: > How does Xen (vpmu) handle the general performance counter's overflow > interrupt? > Could you point me to the function handler, if Xen does handle it? Two simple steps take you there: grep for LVTPC to find which vector is being used (PMU_APIC

Re: [Xen-devel] Question about the general performance counter overflow interrupt handling

2017-03-31 Thread Meng Xu
[Sorry, I cc.ed Quan's previous email at Intel. Change to his current email.] On Fri, Mar 31, 2017 at 11:41 AM, Meng Xu wrote: > Hi Jan and Boris, > > I'm Meng Xu from the University of Pennsylvania. > > I'm wondering: > How does Xen (vpmu) handle the general performance counter's overflow > int

[Xen-devel] Question about the general performance counter overflow interrupt handling

2017-03-31 Thread Meng Xu
Hi Jan and Boris, I'm Meng Xu from the University of Pennsylvania. I'm wondering: How does Xen (vpmu) handle the general performance counter's overflow interrupt? Could you point me to the function handler, if Xen does handle it? ---What I want to achieve--- I'm looking at the real-time performa

Re: [Xen-devel] question: xen/qemu - mmio mapping issues for device pass-through

2017-03-21 Thread Venu Busireddy
> -Original Message- > From: Konrad Rzeszutek Wilk > Sent: Tuesday, March 21, 2017 08:19 AM > To: Xuquan (Quan Xu); Venu Busireddy > Cc: Jan Beulich; anthony.per...@citrix.com; george.dun...@eu.citrix.com; > ian.jack...@eu.citrix.com; Fanhenglong; Kevin Tian; StefanoStabellini; > xen-deve

Re: [Xen-devel] question: xen/qemu - mmio mapping issues for device pass-through

2017-03-21 Thread Konrad Rzeszutek Wilk
. snip.. > support to pass-through large bar (pci-e bar > 4G) device.. Yes it does work. > > > I was assuming large BAR handling to work so far > >(Konrad had done some adjustments there quite a while ago, from all I > >recall). > > > > > _iirc_ what Konrad mentioned was using qemu-trad.. Ye

Re: [Xen-devel] question: xen/qemu - mmio mapping issues for device pass-through

2017-03-21 Thread Jan Beulich
>>> On 21.03.17 at 02:53, wrote: > On March 20, 2017 3:35 PM, Jan Beulich wrote: > On 20.03.17 at 02:58, wrote: >>> On March 16, 2017 11:32 PM, Jan Beulich wrote: >>> On 16.03.17 at 15:21, wrote: > On March 16, 2017 10:06 PM, Jan Beulich wrote: > On 16.03.17 at 14:55, wrote:

Re: [Xen-devel] question: xen/qemu - mmio mapping issues for device pass-through

2017-03-20 Thread Xuquan (Quan Xu)
On March 20, 2017 3:35 PM, Jan Beulich wrote: On 20.03.17 at 02:58, wrote: >> On March 16, 2017 11:32 PM, Jan Beulich wrote: >> On 16.03.17 at 15:21, wrote: On March 16, 2017 10:06 PM, Jan Beulich wrote: On 16.03.17 at 14:55, wrote: >> I try to pass-through a device wi

Re: [Xen-devel] question: xen/qemu - mmio mapping issues for device pass-through

2017-03-20 Thread Jan Beulich
>>> On 20.03.17 at 02:58, wrote: > On March 16, 2017 11:32 PM, Jan Beulich wrote: > On 16.03.17 at 15:21, wrote: >>> On March 16, 2017 10:06 PM, Jan Beulich wrote: >>> On 16.03.17 at 14:55, wrote: > I try to pass-through a device with 8G large bar, such as nvidia > M60(note1, pci

Re: [Xen-devel] question: xen/qemu - mmio mapping issues for device pass-through

2017-03-19 Thread Xuquan (Quan Xu)
On March 16, 2017 11:32 PM, Jan Beulich wrote: On 16.03.17 at 15:21, wrote: >> On March 16, 2017 10:06 PM, Jan Beulich wrote: >> On 16.03.17 at 14:55, wrote: I try to pass-through a device with 8G large bar, such as nvidia M60(note1, pci-e info as below). It takes about '__15 s

Re: [Xen-devel] question: xen/qemu - mmio mapping issues for device pass-through

2017-03-16 Thread Jan Beulich
>>> On 16.03.17 at 15:21, wrote: > On March 16, 2017 10:06 PM, Jan Beulich wrote: > On 16.03.17 at 14:55, wrote: >>> I try to pass-through a device with 8G large bar, such as nvidia >>> M60(note1, pci-e info as below). It takes about '__15 sconds__' to >>> update 8G large bar in QEMU::xen_pt_

Re: [Xen-devel] question: xen/qemu - mmio mapping issues for device pass-through

2017-03-16 Thread Xuquan (Quan Xu)
On March 16, 2017 10:06 PM, Jan Beulich wrote: On 16.03.17 at 14:55, wrote: >> I try to pass-through a device with 8G large bar, such as nvidia >> M60(note1, pci-e info as below). It takes about '__15 sconds__' to >> update 8G large bar in QEMU::xen_pt_region_update().. >> Specifically, it is

Re: [Xen-devel] question: xen/qemu - mmio mapping issues for device pass-through

2017-03-16 Thread Jan Beulich
>>> On 16.03.17 at 14:55, wrote: > I try to pass-through a device with 8G large bar, such as nvidia M60(note1, > pci-e info as below). It takes about '__15 sconds__' to update 8G large bar > in > QEMU::xen_pt_region_update().. > Specifically, it is xc_domain_memory_mapping() in xen_pt_region_up

[Xen-devel] question: xen/qemu - mmio mapping issues for device pass-through

2017-03-16 Thread Xuquan (Quan Xu)
Hello, I try to pass-through a device with 8G large bar, such as nvidia M60(note1, pci-e info as below). It takes about '__15 sconds__' to update 8G large bar in QEMU::xen_pt_region_update().. Specifically, it is xc_domain_memory_mapping() in xen_pt_region_update(). Digged into xc_domain_memory

Re: [Xen-devel] [Question] About the behavior of HLT in VMX guest mode

2017-03-13 Thread Longpeng (Mike)
Hi Jan, On 2017/3/13 19:38, Jan Beulich wrote: On 13.03.17 at 06:12, wrote: >> I'm confusing about the behavior of HLT instruction in VMX guest mode. >> >> I set "hlt exiting" bit to 0 in VMCS, and the vcpu didn't vmexit when execute >> HLT as expected. However, I used powertop/cpupower on

Re: [Xen-devel] [Question] About the behavior of HLT in VMX guest mode

2017-03-13 Thread Jan Beulich
>>> On 13.03.17 at 06:12, wrote: > I'm confusing about the behavior of HLT instruction in VMX guest mode. > > I set "hlt exiting" bit to 0 in VMCS, and the vcpu didn't vmexit when execute > HLT as expected. However, I used powertop/cpupower on host to watch the pcpu's > c-states, it seems that th

[Xen-devel] [Question] About the behavior of HLT in VMX guest mode

2017-03-12 Thread Longpeng (Mike)
Hi guys, I'm confusing about the behavior of HLT instruction in VMX guest mode. I set "hlt exiting" bit to 0 in VMCS, and the vcpu didn't vmexit when execute HLT as expected. However, I used powertop/cpupower on host to watch the pcpu's c-states, it seems that the pcpu didn't enter C1/C1E state d

[Xen-devel] [Question] About the behavior of HLT in VMX guest mode

2017-03-12 Thread Longpeng (Mike)
Hi guys, I'm confusing about the behavior of HLT instruction in VMX guest mode. I set "hlt exiting" bit to 0 in VMCS, and the vcpu didn't vmexit when execute HLT as expected. However, I used powertop/cpupower on host to watch the pcpu's c-states, it seems that the pcpu didn't enter C1/C1E state d

[Xen-devel] Question on PVMMU

2016-12-12 Thread Oleksandr Andrushchenko
Hi, all! Can anyone please point me to what PVMMU is and why it is only supported for x86, but not ARM? What I am trying to do is manually balloon in/out pages allocated by my driver (with {alloc|free}_xenballooned_pages everything works just fine, but this API gives me pages, while I want to u

Re: [Xen-devel] Question about porting IPMMU-VMSA Linux driver to XEN

2016-12-12 Thread Oleksandr Tyshchenko
Hi Stefano On Sat, Dec 10, 2016 at 2:45 AM, Stefano Stabellini wrote: > On Thu, 8 Dec 2016, Oleksandr Tyshchenko wrote: >> On Thu, Dec 8, 2016 at 9:39 PM, Julien Grall wrote: >> > >> > >> > On 08/12/16 17:06, Oleksandr Tyshchenko wrote: >> >> >> >> Hi Julien, >> > >> > >> > Hi Oleksandr, >> Hi J

Re: [Xen-devel] Question about porting IPMMU-VMSA Linux driver to XEN

2016-12-09 Thread Stefano Stabellini
On Thu, 8 Dec 2016, Oleksandr Tyshchenko wrote: > On Thu, Dec 8, 2016 at 9:39 PM, Julien Grall wrote: > > > > > > On 08/12/16 17:06, Oleksandr Tyshchenko wrote: > >> > >> Hi Julien, > > > > > > Hi Oleksandr, > Hi Julien, > > thank you for sharing your opinion. > > > > > As discussed on IRC, I CC

Re: [Xen-devel] Question about porting IPMMU-VMSA Linux driver to XEN

2016-12-08 Thread Oleksandr Tyshchenko
On Thu, Dec 8, 2016 at 9:39 PM, Julien Grall wrote: > > > On 08/12/16 17:06, Oleksandr Tyshchenko wrote: >> >> Hi Julien, > > > Hi Oleksandr, Hi Julien, thank you for sharing your opinion. > > As discussed on IRC, I CCed xen-devel and Stefano. > >> We would like to hear your opinion about the pr

Re: [Xen-devel] Question about porting IPMMU-VMSA Linux driver to XEN

2016-12-08 Thread Julien Grall
On 08/12/16 17:06, Oleksandr Tyshchenko wrote: Hi Julien, Hi Oleksandr, As discussed on IRC, I CCed xen-devel and Stefano. We would like to hear your opinion about the proper way of porting kernel driver to XEN. There is a Linux iommu driver "IPMMU VMSA" for supporting VMSA-compatible IPMM

Re: [Xen-devel] question: is it a CVE in relinquish_memory()[xen/arch/x86/domain.c]

2016-11-09 Thread Jan Beulich
>>> On 09.11.16 at 13:01, wrote: > Based on CVE-2015-7814 and commit 1ef01396fdff, ' arm: handle races between > relinquish_memory and free_domheap_pages'.. > relinquish_memory() [xen/arch/arm/domain.c, arm code], > when couldn't get a reference -- someone is freeing this page and has already >

[Xen-devel] question: is it a CVE in relinquish_memory()[xen/arch/x86/domain.c]

2016-11-09 Thread Xuquan (Quan Xu)
Hi, Based on CVE-2015-7814 and commit 1ef01396fdff, ' arm: handle races between relinquish_memory and free_domheap_pages'.. relinquish_memory() [xen/arch/arm/domain.c, arm code], when couldn't get a reference -- someone is freeing this page and has already committed to doing so, so no more to do

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-10-07 Thread Jan Beulich
>>> On 07.10.16 at 17:41, wrote: > There are a ton of calls to flush_area_local, and a good chunk of them > with the idle vCPU being the active one when it is called. As for > write_cr3, there are also a lot of calls there. When I added some > debug output to observe just how many dom0 would take

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-10-07 Thread Tamas K Lengyel
On Fri, Oct 7, 2016 at 9:32 AM, Jan Beulich wrote: On 04.10.16 at 17:06, wrote: >> At 08:29 -0600 on 04 Oct (1475569774), Jan Beulich wrote: >>> >>> On 04.10.16 at 16:12, wrote: >>> > yes, I understand that is the case when you do need to flush a guest. >>> > And yes, there seem to be paths

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-10-07 Thread Jan Beulich
>>> On 04.10.16 at 17:06, wrote: > At 08:29 -0600 on 04 Oct (1475569774), Jan Beulich wrote: >> >>> On 04.10.16 at 16:12, wrote: >> > yes, I understand that is the case when you do need to flush a guest. >> > And yes, there seem to be paths that require to bump the tag of a >> > specific guest fo

Re: [Xen-devel] Question about next_module() function

2016-10-04 Thread Julien Grall
On 23/09/2016 17:36, 조현권 wrote: Hi Hello, Sorry for the late reply. I am experimenting Xen with my embedded system environment and got a question in next_module() function. / / /static paddr_t __init next_module(paddr_t s, paddr_t *end)/ /{/ /struct bootmodules *mi = &bootinfo.modules;/

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-10-04 Thread Tim Deegan
At 08:29 -0600 on 04 Oct (1475569774), Jan Beulich wrote: > >>> On 04.10.16 at 16:12, wrote: > > yes, I understand that is the case when you do need to flush a guest. > > And yes, there seem to be paths that require to bump the tag of a > > specific guest for certain events (mov-to-cr4 with paging

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-10-04 Thread Jan Beulich
>>> On 04.10.16 at 16:12, wrote: > yes, I understand that is the case when you do need to flush a guest. > And yes, there seem to be paths that require to bump the tag of a > specific guest for certain events (mov-to-cr4 with paging mode changes > for example). What I'm poking at it here is that w

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-10-04 Thread Tamas K Lengyel
On Tue, Oct 4, 2016 at 1:41 AM, Jan Beulich wrote: On 01.10.16 at 21:05, wrote: >> However, I've found two other sources that need more attention: >> >> In x86/flushtlb.c the function flush_area_local invalidates all guest >> TLBs as such: >> >> if ( flags & (FLUSH_TLB|FLUSH_TLB_GLOBAL) ) >

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-10-04 Thread Jan Beulich
>>> On 01.10.16 at 21:05, wrote: > However, I've found two other sources that need more attention: > > In x86/flushtlb.c the function flush_area_local invalidates all guest > TLBs as such: > > if ( flags & (FLUSH_TLB|FLUSH_TLB_GLOBAL) ) > { > if ( order == 0 ) > { > ... >

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-10-01 Thread Tamas K Lengyel
On Tue, Sep 27, 2016 at 7:49 AM, Jan Beulich wrote: On 26.09.16 at 18:12, wrote: >> On Mon, Sep 26, 2016 at 12:24 AM, Jan Beulich wrote: >> On 23.09.16 at 22:45, wrote: On Fri, Sep 23, 2016 at 9:50 AM, Tamas K Lengyel wrote: > On Fri, Sep 23, 2016 at 9:39 AM, Jan Beulich

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-09-27 Thread Jan Beulich
>>> On 26.09.16 at 18:12, wrote: > On Mon, Sep 26, 2016 at 12:24 AM, Jan Beulich wrote: > On 23.09.16 at 22:45, wrote: >>> On Fri, Sep 23, 2016 at 9:50 AM, Tamas K Lengyel >>> wrote: On Fri, Sep 23, 2016 at 9:39 AM, Jan Beulich wrote: On 23.09.16 at 17:26, wrote: >> On F

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-09-26 Thread Tamas K Lengyel
On Mon, Sep 26, 2016 at 12:24 AM, Jan Beulich wrote: On 23.09.16 at 22:45, wrote: >> On Fri, Sep 23, 2016 at 9:50 AM, Tamas K Lengyel >> wrote: >>> On Fri, Sep 23, 2016 at 9:39 AM, Jan Beulich wrote: >>> On 23.09.16 at 17:26, wrote: > On Fri, Sep 23, 2016 at 2:24 AM, Jan Beulich

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-09-25 Thread Jan Beulich
>>> On 23.09.16 at 22:45, wrote: > On Fri, Sep 23, 2016 at 9:50 AM, Tamas K Lengyel > wrote: >> On Fri, Sep 23, 2016 at 9:39 AM, Jan Beulich wrote: >> On 23.09.16 at 17:26, wrote: On Fri, Sep 23, 2016 at 2:24 AM, Jan Beulich wrote: On 22.09.16 at 19:18, wrote: >> So I ve

[Xen-devel] Question about next_module() function

2016-09-23 Thread 조현권
Hi I am experimenting Xen with my embedded system environment and got a question in next_module() function. *static paddr_t __init next_module(paddr_t s, paddr_t *end)* *{* *struct bootmodules *mi = &bootinfo.modules;* *paddr_t lowest = ~(paddr_t)0;* *int i;* *for ( i = 0; i < mi

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-09-23 Thread Tamas K Lengyel
On Fri, Sep 23, 2016 at 9:50 AM, Tamas K Lengyel wrote: > On Fri, Sep 23, 2016 at 9:39 AM, Jan Beulich wrote: > On 23.09.16 at 17:26, wrote: >>> On Fri, Sep 23, 2016 at 2:24 AM, Jan Beulich wrote: >>> On 22.09.16 at 19:18, wrote: > So I verified that when CPU-based load exiting is

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-09-23 Thread Tamas K Lengyel
On Fri, Sep 23, 2016 at 9:39 AM, Jan Beulich wrote: On 23.09.16 at 17:26, wrote: >> On Fri, Sep 23, 2016 at 2:24 AM, Jan Beulich wrote: >> On 22.09.16 at 19:18, wrote: So I verified that when CPU-based load exiting is enabled, the TLB flush here is critical. Without it the gu

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-09-23 Thread Jan Beulich
>>> On 23.09.16 at 17:26, wrote: > On Fri, Sep 23, 2016 at 2:24 AM, Jan Beulich wrote: > On 22.09.16 at 19:18, wrote: >>> So I verified that when CPU-based load exiting is enabled, the TLB >>> flush here is critical. Without it the guest kernel crashes at random >>> points during boot. OTOH

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-09-23 Thread Tamas K Lengyel
On Fri, Sep 23, 2016 at 2:24 AM, Jan Beulich wrote: On 22.09.16 at 19:18, wrote: >> So I verified that when CPU-based load exiting is enabled, the TLB >> flush here is critical. Without it the guest kernel crashes at random >> points during boot. OTOH why does Xen trap every guest CR3 update

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-09-23 Thread Razvan Cojocaru
On 09/23/16 11:24, Jan Beulich wrote: On 22.09.16 at 19:18, wrote: >> So I verified that when CPU-based load exiting is enabled, the TLB >> flush here is critical. Without it the guest kernel crashes at random >> points during boot. OTOH why does Xen trap every guest CR3 update >> uncondition

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-09-23 Thread Jan Beulich
>>> On 22.09.16 at 19:18, wrote: > So I verified that when CPU-based load exiting is enabled, the TLB > flush here is critical. Without it the guest kernel crashes at random > points during boot. OTOH why does Xen trap every guest CR3 update > unconditionally? While we have features such as the vm

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-09-22 Thread Tamas K Lengyel
On Thu, Sep 22, 2016 at 5:37 AM, Tamas K Lengyel wrote: > On Sep 22, 2016 05:27, "Jan Beulich" wrote: >> >> >>> On 22.09.16 at 12:35, wrote: >> > On Sep 22, 2016 02:56, "Jan Beulich" wrote: >> >> >> >> >>> On 21.09.16 at 17:30, wrote: >> >> > What I'm saying is that the guest OS should be in c

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-09-22 Thread Tamas K Lengyel
On Sep 22, 2016 05:27, "Jan Beulich" wrote: > > >>> On 22.09.16 at 12:35, wrote: > > On Sep 22, 2016 02:56, "Jan Beulich" wrote: > >> > >> >>> On 21.09.16 at 17:30, wrote: > >> > What I'm saying is that the guest OS should be in charge of managing > >> > its own TLB when VPID is in use. Whether

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-09-22 Thread Jan Beulich
>>> On 22.09.16 at 12:39, wrote: > On Sep 22, 2016 03:00, "Jan Beulich" wrote: >> >> >>> On 21.09.16 at 20:26, wrote: >> > So reading through the Intel SDM the following bits are relevant here: >> > >> > 28.3.3.1 >> > Operations that Invalidate Cached Mappings >> > The following operations inval

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-09-22 Thread Jan Beulich
>>> On 22.09.16 at 12:35, wrote: > On Sep 22, 2016 02:56, "Jan Beulich" wrote: >> >> >>> On 21.09.16 at 17:30, wrote: >> > What I'm saying is that the guest OS should be in charge of managing >> > its own TLB when VPID is in use. Whether it does flush the TLB or not >> > is not of our concern. I

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-09-22 Thread Tamas K Lengyel
On Sep 22, 2016 03:00, "Jan Beulich" wrote: > > >>> On 21.09.16 at 20:26, wrote: > > So reading through the Intel SDM the following bits are relevant here: > > > > 28.3.3.1 > > Operations that Invalidate Cached Mappings > > The following operations invalidate cached mappings as indicated: > > ● O

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-09-22 Thread Tamas K Lengyel
On Sep 22, 2016 02:56, "Jan Beulich" wrote: > > >>> On 21.09.16 at 17:30, wrote: > > What I'm saying is that the guest OS should be in charge of managing > > its own TLB when VPID is in use. Whether it does flush the TLB or not > > is not of our concern. If it's a sane OS it will likely flush whe

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-09-22 Thread Jan Beulich
>>> On 21.09.16 at 20:26, wrote: > So reading through the Intel SDM the following bits are relevant here: > > 28.3.3.1 > Operations that Invalidate Cached Mappings > The following operations invalidate cached mappings as indicated: > ● Operations that architecturally invalidate entries in the TLB

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-09-22 Thread Jan Beulich
>>> On 21.09.16 at 17:30, wrote: > What I'm saying is that the guest OS should be in charge of managing > its own TLB when VPID is in use. Whether it does flush the TLB or not > is not of our concern. If it's a sane OS it will likely flush when it > needs to, but we should not be jumping in and do

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-09-21 Thread Tamas K Lengyel
On Wed, Sep 21, 2016 at 9:30 AM, Tamas K Lengyel wrote: > On Wed, Sep 21, 2016 at 9:23 AM, Jan Beulich wrote: > On 21.09.16 at 17:16, wrote: >>> On Wed, Sep 21, 2016 at 9:09 AM, Tamas K Lengyel >>> wrote: On Wed, Sep 21, 2016 at 8:44 AM, Jan Beulich wrote: On 21.09.16 at 16:1

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-09-21 Thread Tamas K Lengyel
On Wed, Sep 21, 2016 at 9:23 AM, Jan Beulich wrote: On 21.09.16 at 17:16, wrote: >> On Wed, Sep 21, 2016 at 9:09 AM, Tamas K Lengyel >> wrote: >>> On Wed, Sep 21, 2016 at 8:44 AM, Jan Beulich wrote: >>> On 21.09.16 at 16:18, wrote: > On Wed, Sep 21, 2016 at 4:23 AM, Jan Beulich w

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-09-21 Thread Jan Beulich
>>> On 21.09.16 at 17:16, wrote: > On Wed, Sep 21, 2016 at 9:09 AM, Tamas K Lengyel > wrote: >> On Wed, Sep 21, 2016 at 8:44 AM, Jan Beulich wrote: >> On 21.09.16 at 16:18, wrote: On Wed, Sep 21, 2016 at 4:23 AM, Jan Beulich wrote: On 20.09.16 at 19:29, wrote: >> I'm try

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-09-21 Thread Tamas K Lengyel
On Wed, Sep 21, 2016 at 9:09 AM, Tamas K Lengyel wrote: > On Wed, Sep 21, 2016 at 8:44 AM, Jan Beulich wrote: > On 21.09.16 at 16:18, wrote: >>> On Wed, Sep 21, 2016 at 4:23 AM, Jan Beulich wrote: >>> On 20.09.16 at 19:29, wrote: > I'm trying to figure out the design decision regar

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-09-21 Thread Tamas K Lengyel
On Wed, Sep 21, 2016 at 8:44 AM, Jan Beulich wrote: On 21.09.16 at 16:18, wrote: >> On Wed, Sep 21, 2016 at 4:23 AM, Jan Beulich wrote: >> On 20.09.16 at 19:29, wrote: I'm trying to figure out the design decision regarding the handling of guest MOV-TO-CR3 operations and TLB f

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-09-21 Thread Jan Beulich
>>> On 21.09.16 at 16:18, wrote: > On Wed, Sep 21, 2016 at 4:23 AM, Jan Beulich wrote: > On 20.09.16 at 19:29, wrote: >>> I'm trying to figure out the design decision regarding the handling of >>> guest MOV-TO-CR3 operations and TLB flushes. AFAICT since support for >>> VPID has been added t

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-09-21 Thread Tamas K Lengyel
On Wed, Sep 21, 2016 at 4:23 AM, Jan Beulich wrote: On 20.09.16 at 19:29, wrote: >> I'm trying to figure out the design decision regarding the handling of >> guest MOV-TO-CR3 operations and TLB flushes. AFAICT since support for >> VPID has been added to Xen, every guest MOV-TO-CR3 flushes th

Re: [Xen-devel] Question about VPID during MOV-TO-CR3

2016-09-21 Thread Jan Beulich
>>> On 20.09.16 at 19:29, wrote: > I'm trying to figure out the design decision regarding the handling of > guest MOV-TO-CR3 operations and TLB flushes. AFAICT since support for > VPID has been added to Xen, every guest MOV-TO-CR3 flushes the TLB > (vmx_cr_access -> hvm_mov_to_cr -> hvm_set_cr3 ->

[Xen-devel] Question about VPID during MOV-TO-CR3

2016-09-20 Thread Tamas K Lengyel
Hi all, I'm trying to figure out the design decision regarding the handling of guest MOV-TO-CR3 operations and TLB flushes. AFAICT since support for VPID has been added to Xen, every guest MOV-TO-CR3 flushes the TLB (vmx_cr_access -> hvm_mov_to_cr -> hvm_set_cr3 -> paging_update_cr3 -> hap_update_c

[Xen-devel] Question in end_boot_allocator() code

2016-07-31 Thread 조현권
Hi I am studying xen student I got a question in end boot allocator code Why xen reads bootmem_region_list backwards?? for ( i= nr_bootmem_regions ; i -- >0 ; ) {struct bootmem_region ...} I think there would be no problem although it reads its values forward because added page list is same. T

Re: [Xen-devel] Question about xen event channel

2016-07-11 Thread David Vrabel
On 11/07/16 04:58, 소병철 wrote: > Hello everyone :) > > > > I have a question about xen event channel. Is it possible to allocate > two event channels in one xen frontend driver? Yes. For example, netif can have a separate Tx and Rx event channel. David ___

[Xen-devel] Question about xen event channel

2016-07-10 Thread 소병철
Title: Samsung Enterprise Portal mySingle Hello everyone :)   I have a question about xen event channel. Is it possible to allocate two event channels in one xen frontend driver? I want to bind two different irq handler to one xen frontend driver by using two event channels.   However, I'm

[Xen-devel] [Question] Do we support limiting IOPS

2016-07-06 Thread Ganesh Satpute
Hi, I was searching for limiting IOPS for the disk attached to XenServer VMs. And I couldn't find a way to limit the IOPS. So, I was wondering whether XenServer actually supports limiting IOPS or not. If yes, what are the ways, both user and programmatical, to do so. Thanks & Regards, Ganesh.

Re: [Xen-devel] Question about unable to add disk device after VM is destroyed and recreated on NVIDIA Jetson board

2016-07-03 Thread Meng Xu
On Mon, Jun 20, 2016 at 11:43 AM, Meng Xu wrote: > > Hi all, > > I'm running Xen on NVIDIA Jetson TK1 board. The Xen code is from Ian's > repo.: git://xenbits.xen.org/people/ianc/xen.git with the commit point > c78d51660446d33dac4bb07c3c17e1d14d62ebc2 > > Right now, I can boot dom0 on Xen on the J

[Xen-devel] Question about unable to add disk device after VM is destroyed and recreated on NVIDIA Jetson board

2016-06-20 Thread Meng Xu
Hi all, I'm running Xen on NVIDIA Jetson TK1 board. The Xen code is from Ian's repo.: git://xenbits.xen.org/people/ianc/xen.git with the commit point c78d51660446d33dac4bb07c3c17e1d14d62ebc2 Right now, I can boot dom0 on Xen on the Jetson board. After the system boots up, I can boot up a VM1 usin

Re: [Xen-devel] Question about scrub_heap_pages

2016-06-20 Thread Jan Beulich
>>> On 20.06.16 at 08:37, wrote: > Hi I am studying xen memory setup > > I am wondering the job of scrub heap pages in setup_mm > > If i see the code, it clear unallocated page by setting them to 0 using > memset instruction > > But it looks unneccessary assuming unallocated page will be writte

[Xen-devel] Question about scrub_heap_pages

2016-06-19 Thread 조현권
Hi I am studying xen memory setup I am wondering the job of scrub heap pages in setup_mm If i see the code, it clear unallocated page by setting them to 0 using memset instruction But it looks unneccessary assuming unallocated page will be written to valid data when it is qllocated Is there spe

Re: [Xen-devel] Question of xl dump-core

2016-06-17 Thread Daniel Kiper
On Wed, Jun 15, 2016 at 09:46:45AM +0800, wj zhou wrote: > Hi, > > Thanks a lot for your reply! > > On Tue, Jun 14, 2016 at 11:02 PM, Konrad Rzeszutek Wilk > wrote: > > On Tue, Jun 14, 2016 at 08:21:16AM +0800, wj zhou wrote: > >> Hello all, > > > > Hey, > > > > CC-ing Daniel, and Dave. > >> > >>

Re: [Xen-devel] Question about sharing spinlock_t among VMs in Xen

2016-06-15 Thread Meng Xu
On Tue, Jun 14, 2016 at 12:01 PM, Andrew Cooper wrote: > > On 14/06/16 03:13, Meng Xu wrote: > > On Mon, Jun 13, 2016 at 6:54 PM, Andrew Cooper > > wrote: > >> On 13/06/2016 18:43, Meng Xu wrote: > >>> Hi, > >>> > >>> I have a quick question about using the Linux spin_lock() in Xen > >>> environm

Re: [Xen-devel] Question of xl dump-core

2016-06-14 Thread wj zhou
Hi, Thanks a lot for your reply! On Tue, Jun 14, 2016 at 11:02 PM, Konrad Rzeszutek Wilk wrote: > On Tue, Jun 14, 2016 at 08:21:16AM +0800, wj zhou wrote: >> Hello all, > > Hey, > > CC-ing Daniel, and Dave. >> >> Sorry to disturb you, but I really want to figure it out. >> The xen core of redhat

Re: [Xen-devel] Question about sharing spinlock_t among VMs in Xen

2016-06-14 Thread Andrew Cooper
On 14/06/16 03:13, Meng Xu wrote: > On Mon, Jun 13, 2016 at 6:54 PM, Andrew Cooper > wrote: >> On 13/06/2016 18:43, Meng Xu wrote: >>> Hi, >>> >>> I have a quick question about using the Linux spin_lock() in Xen >>> environment to protect some host-wide shared (memory) resource among >>> VMs. >>>

Re: [Xen-devel] Question of xl dump-core

2016-06-14 Thread Konrad Rzeszutek Wilk
On Tue, Jun 14, 2016 at 08:21:16AM +0800, wj zhou wrote: > Hello all, Hey, CC-ing Daniel, and Dave. > > Sorry to disturb you, but I really want to figure it out. > The xen core of redhat 6 with pod is unable to be used with crash. > > I installed a hvm of redhat 6 by xen 4.7.0-rc2. > And the me

Re: [Xen-devel] Question about sharing spinlock_t among VMs in Xen

2016-06-13 Thread Meng Xu
On Mon, Jun 13, 2016 at 6:54 PM, Andrew Cooper wrote: > On 13/06/2016 18:43, Meng Xu wrote: >> Hi, >> >> I have a quick question about using the Linux spin_lock() in Xen >> environment to protect some host-wide shared (memory) resource among >> VMs. >> >> *** The question is as follows *** >> Supp

Re: [Xen-devel] Question about sharing spinlock_t among VMs in Xen

2016-06-13 Thread Meng Xu
On Mon, Jun 13, 2016 at 5:17 PM, Boris Ostrovsky wrote: > On 06/13/2016 04:46 PM, Meng Xu wrote: >> On Mon, Jun 13, 2016 at 2:28 PM, Boris Ostrovsky >> wrote: >>> On 06/13/2016 01:43 PM, Meng Xu wrote: Hi, I have a quick question about using the Linux spin_lock() in Xen enviro

[Xen-devel] Question of xl dump-core

2016-06-13 Thread wj zhou
Hello all, Sorry to disturb you, but I really want to figure it out. The xen core of redhat 6 with pod is unable to be used with crash. I installed a hvm of redhat 6 by xen 4.7.0-rc2. And the memory is set as below: memory=1024 maxmem=4096 "xl dump-core" is executed, and the core is produced suc

Re: [Xen-devel] Question about sharing spinlock_t among VMs in Xen

2016-06-13 Thread Andrew Cooper
On 13/06/2016 18:43, Meng Xu wrote: > Hi, > > I have a quick question about using the Linux spin_lock() in Xen > environment to protect some host-wide shared (memory) resource among > VMs. > > *** The question is as follows *** > Suppose I have two Linux VMs sharing the same spinlock_t lock (throug

Re: [Xen-devel] Question about sharing spinlock_t among VMs in Xen

2016-06-13 Thread Boris Ostrovsky
On 06/13/2016 04:46 PM, Meng Xu wrote: > On Mon, Jun 13, 2016 at 2:28 PM, Boris Ostrovsky > wrote: >> On 06/13/2016 01:43 PM, Meng Xu wrote: >>> Hi, >>> >>> I have a quick question about using the Linux spin_lock() in Xen >>> environment to protect some host-wide shared (memory) resource among >>>

Re: [Xen-devel] Question about sharing spinlock_t among VMs in Xen

2016-06-13 Thread Meng Xu
On Mon, Jun 13, 2016 at 2:28 PM, Boris Ostrovsky wrote: > On 06/13/2016 01:43 PM, Meng Xu wrote: >> Hi, >> >> I have a quick question about using the Linux spin_lock() in Xen >> environment to protect some host-wide shared (memory) resource among >> VMs. >> >> *** The question is as follows *** >>

Re: [Xen-devel] Question about sharing spinlock_t among VMs in Xen

2016-06-13 Thread Boris Ostrovsky
On 06/13/2016 01:43 PM, Meng Xu wrote: > Hi, > > I have a quick question about using the Linux spin_lock() in Xen > environment to protect some host-wide shared (memory) resource among > VMs. > > *** The question is as follows *** > Suppose I have two Linux VMs sharing the same spinlock_t lock (thr

[Xen-devel] Question about sharing spinlock_t among VMs in Xen

2016-06-13 Thread Meng Xu
Hi, I have a quick question about using the Linux spin_lock() in Xen environment to protect some host-wide shared (memory) resource among VMs. *** The question is as follows *** Suppose I have two Linux VMs sharing the same spinlock_t lock (through the sharing memory) on the same host. Suppose we

  1   2   3   4   >