Re: [Xen-devel] vTPM: update email address and file path in MAINTAINERS file

2017-04-26 Thread Xuquan (Quan Xu)
BTW, I tried to clean up the vtpm code and stored it in the Git repo: https://github.com/virt2x/vtpm2vtpmmgr I hope that others will continue to clean up code and verify it (I don't have tpm1.2/ tpm2.0 machine to verified it).. Quan On April 27, 2017 10:28 AM, Quan Xu wrote: >From 291938c64c

[Xen-devel] vTPM: update email address and file path in MAINTAINERS file

2017-04-26 Thread Xuquan (Quan Xu)
>From 291938c64ccf3a6d580dad7d3ca3311a49a4572e Mon Sep 17 00:00:00 2001 From: Quan Xu Date: Fri, 28 Apr 2017 02:14:29 +0800 Subject: [PATCH] vTPM: update email address and file path in MAINTAINERS file Signed-off-by: Quan Xu --- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

Re: [Xen-devel] [PATCH v1] vmx: set 'SN' bit for the runstate transition from blocked to runnable

2017-04-13 Thread Xuquan (Quan Xu)
__sorry for the noise, please ignore this patch__ On April 13, 2017 11:45 AM, Quan Xu wrote: >On April 13, 2017 3:35 AM, Chao Gao wrote: >>On Thu, Apr 13, 2017 at 02:20:23AM +0000, Xuquan (Quan Xu) wrote: >>>From 946e7589e5a875574c7567a91943d47c38218a6f Mon Sep 17 >>00:00:

Re: [Xen-devel] [PATCH v1] vmx: set 'SN' bit for the runstate transition from blocked to runnable

2017-04-12 Thread Xuquan (Quan Xu)
On April 13, 2017 3:35 AM, Chao Gao wrote: >On Thu, Apr 13, 2017 at 02:20:23AM +0000, Xuquan (Quan Xu) wrote: >>From 946e7589e5a875574c7567a91943d47c38218a6f Mon Sep 17 >00:00:00 2001 >>From: Quan Xu >>Date: Fri, 14 Apr 2017 02:11:30 +0800 >>Subject: [PATCH v1] vmx:

[Xen-devel] [PATCH v1] vmx: set 'SN' bit for the runstate transition from blocked to runnable

2017-04-12 Thread Xuquan (Quan Xu)
>From 946e7589e5a875574c7567a91943d47c38218a6f Mon Sep 17 00:00:00 2001 From: Quan Xu Date: Fri, 14 Apr 2017 02:11:30 +0800 Subject: [PATCH v1] vmx: set 'SN' bit for the runstate transition from blocked to runnable set 'SN' bit of posted-interrupt descriptor when the runstate transition is from

Re: [Xen-devel] [RFC PATCH] hvm/vpt: fix inconsistent views of vIOAPIC in vmx_intr_assist()

2017-04-11 Thread Xuquan (Quan Xu)
On April 07, 2017 11:24 AM, Chao Gao wrote: >When injecting periodic timer interrupt in vmx_intr_assist(), multiple read >operation is operated during one event delivery and incur to inconsistent >views of vIOAPIC. For example, if a periodic timer interrupt is from PIT, when >set the corresponding

Re: [Xen-devel] [xen-unstable test] 106504: regressions - FAIL

2017-04-07 Thread Xuquan (Quan Xu)
On April 05, 2017 7:58 AM, Chao Gao wrote: >2. let pt_update_irq() pass the periodic timer whose interrupt is to be >injected to vmx_intr_assit() which in turn can pass it to pt_intr_post(). >After >this, pt_intr_post() needn't search the periodic timer that matches the >interrupt has been inj

Re: [Xen-devel] [xen-unstable test] 106504: regressions - FAIL

2017-03-28 Thread Xuquan (Quan Xu)
On March 22, 2017 2:14 PM, Chao Gao wrote: >On Wed, Mar 22, 2017 at 06:47:33AM -0600, Jan Beulich wrote: >>> 3. We read RTE 3 times. 1st happens when we set vIRR. 2nd happens >>> when >>> pt_update_irq() returns. 3rd happens in pt_intr_post(). If guest >>> changes the vector in RTE during the windo

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-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 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

[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] [xen-unstable test] 106504: regressions - FAIL

2017-03-07 Thread Xuquan (Quan Xu)
On March 07, 2017 12:24 PM, Chao Gao wrote: >On Tue, Mar 07, 2017 at 02:16:50AM -0700, Jan Beulich wrote: > On 07.03.17 at 06:52, wrote: >>> flight 106504 xen-unstable real [real] >>> http://logs.test-lab.xenproject.org/osstest/logs/106504/ >>> >>> Regressions :-( >>> >>> Tests which did not s

Re: [Xen-devel] [PATCH v4] x86/apicv: Fix wrong IPI suppression during posted interrupt delivery

2017-03-05 Thread Xuquan (Quan Xu)
On March 06, 2017 6:50 AM, Chao Gao wrote: >On Mon, Mar 06, 2017 at 03:53:44AM +0000, Xuquan (Quan Xu) wrote: >>On March 03, 2017 10:36 AM, Chao Gao wrote: >>>+/* >>>+ * Just like vcpu_kick(), nothing is needed for the following two cases: >>>+

Re: [Xen-devel] [PATCH v4] x86/apicv: Fix wrong IPI suppression during posted interrupt delivery

2017-03-05 Thread Xuquan (Quan Xu)
On March 03, 2017 10:36 AM, Chao Gao wrote: >__vmx_deliver_posted_interrupt() wrongly used a softirq bit to decide >whether to suppress an IPI. Its logic was: the first time an IPI was sent, we >set >the softirq bit. Next time, we would check that softirq bit before sending >another IPI. If the 1s

Re: [Xen-devel] [PATCH v2] x86/apicv: enhance posted-interrupt processing

2017-03-01 Thread Xuquan (Quan Xu)
On March 01, 2017 2:24 PM, wrote: >On Wed, Mar 01, 2017 at 12:38:39AM -0700, Jan Beulich wrote: > On 01.03.17 at 04:23, wrote: >>> On February 28, 2017 11:08 PM, Jan Beulich wrote: >>> On 27.02.17 at 11:53, wrote: > If guest is already in non-root mode, an posted interrupt will be >>>

Re: [Xen-devel] [PATCH v2] x86/apicv: enhance posted-interrupt processing

2017-02-28 Thread Xuquan (Quan Xu)
On February 28, 2017 11:08 PM, Jan Beulich wrote: On 27.02.17 at 11:53, wrote: >> If guest is already in non-root mode, an posted interrupt will be >> directly delivered to guest (leaving softirq being set without >> actually incurring a VM-Exit - breaking desired softirq behavior). > >This i

Re: [Xen-devel] [PATCH] MAINTAINERS: Update VT-d maintainers

2017-02-27 Thread Xuquan (Quan Xu)
On Tue, 21 Feb 2017 03:29:43 +, Tian, Kevin wrote: > MAINTAINERS: Update VT-d maintainers > > Feng just left Intel. So remove him from the list. > > Signed-off-by: Kevin Tian > > diff --git a/MAINTAINERS b/MAINTAINERS > index 6f7ffeb..f14f844 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @

[Xen-devel] [PATCH v2] x86/apicv: enhance posted-interrupt processing

2017-02-27 Thread Xuquan (Quan Xu)
>From 6b5f702927d832513d270a2bca4634b271f4df47 Mon Sep 17 00:00:00 2001 From: Quan Xu Date: Tue, 28 Feb 2017 02:48:29 +0800 Subject: [PATCH v2] x86/apicv: enhance posted-interrupt processing If guest is already in non-root mode, an posted interrupt will be directly delivered to guest (leaving sof

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-27 Thread Xuquan (Quan Xu)
On February 23, 2017 4:38 PM, Chao Gao wrote: >On Thu, Feb 23, 2017 at 11:55:15AM +0000, Xuquan (Quan Xu) wrote: >>On February 23, 2017 7:01 PM, Jan Beulich wrote: >>>>>> On 23.02.17 at 11:53, wrote: >>>> On February 23, 2017 5:59 PM, Jan Beulich wrote

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-24 Thread Xuquan (Quan Xu)
On February 23, 2017 8:27 PM, Jan Beulich wrote: On 23.02.17 at 12:55, wrote: >> On February 23, 2017 7:01 PM, Jan Beulich wrote: >> On 23.02.17 at 11:53, wrote: IOW, which vcpu does the 'current' refer to? which cpu does the ' smp_processor_id()' refer to? >>> >>>curren

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-23 Thread Xuquan (Quan Xu)
On February 23, 2017 7:01 PM, Jan Beulich wrote: On 23.02.17 at 11:53, wrote: >> On February 23, 2017 5:59 PM, Jan Beulich wrote: >> On 23.02.17 at 10:28, wrote: On February 18, 2017 12:33 AM, Jan Beulich wrote: On 17.02.17 at 09:49, wrote: >>>diff --git a/xen/arch/x86

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-23 Thread Xuquan (Quan Xu)
On February 23, 2017 5:59 PM, Jan Beulich wrote: >>>> On 23.02.17 at 10:28, wrote: >> On February 18, 2017 12:33 AM, Jan Beulich wrote: >>>>>> On 17.02.17 at 09:49, wrote: >>>> On Fri, Feb 17, 2017 at 09:37:45AM +, Xuquan (Quan Xu) wrote: &g

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-23 Thread Xuquan (Quan Xu)
On February 18, 2017 12:33 AM, Jan Beulich wrote: >>>> On 17.02.17 at 09:49, wrote: >> On Fri, Feb 17, 2017 at 09:37:45AM +0000, Xuquan (Quan Xu) wrote: >>>From a589074281cc22a30ed75a5bccba60e83d2312a6 Mon Sep 17 >00:00:00 2001 >>>From: Quan Xu >>>

[Xen-devel] [PATCH] x86/apicv: move posted_intr_vector handler to pi_notification_interrupt

2017-02-23 Thread Xuquan (Quan Xu)
>From e101539e18625cb70dfaee58ae7e73aa5df7b8a9 Mon Sep 17 00:00:00 2001 From: Quan Xu Date: Fri, 24 Feb 2017 08:43:16 +0800 Subject: [PATCH] x86/apicv: move posted_intr_vector handler to pi_notification_interrupt event_check_interrupt is likely used in pair with original delivery logic. Now sinc

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-20 Thread Xuquan (Quan Xu)
On February 21, 2017 5:55 AM, Chao Gao wrote: >On Tue, Feb 21, 2017 at 04:11:53AM +0000, Xuquan (Quan Xu) wrote: >>On February 21, 2017 11:07 AM, Tian, Kevin wrote: >>>> From: Xuquan (Quan Xu) [mailto:xuqu...@huawei.com] >>>> Sent: Tuesday, February 21, 2017 10:

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-20 Thread Xuquan (Quan Xu)
On February 21, 2017 11:07 AM, Tian, Kevin wrote: >> From: Xuquan (Quan Xu) [mailto:xuqu...@huawei.com] >> Sent: Tuesday, February 21, 2017 10:49 AM >> >> On February 20, 2017 4:24 PM, Chao Gao wrote: >> >On Mon, Feb 20, 2017 at 11:25:29AM +, Xuquan (Quan Xu)

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-20 Thread Xuquan (Quan Xu)
On February 20, 2017 4:24 PM, Chao Gao wrote: >On Mon, Feb 20, 2017 at 11:25:29AM +0000, Xuquan (Quan Xu) wrote: >>On February 18, 2017 12:33 AM, Jan Beulich wrote: >>>>>> On 17.02.17 at 09:49, wrote: >>>> On Fri, Feb 17, 2017 at 09:37:45AM +

Re: [Xen-devel] [xen-unstable test] 104131: regressions - FAIL

2017-02-20 Thread Xuquan (Quan Xu)
On February 13, 2017 4:21 PM, Tian, Kevin wrote: >> From: Jan Beulich [mailto:jbeul...@suse.com] >> Sent: Wednesday, February 08, 2017 4:52 PM >> >> >>> On 08.02.17 at 09:27, wrote: >> > Assumed vCPU is in guest_mode.. >> > When apicv is enabled, hypervisor calls vmx_deliver_posted_intr(), >> > th

Re: [Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-20 Thread Xuquan (Quan Xu)
On February 18, 2017 12:33 AM, Jan Beulich wrote: >>>> On 17.02.17 at 09:49, wrote: >> On Fri, Feb 17, 2017 at 09:37:45AM +0000, Xuquan (Quan Xu) wrote: >>>From a589074281cc22a30ed75a5bccba60e83d2312a6 Mon Sep 17 >00:00:00 2001 >>>From: Quan Xu >>>

[Xen-devel] [PATCH] x86/apicv: enhance posted-interrupt processing

2017-02-17 Thread Xuquan (Quan Xu)
>From a589074281cc22a30ed75a5bccba60e83d2312a6 Mon Sep 17 00:00:00 2001 From: Quan Xu Date: Sat, 18 Feb 2017 09:27:37 +0800 Subject: [PATCH] x86/apicv: enhance posted-interrupt processing If guest is already in non-root mode, an posted interrupt will be directly delivered to guest (leaving softir

Re: [Xen-devel] [xen-unstable test] 104131: regressions - FAIL

2017-02-13 Thread Xuquan (Quan Xu)
On February 13, 2017 4:24 PM, Tian, Kevin wrote: >> From: Tian, Kevin >> Sent: Monday, February 13, 2017 4:21 PM >> >> > From: Jan Beulich [mailto:jbeul...@suse.com] >> > Sent: Wednesday, February 08, 2017 4:52 PM >> > >> > >>> On 08.02.17 at 09:27, wrote: >> > > Assumed vCPU is in guest_mode.. >>

Re: [Xen-devel] [xen-unstable test] 104131: regressions - FAIL

2017-02-09 Thread Xuquan (Quan Xu)
On February 08, 2017 4:22 PM, Chao Gao wrote: >On Wed, Feb 08, 2017 at 10:15:28AM +0000, Xuquan (Quan Xu) wrote: >>On February 08, 2017 4:52 PM, Jan Beulich wrote: >>>>>> On 08.02.17 at 09:27, wrote: >>>> Assumed vCPU is in guest_mode.. >&

Re: [Xen-devel] [xen-unstable test] 104131: regressions - FAIL

2017-02-08 Thread Xuquan (Quan Xu)
On February 08, 2017 4:52 PM, Jan Beulich wrote: On 08.02.17 at 09:27, wrote: >> Assumed vCPU is in guest_mode.. >> When apicv is enabled, hypervisor calls vmx_deliver_posted_intr(), >> then >> __vmx_deliver_posted_interrupt() to deliver interrupt, but no vmexit >> (also no >> vcpu_kick() )..

Re: [Xen-devel] [xen-unstable test] 104131: regressions - FAIL

2017-02-08 Thread Xuquan (Quan Xu)
On February 08, 2017 2:51 PM, Tian, Kevin wrote: >> From: Xuquan (Quan Xu) [mailto:xuqu...@huawei.com] >> Sent: Monday, January 23, 2017 6:57 PM >> >> On January 20, 2017 5:09 PM, Quan Xu wrote: >> >btw, for PIR.. I find that there might be a bug in >> >_

Re: [Xen-devel] [PATCH] X86/vmx: Dump PIR and vIRR before ASSERT()

2017-02-06 Thread Xuquan (Quan Xu)
On February 07, 2017 7:33 AM, Chao Gao wrote: >Commit c7bdecae42 ("x86/apicv: fix RTC periodic timer and apicv issue") >has added a assertion that intack.vector is the highest priority vector. But >according to the osstest, the assertion failed sometimes. More discussion >can be found in the thread

Re: [Xen-devel] [xen-unstable test] 104131: regressions - FAIL

2017-01-23 Thread Xuquan (Quan Xu)
On January 20, 2017 5:09 PM, Quan Xu wrote: >btw, for PIR.. I find that there might be a bug in >__vmx_deliver_posted_interrupt()... >why test_and_set_bit(VCPU_KICK_SOFTIRQ, &softirq_pending(cpu)) ?? > >static void __vmx_deliver_posted_interrupt(struct vcpu *v) { ... >if ( !test_and_set_bit

Re: [Xen-devel] [xen-unstable test] 104131: regressions - FAIL

2017-01-20 Thread Xuquan (Quan Xu)
On January 16, 2017 1:26 PM, Tian, Kevin wrote: >I cannot come up a valid reason for such situation (intack.vector is 0x30 while >pt_vector is 0x38 from Chao's data). pt_update_irq is invoked before checking >highest pending IRRs so pt_vector should be honored anyway. >One possible reason is that b

Re: [Xen-devel] [xen-unstable test] 104131: regressions - FAIL

2017-01-20 Thread Xuquan (Quan Xu)
On January 18, 2017 5:38 PM, Jan Beulich wrote: >>>> On 18.01.17 at 05:57, wrote: >> Attached was my earlier comment: >> >> -- >>> >>> On 20.12.16 at 06:37, wrote: >>> >> From: Xuquan (Quan Xu) [mailto:xuqu...@huawei.com] &g

Re: [Xen-devel] [xen-unstable test] 104131: regressions - FAIL

2017-01-15 Thread Xuquan (Quan Xu)
On January 16, 2017 1:26 PM, Tian, Kevin wrote: >> From: Jan Beulich [mailto:jbeul...@suse.com] >> Sent: Thursday, January 12, 2017 8:26 PM >> >> >>> On 12.01.17 at 13:15, wrote: >> > On 12/01/17 12:07, Xuquan (Quan Xu) wrote: >> >> On Janua

Re: [Xen-devel] [xen-unstable test] 104131: regressions - FAIL

2017-01-12 Thread Xuquan (Quan Xu)
On January 12, 2017 5:14 PM, Andrew Cooper wrote: >On 12/01/2017 06:46, osstest service owner wrote: >> flight 104131 xen-unstable real [real] >> http://logs.test-lab.xenproject.org/osstest/logs/104131/ >> >> Regressions :-( >> >> Tests which did not succeed and are blocking, including tests which

[Xen-devel] [PATCH v6] x86/apicv: fix RTC periodic timer and apicv issue

2017-01-04 Thread Xuquan (Quan Xu)
>From 7c0091cdce951f707bd8dff906aabdf5d645a85f Mon Sep 17 00:00:00 2001 From: Quan Xu Date: Thu, 5 Jan 2017 10:38:39 +0800 Subject: [PATCH v6] x86/apicv: fix RTC periodic timer and apicv issue When Xen apicv is enabled, wall clock time is faster on Windows7-32 guest with high payload (with 2vCPU,

Re: [Xen-devel] [PATCH v5] x86/apicv: fix RTC periodic timer and apicv issue

2017-01-04 Thread Xuquan (Quan Xu)
On January 05, 2017 10:38 AM, Tian, Kevin wrote: >> From: Jan Beulich [mailto:jbeul...@suse.com] >> Sent: Wednesday, January 04, 2017 8:57 PM >> >> >>> On 04.01.17 at 13:21, wrote: >> > --- a/xen/arch/x86/hvm/vmx/intr.c >> > +++ b/xen/arch/x86/hvm/vmx/intr.c >> > @@ -334,7 +335,8 @@ void vmx_intr_

[Xen-devel] [PATCH v5] x86/apicv: fix RTC periodic timer and apicv issue

2017-01-04 Thread Xuquan (Quan Xu)
>From 9c23e1ff3eb75d71d691778a2e83421f645902fb Mon Sep 17 00:00:00 2001 From: Quan Xu Date: Wed, 4 Jan 2017 20:03:31 +0800 Subject: [PATCH v5] x86/apicv: fix RTC periodic timer and apicv issue When Xen apicv is enabled, wall clock time is faster on Windows7-32 guest with high payload (with 2vCPU,

Re: [Xen-devel] [PATCH v4] x86/apicv: fix RTC periodic timer and apicv issue

2017-01-03 Thread Xuquan (Quan Xu)
On January 03, 2017 4:23 PM, Jan Beulich wrote: >>>> On 03.01.17 at 09:15, wrote: > >> >>>-Original Message- >>>From: Jan Beulich [mailto:jbeul...@suse.com] >>>Sent: Tuesday, January 03, 2017 3:35 PM >>>To: Xuquan (Quan Xu) >

Re: [Xen-devel] [PATCH v4] x86/apicv: fix RTC periodic timer and apicv issue

2017-01-03 Thread Xuquan (Quan Xu)
>-Original Message- >From: Jan Beulich [mailto:jbeul...@suse.com] >Sent: Tuesday, January 03, 2017 3:35 PM >To: Xuquan (Quan Xu) >Cc: Andrew Cooper; George Dunlap; yang.zhang...@gmail.com; Chao Gao; >Jun Nakajima; Kevin Tian; Lan Tianyu; xen-devel@lists.xen.org >S

Re: [Xen-devel] [PATCH v4] x86/apicv: fix RTC periodic timer and apicv issue

2016-12-23 Thread Xuquan (Quan Xu)
On December 22, 2016 4:12 PM, Jan Beulich wrote: On 21.12.16 at 06:44, wrote: >> --- a/xen/arch/x86/hvm/vmx/intr.c >> +++ b/xen/arch/x86/hvm/vmx/intr.c >> @@ -315,9 +315,13 @@ void vmx_intr_assist(void) >> * Set eoi_exit_bitmap for periodic timer interrup to cause >EOI-induced VM >>

Re: [Xen-devel] [PATCH v4] x86/apicv: fix RTC periodic timer and apicv issue

2016-12-21 Thread Xuquan (Quan Xu)
>} >struct task_struct *thread; >static int __init ipi_init(void) >{ >thread = kthread_run(ipi_generator, NULL, "IPI"); >if (IS_ERR(thread)) >return PTR_ERR(thread); >return 0; >} > >static void __exit ipi_exit(void) >{ >

[Xen-devel] [PATCH v4] x86/apicv: fix RTC periodic timer and apicv issue

2016-12-20 Thread Xuquan (Quan Xu)
When Xen apicv is enabled, wall clock time is faster on Windows7-32 guest with high payload (with 2vCPU, captured from xentrace, in high payload, the count of IPI interrupt increases rapidly between these vCPUs). If IPI intrrupt (vector 0xe1) and periodic timer interrupt (vector 0xd1) are both pen

Re: [Xen-devel] [PATCH v3] x86/apicv: fix RTC periodic timer and apicv issue

2016-12-20 Thread Xuquan (Quan Xu)
On December 21, 2016 10:30 AM, Tian, Kevin wrote: >> From: Xuquan (Quan Xu) [mailto:xuqu...@huawei.com] >> Sent: Tuesday, December 20, 2016 9:12 PM >> >> On December 20, 2016 1:37 PM, Tian, Kevin wrote: >> >> From: Xuquan (Quan Xu) [mailto:xuqu...@huawei.com] &

Re: [Xen-devel] [PATCH v3] x86/apicv: fix RTC periodic timer and apicv issue

2016-12-20 Thread Xuquan (Quan Xu)
On December 20, 2016 1:37 PM, Tian, Kevin wrote: >> From: Xuquan (Quan Xu) [mailto:xuqu...@huawei.com] >> Sent: Friday, December 16, 2016 5:40 PM >I suppose you've verified this new version, but still would like get your >explicit confirmation - did you still see time accu

Re: [Xen-devel] [PATCH v3] x86/apicv: fix RTC periodic timer and apicv issue

2016-12-20 Thread Xuquan (Quan Xu)
On December 20, 2016 4:54 PM, Tian, Kevin wrote: >> From: Jan Beulich [mailto:jbeul...@suse.com] >> Sent: Tuesday, December 20, 2016 4:35 PM >> >> >>> On 20.12.16 at 06:37, wrote: >> >> From: Xuquan (Quan Xu) [mailto:xuqu...@huawei.com]

Re: [Xen-devel] [PATCH v3] x86/apicv: fix RTC periodic timer and apicv issue

2016-12-20 Thread Xuquan (Quan Xu)
On December 20, 2016 4:32 PM, Jan Beulich wrote: >>>> On 20.12.16 at 06:54, wrote: >> On December 20, 2016 1:37 PM, Tian, Kevin wrote: >>>> From: Xuquan (Quan Xu) [mailto:xuqu...@huawei.com] >>>> Sent: Friday, December 16, 2016 5:40 PM >>>>

Re: [Xen-devel] [PATCH v3] x86/apicv: fix RTC periodic timer and apicv issue

2016-12-19 Thread Xuquan (Quan Xu)
On December 20, 2016 1:37 PM, Tian, Kevin wrote: >> From: Xuquan (Quan Xu) [mailto:xuqu...@huawei.com] >> Sent: Friday, December 16, 2016 5:40 PM >> >> From 89fffdd6b563b2723e24d17231715bb8c9f24f90 Mon Sep 17 00:00:00 >2001 >> From: Quan Xu >> Date: Fri

[Xen-devel] [PATCH v3] x86/apicv: fix RTC periodic timer and apicv issue

2016-12-16 Thread Xuquan (Quan Xu)
>From 89fffdd6b563b2723e24d17231715bb8c9f24f90 Mon Sep 17 00:00:00 2001 From: Quan Xu Date: Fri, 16 Dec 2016 17:24:01 +0800 Subject: [PATCH v3] x86/apicv: fix RTC periodic timer and apicv issue When Xen apicv is enabled, wall clock time is faster on Windows7-32 guest with high payload (with 2vCPU

Re: [Xen-devel] Xen virtual IOMMU high level design doc

2016-11-24 Thread Xuquan (Quan Xu)
On November 24, 2016 9:38 PM, >On Thu, Nov 24, 2016 at 02:49:41PM +0800, Lan Tianyu wrote: >> On 2016年11月24日 12:09, Edgar E. Iglesias wrote: >> Hi, >> > > > >> > > > I have a few questions. >> > > > >> > > > If I understand correctly, you'll be emulating an Intel IOMMU in

Re: [Xen-devel] [PATCH] Fix misleading indentation warnings

2016-11-10 Thread Xuquan (Quan Xu)
On November 10, 2016 11:25 PM, Daniel De Graaf wrote: >On 11/10/2016 04:23 AM, Cédric Bosdonnat wrote: >> Gcc6 build reports misleading indentation as warnings. Fix a few >> warnings in stubdom. >> >> Signed-off-by: Cédric Bosdonnat > >Acked-by: Daniel De Graaf Acked-by: Quan Xu

[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] [PATCH RFC] hvm: Allow triple fault to imply crash rather than reboot

2016-11-07 Thread Xuquan (Quan Xu)
On November 07, 2016 9:13 PM, Andrew Cooper wrote: >On 07/11/16 12:56, Xuquan (Quan Xu) wrote: >> 4) any ideas to reproduce triple fault? > >What do you mean by reproduce? Causing a triple fault is very easy from the >guest kernel. Yes, by reproduce.. indeed, we just implement

Re: [Xen-devel] [PATCH RFC] hvm: Allow triple fault to imply crash rather than reboot

2016-11-07 Thread Xuquan (Quan Xu)
On Feb 4, 2013, 6:25 AM, wrote: > While the triple fault action on native hardware will result in a system > reset, any modern operating system can and will make use of less violent > reboot methods. As a result, the most likely cause of a triple fault is a > fatal software bug. > > This patch all

Re: [Xen-devel] qeustion: a panic in __do_update_va_mapping()

2016-11-03 Thread Xuquan (Quan Xu)
On November 03, 2016 9:18 PM, < jbeul...@suse.com > wrote: On 03.11.16 at 13:14, wrote: >> Jan, >> A backport ' c/s 22135 ' was mentioned in above link. Does it refer >> to >https://build.opensuse.org/package/view_file?file=22135-heap-lock.patch&pack >age= >> xen&project=home%3Acharlesa%3Aop

Re: [Xen-devel] qeustion: a panic in __do_update_va_mapping()

2016-11-01 Thread Xuquan (Quan Xu)
On November 01, 2016 9:21 PM, Andrew Cooper wrote: >On 01/11/16 12:07, Xuquan (Quan Xu) wrote: >> On November 01, 2016 8:00 PM, Andrew Cooper wrote: >>> On 01/11/16 11:57, Xuquan (Quan Xu) wrote: >>>> On November 01, 2016 7:41 PM, Andrew Cooper >>> wrote

Re: [Xen-devel] qeustion: a panic in __do_update_va_mapping()

2016-11-01 Thread Xuquan (Quan Xu)
On November 01, 2016 8:00 PM, Andrew Cooper wrote: >On 01/11/16 11:57, Xuquan (Quan Xu) wrote: >> On November 01, 2016 7:41 PM, Andrew Cooper > wrote: >>> On 01/11/16 11:23, Xuquan (Quan Xu) wrote: >>>> On November 01, 2016 7:16 PM, Andrew Cooper < >>>

Re: [Xen-devel] qeustion: a panic in __do_update_va_mapping()

2016-11-01 Thread Xuquan (Quan Xu)
On November 01, 2016 7:41 PM, Andrew Cooper wrote: >On 01/11/16 11:23, Xuquan (Quan Xu) wrote: >> On November 01, 2016 7:16 PM, Andrew Cooper < >andrew.coop...@citrix.com > wrote: >>> On 01/11/16 11:01, Xuquan (Quan Xu) wrote: >>>> Hi Andrew, >>&g

Re: [Xen-devel] qeustion: a panic in __do_update_va_mapping()

2016-11-01 Thread Xuquan (Quan Xu)
On November 01, 2016 7:16 PM, Andrew Cooper < andrew.coop...@citrix.com > wrote: >On 01/11/16 11:01, Xuquan (Quan Xu) wrote: >> Hi Andrew, >> >> When I run some application with Xen, I encounter a Panic with log as the >bottom of this email. >> I find

[Xen-devel] qeustion: a panic in __do_update_va_mapping()

2016-11-01 Thread Xuquan (Quan Xu)
Hi Andrew, When I run some application with Xen, I encounter a Panic with log as the bottom of this email. I find this panic is as similar as your fix e4e9d2d4e76bd8fe22 'x86/p2m-ept: don't unmap the EPT pagetable while it is still in use'. _iiuc_, in __do_update_va_mapping(), 'va' is unmappe

Re: [Xen-devel] [PATCH v2] x86/apicv: fix RTC periodic timer and apicv issue

2016-10-26 Thread Xuquan (Quan Xu)
On October 26, 2016 5:35 PM, Tian, Kevin wrote: >> From: Xuquan (Quan Xu) [mailto:xuqu...@huawei.com] >> Sent: Wednesday, October 26, 2016 4:39 PM >> >> On October 26, 2016 1:20 PM, Tian, Kevin wrote: >> >> From: Xuquan (Quan Xu) [mailto:xuqu...@huawei.com] >

Re: [Xen-devel] [PATCH v2] x86/apicv: fix RTC periodic timer and apicv issue

2016-10-26 Thread Xuquan (Quan Xu)
On October 25, 2016 9:01 PM, Konrad Rzeszutek Wilk < konrad.w...@oracle.com > wrote: >> > >Could you describe what the KVM implementation solution did that made it clean? >I am curious whether the concept could be put in Xen? Konrad, I am still learning this part. I will update it later. Quan __

Re: [Xen-devel] [PATCH v2] x86/apicv: fix RTC periodic timer and apicv issue

2016-10-26 Thread Xuquan (Quan Xu)
On October 26, 2016 1:20 PM, Tian, Kevin wrote: >> From: Xuquan (Quan Xu) [mailto:xuqu...@huawei.com] >> Sent: Tuesday, October 25, 2016 4:36 PM >> >> On October 24, 2016 3:02 PM, Tian, Kevin wrote: >> >> From: Xuquan (Quan Xu) [mailto:xuqu...@huawei.com] >&

Re: [Xen-devel] [PATCH v2 00/13] Refactor common part of xen backend and frontend

2016-10-25 Thread Xuquan (Quan Xu)
On October 13, 2016 2:02 PM, Emil Condrea wrote: >This patch series was splitted from QEMU:Xen stubdom vTPM for HVM virtual >machine http://markmail.org/message/fkix7g3a5zdj7lvr > >It contains a reorganization of xen backend and frontend functions together >with >code style fixes. >Common functio

Re: [Xen-devel] [PATCH v2] x86/apicv: fix RTC periodic timer and apicv issue

2016-10-25 Thread Xuquan (Quan Xu)
On October 25, 2016 4:36 PM, Quan Xu wrote: >I am afraid we could find a clean solution based on current implementation (kvm Sorry, a typo.. s/could/could not/ >is ok).. and apicv results in decreased application performance for some >windows >guest. > >So I suggest to configure ' msr_based_ap

Re: [Xen-devel] [PATCH v2] x86/apicv: fix RTC periodic timer and apicv issue

2016-10-25 Thread Xuquan (Quan Xu)
On October 24, 2016 3:02 PM, Tian, Kevin wrote: >> From: Xuquan (Quan Xu) [mailto:xuqu...@huawei.com] >> Sent: Monday, October 17, 2016 5:28 PM >> >> >> >> >>Back to the main open before holiday - multiple EOIs may come to >> >>clear

Re: [Xen-devel] [PATCH v2] x86/apicv: fix RTC periodic timer and apicv issue

2016-10-17 Thread Xuquan (Quan Xu)
On October 11, 2016 7:11 PM, Xuquan < xuqu...@huawei.com > wrote: >On October 11, 2016 3:49 PM, Tian, Kevin >>> From: Xuquan (Quan Xu) [mailto:xuqu...@huawei.com] >>> Sent: Monday, October 10, 2016 6:49 PM >>> >>> On October 10, 2016 5:4

Re: [Xen-devel] [PATCH 15/15] xen: Rename xen_be_frontend_changed

2016-10-12 Thread Xuquan (Quan Xu)
On October 13, 2016 2:09 PM, Emil Condrea wrote: >As you suggested, I've dropped the all patches for xen_frontend. > >Emil > >On Wed, Oct 12, 2016 at 2:00 PM, Paolo Bonzini wrote: >> >> >> On 09/10/2016 21:50, Emil Condrea wrote: >>> On Tue, Oct 4, 2016 at 11:06 AM, Paolo Bonzini >wrote: >>

Re: [Xen-devel] [PATCH 14/15] xen: Rename xen_be_del_xendev

2016-10-12 Thread Xuquan (Quan Xu)
On October 12, 2016 9:46 PM, Anthony PERARD < anthony.per...@citrix.com > wrote: >On Tue, Oct 04, 2016 at 09:43:43AM +0300, Emil Condrea wrote: >> Prepare xen_be_del_xendev to be shared with frontends: >> * xen_be_del_xendev -> xen_pv_del_xendev >> >> Signed-off-by: Emil Condrea > >Acked-by: Anth

Re: [Xen-devel] [PATCH 13/15] xen: Rename xen_be_find_xendev

2016-10-12 Thread Xuquan (Quan Xu)
On October 12, 2016 9:42 PM, Anthony PERARD < anthony.per...@citrix.com > wrote: >On Tue, Oct 04, 2016 at 09:43:42AM +0300, Emil Condrea wrote: >> Prepare xen_be_find_xendev to be shared with frontends: >> * xen_be_find_xendev -> xen_pv_find_xendev >> >> Signed-off-by: Emil Condrea > >Acked-by: A

Re: [Xen-devel] [PATCH 12/15] xen: Rename xen_be_evtchn_event

2016-10-12 Thread Xuquan (Quan Xu)
On October 12, 2016 9:41 PM, Anthony PERARD < anthony.per...@citrix.com > wrote: >On Tue, Oct 04, 2016 at 09:43:41AM +0300, Emil Condrea wrote: >> Prepare xen_be_evtchn_event to be shared with frontends: >> * xen_be_evtchn_event -> xen_pv_evtchn_event >> >> Signed-off-by: Emil Condrea > >Acked-by

Re: [Xen-devel] [PATCH 11/15] xen: Rename xen_be_send_notify

2016-10-12 Thread Xuquan (Quan Xu)
On October 12, 2016 9:41 PM, Anthony PERARD < anthony.per...@citrix.com > wrote: >On Tue, Oct 04, 2016 at 09:43:40AM +0300, Emil Condrea wrote: >> Prepare xen_be_send_notify to be shared with frontends: >> * xen_be_send_notify -> xen_pv_send_notify >> >> Signed-off-by: Emil Condrea > >Acked-by: A

Re: [Xen-devel] [PATCH 10/15] xen: Rename xen_be_unbind_evtchn

2016-10-12 Thread Xuquan (Quan Xu)
On October 12, 2016 9:37 PM, Anthony PERARD < anthony.per...@citrix.com > wrote: >On Tue, Oct 04, 2016 at 09:43:39AM +0300, Emil Condrea wrote: >> Prepare xen_be_unbind_evtchn to be shared with frontends: >> * xen_be_unbind_evtchn -> xen_pv_unbind_evtchn >> >> Signed-off-by: Emil Condrea > >Acked

Re: [Xen-devel] [PATCH v2] x86/apicv: fix RTC periodic timer and apicv issue

2016-10-11 Thread Xuquan (Quan Xu)
On October 11, 2016 3:49 PM, Tian, Kevin >> From: Xuquan (Quan Xu) [mailto:xuqu...@huawei.com] >> Sent: Monday, October 10, 2016 6:49 PM >> >> On October 10, 2016 5:40 PM, Jan Beulich < jbeul...@suse.com > wrote: >> >>>>>> >>> O

Re: [Xen-devel] [PATCH v2] x86/apicv: fix RTC periodic timer and apicv issue

2016-10-10 Thread Xuquan (Quan Xu)
On October 10, 2016 5:40 PM, Jan Beulich < jbeul...@suse.com > wrote: >> >>> On 20.09.16 at 15:30, wrote: >> > --- a/xen/arch/x86/hvm/vlapic.c >> > +++ b/xen/arch/x86/hvm/vlapic.c >> > @@ -433,6 +433,12 @@ void vlapic_EOI_set(struct vlapic *vlapic) >> > void vlapic_handle_EOI(s

Re: [Xen-devel] [PATCH v2] x86/apicv: fix RTC periodic timer and apicv issue

2016-10-10 Thread Xuquan (Quan Xu)
On September 26, 2016 2:39 PM, Jan Beulich < jbeul...@suse.com > wrote: On 24.09.16 at 03:06, wrote: >> On September 24, 2016 7:34 AM, Tian Kevin < kevin.t...@intel.com > wrote: From: Jan Beulich [mailto:jbeul...@suse.com] Sent: Friday, September 23, 2016 11:34 PM >>> On 2