kvm: nVMX: CPUID.01H:EDX.APIC[bit 9] should mirror IA32_APIC_BASE[11]
PATCH 1/1 kvm: nVMX: CPUID.01H:EDX.APIC[bit 9] should mirror IA32_APIC_BASE[11]
Quoted 1 line
From the Intel SDM, volume 3, section 10.4.3, "Enabling or Disabling the
Local APIC,"
When IA32_APIC_BASE[11] is 0, the processor is functionally equivalent to an IA-32 processor without an on-chip APIC. The CPUID feature flag for the APIC (see Section 10.4.2, "Presence of the Local APIC") is also set to 0.
--- arch/x86/kvm/cpuid.c | 3 +++ arch/x86/kvm/lapic.c | 1 + 2 files changed, 4 insertions(+)
arch/x86/kvm/cpuid.c +3 -0
@@ -81,7 +81,10 @@ int kvm_update_cpuid(struct kvm_vcpu *vcpu) best->ecx |=F (OSXSAVE ); } + best->edx &= ~F (APIC );if (apic) { +if (vcpu->arch.apic_base &MSR_IA32_APICBASE_ENABLE ) + best->edx |=F (APIC );if (best->ecx &F (TSC_DEADLINE_TIMER )) apic->lapic_timer.timer_mode_mask =3 <<17 ;else
arch/x86/kvm/lapic.c +1 -0
@@ -1758,6 +1758,7 @@ void kvm_lapic_set_base(struct kvm_vcpu *vcpu, u64 value)/* update jump label if enable bit changes */ if ((old_value ^ value) &MSR_IA32_APICBASE_ENABLE ) { +kvm_update_cpuid (vcpu);if (value &MSR_IA32_APICBASE_ENABLE ) {kvm_apic_set_xapic_id (apic, vcpu->vcpu_id);static_key_slow_dec_deferred (&apic_hw_disabled);
Signature · 1 line
2.8.0.rc3.226.g39d4020
2016-11-04 15:00-0700, Jim Mattson:
Quoted 14 lines
From the Intel SDM, volume 3, section 10.4.3, "Enabling or Disabling the Local APIC,"
When IA32_APIC_BASE[11] is 0, the processor is functionally equivalent to an IA-32 processor without an on-chip APIC. The CPUID feature flag for the APIC (see Section 10.4.2, "Presence of the Local APIC") is also set to 0.
Signed-off-by Jim Mattson <[email protected]>Reviewed-by Ben Serebrin <[email protected]>Reviewed-by David Matlack <[email protected]>---
arch/x86/kvm/cpuid.c int kvm_update_cpuid(struct kvm_vcpu *vcpu) · line 84
Quoted 4 lines
arch/x86/kvm/cpuid.c +1
-0@@ -81,7 +81,10 @@ int kvm_update_cpuid(struct kvm_vcpu *vcpu) best->ecx |=F (OSXSAVE ); } + best->edx &= ~F (APIC );
This might prevent userspace LAPIC from working.
(The bit will always be zero.)
arch/x86/kvm/cpuid.c int kvm_update_cpuid(struct kvm_vcpu *vcpu) · line 87
Quoted 3 lines
arch/x86/kvm/cpuid.c +2
-0if (apic) { +if (vcpu->arch.apic_base &MSR_IA32_APICBASE_ENABLE ) + best->edx |=F (APIC );
vcpu->arch.apic_base should be correct regardless of lapic_in_kernel(). Userspace can update CPUID when it changes MSR_IA32_APICBASE_ENABLE, so not handling CPUID update in KVM is fine, but KVM must not touch the CPUID bit in that case.
Quoted 3 lines
arch/x86/kvm/cpuid.c +0
-0if (best->ecx &F (TSC_DEADLINE_TIMER )) apic->lapic_timer.timer_mode_mask =3 <<17 ;else
Oops. I missed the subtlety of the "if (apic)" test. I thought it was testing for the existence of an APIC, rather than where the APIC was implemented.
Quoted 35 lines · Radim Krčmář
2016-11-04 15:00-0700, Jim Mattson:
Quoted 14 lines
From the Intel SDM, volume 3, section 10.4.3, "Enabling or Disabling the Local APIC,"
When IA32_APIC_BASE[11] is 0, the processor is functionally equivalent to an IA-32 processor without an on-chip APIC. The CPUID feature flag for the APIC (see Section 10.4.2, "Presence of the Local APIC") is also set to 0.
Signed-off-by Jim Mattson <[email protected]>Reviewed-by Ben Serebrin <[email protected]>Reviewed-by David Matlack <[email protected]>---
arch/x86/kvm/cpuid.c int kvm_update_cpuid(struct kvm_vcpu *vcpu) · line 84
Quoted 4 lines
arch/x86/kvm/cpuid.c +1
-0@@ -81,7 +81,10 @@ int kvm_update_cpuid(struct kvm_vcpu *vcpu) best->ecx |=F (OSXSAVE ); } + best->edx &= ~F (APIC );This might prevent userspace LAPIC from working.
(The bit will always be zero.)arch/x86/kvm/cpuid.c int kvm_update_cpuid(struct kvm_vcpu *vcpu) · line 87
Quoted 3 lines
arch/x86/kvm/cpuid.c +2
-0if (apic) { +if (vcpu->arch.apic_base &MSR_IA32_APICBASE_ENABLE ) + best->edx |=F (APIC );
vcpu->arch.apic_baseshould be correct regardless oflapic_in_kernel(). Userspace can update CPUID when it changesMSR_IA32_APICBASE_ENABLE, so not handling CPUID update in KVM is fine, but KVM must not touch the CPUID bit in that case.Quoted 3 lines
arch/x86/kvm/cpuid.c +0
-0if (best->ecx &F (TSC_DEADLINE_TIMER )) apic->lapic_timer.timer_mode_mask =3 <<17 ;else
PATCH v2 1/1 kvm: nVMX: CPUID.01H:EDX.APIC[bit 9] should mirror IA32_APIC_BASE[11]
Quoted 1 line
From the Intel SDM, volume 3, section 10.4.3, "Enabling or Disabling the
Local APIC,"
When IA32_APIC_BASE[11] is 0, the processor is functionally equivalent to an IA-32 processor without an on-chip APIC. The CPUID feature flag for the APIC (see Section 10.4.2, "Presence of the Local APIC") is also set to 0.
--- arch/x86/kvm/cpuid.c | 4 ++++ arch/x86/kvm/lapic.c | 1 + 2 files changed, 5 insertions(+)
arch/x86/kvm/cpuid.c +4 -0
@@ -81,6 +81,10 @@ int kvm_update_cpuid(struct kvm_vcpu *vcpu) best->ecx |=F (OSXSAVE ); } + best->edx &= ~F (APIC ); +if (vcpu->arch.apic_base &MSR_IA32_APICBASE_ENABLE ) + best->edx |=F (APIC ); +if (apic) {if (best->ecx &F (TSC_DEADLINE_TIMER )) apic->lapic_timer.timer_mode_mask =3 <<17 ;
arch/x86/kvm/lapic.c +1 -0
@@ -1758,6 +1758,7 @@ void kvm_lapic_set_base(struct kvm_vcpu *vcpu, u64 value)/* update jump label if enable bit changes */ if ((old_value ^ value) &MSR_IA32_APICBASE_ENABLE ) { +kvm_update_cpuid (vcpu);if (value &MSR_IA32_APICBASE_ENABLE ) {kvm_apic_set_xapic_id (apic, vcpu->vcpu_id);static_key_slow_dec_deferred (&apic_hw_disabled);
Signature · 1 line
2.8.0.rc3.226.g39d4020
Paolo Bonzini
maintainerarch/x86/kvm/cpuid.c int kvm_update_cpuid(struct kvm_vcpu *vcpu) · line 90
Quoted 8 lines · Jim Mattson
arch/x86/kvm/cpuid.c +4
-0+ best->edx &= ~F (APIC ); +if (vcpu->arch.apic_base &MSR_IA32_APICBASE_ENABLE ) + best->edx |=F (APIC ); +if (apic) {if (best->ecx &F (TSC_DEADLINE_TIMER )) apic->lapic_timer.timer_mode_mask =3 <<17 ;
The three new lines should be inside "if (apic)", because you are not calling kvm_update_cpuid at all in kvm_lapic_set_base's "if (!apic)" case.
Thanks,
Paolo
Quoted 7 lines · On Wed, 9 Nov 2016 09:04:36 -0800 Jim Mattson <[email protected]> wrote:
From the Intel SDM, volume 3, section 10.4.3, "Enabling or Disabling the Local APIC,"
When IA32_APIC_BASE[11] is 0, the processor is functionally equivalent to an IA-32 processor without an on-chip APIC. The CPUID feature flag for the APIC (see Section 10.4.2, "Presence of the Local APIC") is also set to 0.
CCing Eduardo in case it might affect migration.
Quoted 34 lines
Signed-off-by Jim Mattson <[email protected]>--- arch/x86/kvm/cpuid.c | 4 ++++ arch/x86/kvm/lapic.c | 1 + 2 files changed, 5 insertions(+)arch/x86/kvm/cpuid.c +4
-0@@ -81,6 +81,10 @@ int kvm_update_cpuid(struct kvm_vcpu *vcpu) best->ecx |=F (OSXSAVE ); } + best->edx &= ~F (APIC ); +if (vcpu->arch.apic_base &MSR_IA32_APICBASE_ENABLE ) + best->edx |=F (APIC ); +if (apic) {if (best->ecx &F (TSC_DEADLINE_TIMER )) apic->lapic_timer.timer_mode_mask =3 <<17 ;arch/x86/kvm/lapic.c +1
-0@@ -1758,6 +1758,7 @@ void kvm_lapic_set_base(struct kvm_vcpu *vcpu, u64 value)/* update jump label if enable bit changes */ if ((old_value ^ value) &MSR_IA32_APICBASE_ENABLE ) { +kvm_update_cpuid (vcpu);if (value &MSR_IA32_APICBASE_ENABLE ) {kvm_apic_set_xapic_id (apic, vcpu->vcpu_id);static_key_slow_dec_deferred (&apic_hw_disabled);
Better would be to call kvm_update_cpuid regardless, I think.
Quoted 18 lines · Paolo Bonzini
arch/x86/kvm/cpuid.c int kvm_update_cpuid(struct kvm_vcpu *vcpu) · line 90
Quoted 8 lines · Jim Mattson
arch/x86/kvm/cpuid.c +4
-0+ best->edx &= ~F (APIC ); +if (vcpu->arch.apic_base &MSR_IA32_APICBASE_ENABLE ) + best->edx |=F (APIC ); +if (apic) {if (best->ecx &F (TSC_DEADLINE_TIMER )) apic->lapic_timer.timer_mode_mask =3 <<17 ;The three new lines should be inside "if (apic)", because you are not calling
kvm_update_cpuidat all in kvm_lapic_set_base's "if (!apic)" case.Thanks,
Paolo
Quoted 11 lines · Igor Mammedov
Quoted 7 lines · On Wed, 9 Nov 2016 09:04:36 -0800 Jim Mattson <[email protected]> wrote:
From the Intel SDM, volume 3, section 10.4.3, "Enabling or Disabling the Local APIC,"
When IA32_APIC_BASE[11] is 0, the processor is functionally equivalent to an IA-32 processor without an on-chip APIC. The CPUID feature flag for the APIC (see Section 10.4.2, "Presence of the Local APIC") is also set to 0.
CCing Eduardo in case it might affect migration.
It depends on the pros/cons of keeping bug compatibility when migrating existing VMs. If keeping bug compatibility doesn't buy us anything, we don't need anything extra. If keeping bug compatibility would avoid breaking something else, then we need something to allow userspace to keep the old behavior.
I this case, I don't see any advantage in keeping bug compatibility. If any guest code used the incorrectly-enabled APIC flag to make any decision while the APIC was disabled, I don't think the situation will get worse if the guest starts seeing the APIC flag correctly cleared.
Quoted 36 lines
Quoted 35 lines
Signed-off-by Jim Mattson <[email protected]>--- arch/x86/kvm/cpuid.c | 4 ++++ arch/x86/kvm/lapic.c | 1 + 2 files changed, 5 insertions(+)arch/x86/kvm/cpuid.c +4
-0@@ -81,6 +81,10 @@ int kvm_update_cpuid(struct kvm_vcpu *vcpu) best->ecx |=F (OSXSAVE ); } + best->edx &= ~F (APIC ); +if (vcpu->arch.apic_base &MSR_IA32_APICBASE_ENABLE ) + best->edx |=F (APIC ); +if (apic) {if (best->ecx &F (TSC_DEADLINE_TIMER )) apic->lapic_timer.timer_mode_mask =3 <<17 ;arch/x86/kvm/lapic.c +1
-0@@ -1758,6 +1758,7 @@ void kvm_lapic_set_base(struct kvm_vcpu *vcpu, u64 value)/* update jump label if enable bit changes */ if ((old_value ^ value) &MSR_IA32_APICBASE_ENABLE ) { +kvm_update_cpuid (vcpu);if (value &MSR_IA32_APICBASE_ENABLE ) {kvm_apic_set_xapic_id (apic, vcpu->vcpu_id);static_key_slow_dec_deferred (&apic_hw_disabled);
Signature · 1 line
Eduardo
Paolo Bonzini
maintainerQuoted 1 line · Jim Mattson
Better would be to call
kvm_update_cpuidregardless, I think.
Sure. A kvm-unit-tests patch would be even better so that we can ensure it works with QEMU userspace irqchip. :)
Paolo
Quoted 19 lines · Paolo Bonzini
Quoted 18 lines · Jim Mattson
arch/x86/kvm/cpuid.c int kvm_update_cpuid(struct kvm_vcpu *vcpu) · line 90
Quoted 8 lines
arch/x86/kvm/cpuid.c +4
-0+ best->edx &= ~F (APIC ); +if (vcpu->arch.apic_base &MSR_IA32_APICBASE_ENABLE ) + best->edx |=F (APIC ); +if (apic) {if (best->ecx &F (TSC_DEADLINE_TIMER )) apic->lapic_timer.timer_mode_mask =3 <<17 ;The three new lines should be inside "if (apic)", because you are not calling
kvm_update_cpuidat all in kvm_lapic_set_base's "if (!apic)" case.Thanks,
Paolo
Agreed, but as you can probably tell, I don't use QEMU, so I will leave that to someone who does.
Quoted 29 lines · Paolo Bonzini
Quoted 1 line · Jim Mattson
Better would be to call
kvm_update_cpuidregardless, I think.Sure. A kvm-unit-tests patch would be even better so that we can ensure it works with QEMU userspace irqchip. :)
Paolo
Quoted 19 lines · Paolo Bonzini
Quoted 18 lines · Jim Mattson
arch/x86/kvm/cpuid.c int kvm_update_cpuid(struct kvm_vcpu *vcpu) · line 90
Quoted 8 lines
arch/x86/kvm/cpuid.c +4
-0+ best->edx &= ~F (APIC ); +if (vcpu->arch.apic_base &MSR_IA32_APICBASE_ENABLE ) + best->edx |=F (APIC ); +if (apic) {if (best->ecx &F (TSC_DEADLINE_TIMER )) apic->lapic_timer.timer_mode_mask =3 <<17 ;The three new lines should be inside "if (apic)", because you are not calling
kvm_update_cpuidat all in kvm_lapic_set_base's "if (!apic)" case.Thanks,
Paolo
Paolo Bonzini
maintainerQuoted 6 lines · Igor Mammedov
Quoted 4 lines
When IA32_APIC_BASE[11] is 0, the processor is functionally equivalent to an IA-32 processor without an on-chip APIC. The CPUID feature flag for the APIC (see Section 10.4.2, "Presence of the Local APIC") is also set to 0.
CCing Eduardo in case it might affect migration.
If the destination kernel is old, it will re-grow the CPUID APIC bit. However, clearing IA32_APIC_BASE[11] should really only happen in the BIOS; our firmware is sane and doesn't do that.
See this bit in arch/x86/kernel/apic/apic.c's apic_force_enable:
rdmsr(MSR_IA32_APICBASE, l, h);
if (!(l & MSR_IA32_APICBASE_ENABLE)) {
pr_info("Local APIC disabled by BIOS -- reenabling.\n");
l &= ~MSR_IA32_APICBASE_BASE;
l |= MSR_IA32_APICBASE_ENABLE | addr;
wrmsr(MSR_IA32_APICBASE, l, h);
enabled_via_apicbase = 1;
}Paolo
Paolo Bonzini
maintainerQuoted 2 lines · Jim Mattson
Agreed, but as you can probably tell, I don't use QEMU, so I will leave that to someone who does.
If you can find a colleague or minion to do it, fine, otherwise I'll drop the patch. The benefit is small and the corner cases large.
Paolo
Quoted 30 lines · Paolo Bonzini
Quoted 29 lines · Jim Mattson
Quoted 1 line
Better would be to call
kvm_update_cpuidregardless, I think.Sure. A kvm-unit-tests patch would be even better so that we can ensure it works with QEMU userspace irqchip. :)
Paolo
Quoted 19 lines · Paolo Bonzini
Quoted 18 lines · Jim Mattson
arch/x86/kvm/cpuid.c int kvm_update_cpuid(struct kvm_vcpu *vcpu) · line 90
Quoted 8 lines
arch/x86/kvm/cpuid.c +4
-0+ best->edx &= ~F (APIC ); +if (vcpu->arch.apic_base &MSR_IA32_APICBASE_ENABLE ) + best->edx |=F (APIC ); +if (apic) {if (best->ecx &F (TSC_DEADLINE_TIMER )) apic->lapic_timer.timer_mode_mask =3 <<17 ;The three new lines should be inside "if (apic)", because you are not calling
kvm_update_cpuidat all in kvm_lapic_set_base's "if (!apic)" case.Thanks,
Paolo
PATCH v3 1/1 kvm: nVMX: CPUID.01H:EDX.APIC[bit 9] should mirror IA32_APIC_BASE[11]
In reply to Jim MattsonQuoted 1 line
From the Intel SDM, volume 3, section 10.4.3, "Enabling or Disabling the
Local APIC,"
When IA32_APIC_BASE[11] is 0, the processor is functionally equivalent to an IA-32 processor without an on-chip APIC. The CPUID feature flag for the APIC (see Section 10.4.2, "Presence of the Local APIC") is also set to 0.
--- arch/x86/kvm/cpuid.c | 4 ++++ arch/x86/kvm/lapic.c | 11 +++++++---- 2 files changed, 11 insertions(+), 4 deletions(-)
arch/x86/kvm/cpuid.c +4 -0
@@ -81,6 +81,10 @@ int kvm_update_cpuid(struct kvm_vcpu *vcpu) best->ecx |=F (OSXSAVE ); } + best->edx &= ~F (APIC ); +if (vcpu->arch.apic_base &MSR_IA32_APICBASE_ENABLE ) + best->edx |=F (APIC ); +if (apic) {if (best->ecx &F (TSC_DEADLINE_TIMER )) apic->lapic_timer.timer_mode_mask =3 <<17 ;
arch/x86/kvm/lapic.c +7 -4
@@ -1748,14 +1748,17 @@ void kvm_lapic_set_base(struct kvm_vcpu *vcpu, u64 value)u64 old_value = vcpu->arch.apic_base;struct kvm_lapic *apic = vcpu->arch.apic; -if (!apic) { +if (!apic) value |=MSR_IA32_APICBASE_BSP ; - vcpu->arch.apic_base = value; -return ; - } vcpu->arch.apic_base = value; +if ((old_value ^ value) &MSR_IA32_APICBASE_ENABLE ) +kvm_update_cpuid (vcpu); + +if (!apic) +return ; +/* update jump label if enable bit changes */ if ((old_value ^ value) &MSR_IA32_APICBASE_ENABLE ) {if (value &MSR_IA32_APICBASE_ENABLE ) {
Signature · 1 line
2.8.0.rc3.226.g39d4020
Paolo Bonzini
maintainerQuoted 7 lines · Jim Mattson
What if I were to adopt your previous suggestion:
Quoted 1 line
The three new lines should be inside "if (apic)", because you are not calling
kvm_update_cpuidat all in kvm_lapic_set_base's "if (!apic)" case.That would preserve the existing behavior for the QEMU userspace irqchip.
I do have a kvm-unit-test for the in-kernel APIC.
Send it, we can test it with QEMU userspace irqchip. Always send unit tests if you have them. :)
Paolo
Quoted 51 lines
On Wed, Nov 9, 2016 at 9:43 AM, Paolo Bonzini <[email protected] <mailto:[email protected]>> wrote:
On 09/11/2016 18:41, Jim Mattson wrote: > Agreed, but as you can probably tell, I don't use QEMU, so I will > leave that to someone who does. If you can find a colleague or minion to do it, fine, otherwise I'll drop the patch. The benefit is small and the corner cases large. Paolo > On Wed, Nov 9, 2016 at 9:37 AM, Paolo Bonzini <[email protected] <mailto:[email protected]>> wrote: >> >> >> On 09/11/2016 18:28, Jim Mattson wrote: >>> Better would be to call kvm_update_cpuid regardless, I think. >> >> Sure. A kvm-unit-tests patch would be even better so that we can ensure >> it works with QEMU userspace irqchip. :) >> >> Paolo >> >>> On Wed, Nov 9, 2016 at 9:14 AM, Paolo Bonzini <[email protected] <mailto:[email protected]>> wrote: >>>> >>>> >>>> On 09/11/2016 18:04, Jim Mattson wrote: >>>>> >>>>> + best->edx &= ~F(APIC); >>>>> + if (vcpu->arch.apic_base & MSR_IA32_APICBASE_ENABLE) >>>>> + best->edx |= F(APIC); >>>>> + >>>>> if (apic) { >>>>> if (best->ecx & F(TSC_DEADLINE_TIMER)) >>>>> apic->lapic_timer.timer_mode_mask = 3 << 17; >>>> >>>> The three new lines should be inside "if (apic)", because you are not >>>> calling kvm_update_cpuid at all in kvm_lapic_set_base's "if (!apic)" case. >>>> >>>> Thanks, >>>> >>>> Paolo
PATCH 1/1 x86: Test disabled local APIC
This test disables and re-enables the local APIC and ensures that CPUID.1H:EDX.APIC[bit 9] mirrors IA32_APIC_BASE[11].
--- x86/apic.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+)
x86/apic.c +23 -0
@@ -104,6 +104,28 @@ void test_enable_x2apic(void) } } +static void test_apic_disable (void ) +{ +u64 orig_apicbase =rdmsr (MSR_IA32_APICBASE ); + +report_prefix_push ("apic_disable" ); + +report ("Local apic enabled" , orig_apicbase &APIC_EN ); +report ("CPUID.1H:EDX.APIC[bit 9] is set" ,cpuid (1 ).d & (1 <<9 )); + +wrmsr (MSR_IA32_APICBASE , orig_apicbase & ~(APIC_EN |APIC_EXTD )); +report ("Local apic disabled" , !(rdmsr (MSR_IA32_APICBASE ) &APIC_EN )); +report ("CPUID.1H:EDX.APIC[bit 9] is clear" , !(cpuid (1 ).d & (1 <<9 ))); + +wrmsr (MSR_IA32_APICBASE , orig_apicbase & ~APIC_EXTD ); +wrmsr (MSR_IA32_APICBASE , orig_apicbase); +apic_write (APIC_SPIV ,0x1ff ); +report ("Local apic enabled" ,rdmsr (MSR_IA32_APICBASE ) &APIC_EN ); +report ("CPUID.1H:EDX.APIC[bit 9] is set" ,cpuid (1 ).d & (1 <<9 )); + +report_prefix_pop (); +} +#define ALTERNATE_APIC_BASE 0x42000000static void test_apicbase (void )
@@ -398,6 +420,7 @@ int main()mask_pic_interrupts ();test_apic_id (); +test_apic_disable ();test_enable_x2apic ();test_apicbase ();
Signature · 1 line
2.8.0.rc3.226.g39d4020
Radim Krčmář
Applied2016-11-09 09:50-0800, Jim Mattson:
Quoted 10 lines
From the Intel SDM, volume 3, section 10.4.3, "Enabling or Disabling the Local APIC,"
When IA32_APIC_BASE[11] is 0, the processor is functionally equivalent to an IA-32 processor without an on-chip APIC. The CPUID feature flag for the APIC (see Section 10.4.2, "Presence of the Local APIC") is also set to 0.
Signed-off-by Jim Mattson <[email protected]>---
Applied to kvm/queue, thanks.
Radim Krčmář
AppliedRe: [kvm-unit-tests PATCH] x86: Test disabled local APIC
In reply to Jim Mattson2016-11-14 10:14-0800, Jim Mattson:
Quoted 5 lines
This test disables and re-enables the local APIC and ensures that CPUID.1H:EDX.APIC[bit 9] mirrors IA32_APIC_BASE[11].
Signed-off-by Jim Mattson <[email protected]>---
Applied, thanks.