Messages in this thread | | | From | KY Srinivasan <> | Subject | RE: [PATCH 2/5] X86: Hyper-V: Enable IPI enlightenments | Date | Fri, 27 Apr 2018 06:31:24 +0000 |
| |
> -----Original Message----- > From: Michael Kelley (EOSG) > Sent: Thursday, April 26, 2018 3:55 PM > To: KY Srinivasan <kys@microsoft.com>; x86@kernel.org; > gregkh@linuxfoundation.org; linux-kernel@vger.kernel.org; > devel@linuxdriverproject.org; olaf@aepfle.de; apw@canonical.com; > jasowang@redhat.com; tglx@linutronix.de; hpa@zytor.com; Stephen > Hemminger <sthemmin@microsoft.com>; vkuznets@redhat.com > Subject: RE: [PATCH 2/5] X86: Hyper-V: Enable IPI enlightenments > > > -----Original Message----- > > From: kys@linuxonhyperv.com <kys@linuxonhyperv.com> > > Sent: Wednesday, April 25, 2018 11:13 AM > > To: x86@kernel.org; gregkh@linuxfoundation.org; linux- > kernel@vger.kernel.org; > > devel@linuxdriverproject.org; olaf@aepfle.de; apw@canonical.com; > jasowang@redhat.com; > > tglx@linutronix.de; hpa@zytor.com; Stephen Hemminger > <sthemmin@microsoft.com>; > > Michael Kelley (EOSG) <Michael.H.Kelley@microsoft.com>; > vkuznets@redhat.com > > Cc: KY Srinivasan <kys@microsoft.com> > > Subject: [PATCH 2/5] X86: Hyper-V: Enable IPI enlightenments > > > > From: "K. Y. Srinivasan" <kys@microsoft.com> > > > > Hyper-V supports hypercalls to implement IPI; use them. > > > > Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> > > --- > > arch/x86/hyperv/hv_apic.c | 125 > +++++++++++++++++++++++++++++++++++++ > > arch/x86/hyperv/hv_init.c | 17 +++++ > > arch/x86/include/asm/hyperv-tlfs.h | 9 +++ > > arch/x86/include/asm/mshyperv.h | 1 + > > 4 files changed, 152 insertions(+) > > > > diff --git a/arch/x86/hyperv/hv_apic.c b/arch/x86/hyperv/hv_apic.c > > index e0a5b36208fc..7f3322ecfb01 100644 > > --- a/arch/x86/hyperv/hv_apic.c > > +++ b/arch/x86/hyperv/hv_apic.c > > @@ -30,6 +30,14 @@ > > #include <linux/slab.h> > > #include <linux/cpuhotplug.h> > > > > +struct ipi_arg_non_ex { > > + u32 vector; > > + u32 reserved; > > + u64 cpu_mask; > > +}; > > I think we'd like to put structures like this, which are defined in the > Hyper-V Top Level Functional Spec, in hyperv-tlfs.h. Also, the 5.0b > version of the TLFS, which is latest, shows this structure on page 100: > > u32 vector; > u8 targetvtl; > u8 reserved[3]; > u64 cpu_mask; >
Good point. I will make the necessary adjustments.
Regards,
K. Y
| |