[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 12/14] i386/cpu: Store LAPIC bus frequency in CPU structure
From: |
Michael S. Tsirkin |
Subject: |
Re: [PATCH 12/14] i386/cpu: Store LAPIC bus frequency in CPU structure |
Date: |
Tue, 10 Mar 2020 08:27:10 -0400 |
On Tue, Mar 10, 2020 at 12:53:28PM +0200, Liran Alon wrote:
>
> On 10/03/2020 11:29, Michael S. Tsirkin wrote:
> > On Tue, Mar 10, 2020 at 01:54:09AM +0200, Liran Alon wrote:
> > > No functional change.
> > > This information will be used by following patches.
> > >
> > > Reviewed-by: Nikita Leshenko <address@hidden>
> > > Signed-off-by: Liran Alon <address@hidden>
> > > ---
> > > linux-headers/asm-x86/kvm.h | 4 ++++
> > > target/i386/cpu.h | 1 +
> > > target/i386/kvm.c | 6 +++---
> > > 3 files changed, 8 insertions(+), 3 deletions(-)
> > >
> > > diff --git a/linux-headers/asm-x86/kvm.h b/linux-headers/asm-x86/kvm.h
> > > index 503d3f42da16..99eeaaf2f0b4 100644
> > > --- a/linux-headers/asm-x86/kvm.h
> > > +++ b/linux-headers/asm-x86/kvm.h
> > > @@ -446,4 +446,8 @@ struct kvm_pmu_event_filter {
> > > #define KVM_PMU_EVENT_ALLOW 0
> > > #define KVM_PMU_EVENT_DENY 1
> > > +/* From arch/x86/kvm/lapic.h */
> > > +#define KVM_APIC_BUS_CYCLE_NS 1
> > > +#define KVM_APIC_BUS_FREQUENCY (1000000000ULL /
> > > KVM_APIC_BUS_CYCLE_NS)
> > > +
> > > #endif /* _ASM_X86_KVM_H */
> >
> > This header is auto-generated from UAPI - you can't add
> > your own stuff here.
> Oh I didn't notice that. OK, I will move definitions to somewhere else.
> Is it fine by you if I will just put them then in target/i386/kvm.c
> directly?
> Or do you prefer I will put them in target/i386/kvm_i386.h
>
> -Liran
>
That's Paolo's area. Myself, I don't really know what this is doing,
nor how is this supposed to work e.g. on TCG.
--
MST
- Re: [PATCH 05/14] hw/i386/vmport: Report VMX type in CMD_GETVERSION, (continued)
[PATCH 09/14] hw/i386/vmport: Add support for CMD_GETTIMEFULL, Liran Alon, 2020/03/09
[PATCH 10/14] hw/i386/vmport: Add support for CMD_GET_VCPU_INFO, Liran Alon, 2020/03/09
[PATCH 11/14] hw/i386/vmport: Allow x2apic without IR, Liran Alon, 2020/03/09
[PATCH 12/14] i386/cpu: Store LAPIC bus frequency in CPU structure, Liran Alon, 2020/03/09
[PATCH 14/14] hw/i386/vmport: Assert vmport initialized before registering commands, Liran Alon, 2020/03/09
[PATCH 13/14] hw/i386/vmport: Add support for CMD_GETHZ, Liran Alon, 2020/03/09
[PATCH 06/14] hw/i386/vmport: Define enum for all commands, Liran Alon, 2020/03/09