All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laurent Vivier <lvivier@redhat.com>
To: Balbir Singh <bsingharora@gmail.com>
Cc: Will Deacon <will.deacon@arm.com>,
	kvm@vger.kernel.org, Michael Ellerman <mpe@ellerman.id.au>,
	Michael Neuling <mikey@neuling.org>,
	kvm-ppc@vger.kernel.org
Subject: Re: [PATCH 0/5] Add support for ppc64le in kvmtool
Date: Mon, 04 Apr 2016 08:41:59 +0000	[thread overview]
Message-ID: <570228D7.9010104@redhat.com> (raw)
In-Reply-To: <CAKTCnzmPBvNG=9MnGmH4FdjQCkZNCcweHdrpYek=dZ0-0WSz-g@mail.gmail.com>



On 04/04/2016 10:34, Balbir Singh wrote:
> On Fri, Apr 1, 2016 at 11:12 AM, Balbir Singh <bsingharora@gmail.com> wrote:
>>
>>
>> On 01/04/16 00:38, Laurent Vivier wrote:
>>> Hi,
>>>
>>>
>>> could you add "kvmtool" in the subject, next time, please? :)
>>> And it could be a good idea to send to kvm-ppc ML too.
>> You mean like in [kvmtool]? The cover letter does have kvmtool, I think
>> adding [kvmtool] tag helps. I'll keep it in mind
>>> On 31/03/2016 13:28, Balbir Singh wrote:
>>>> Changelog v2: Add support for running a task on all cpus by
>>>>               Michael Ellerman. Large improvements to patch 2/4
>>>>
>>>> This patchset adds support for ppc64le. As a part of the support 1/4 converts
>>>> key data structures in the fdt to big endian. 2/4 introduces h_set_mode call
>>>> to support little endian interrupt processing. This requires support to execute
>>>> and queue commands to a particular vcpu and hence a generic infrastructure
>>>> is added in patch 2/4. Patch 3/4 fixes a race condition found during exit.
>>>> Patch 4/4 adds support for fixing spapr_pci to support little endian guests
>>>> so that virtio-pci can be detected and virtio can work
>>>>
>>>> This patchset was tested on x64 (on my laptop) and on a ppc64le system.
>>>>
>>>> Balbir Singh (5):
>>>>   Add basic little endian support.
>>>>   Add basic infrastructure to run tasks on vCPUs
>>>>   Implement H_SET_MODE for ppc64le
>>>>   Fix a race during exit processing
>>>>   Implement spapr pci for little endian systems.
>>> I was trying to use kvmtool on ppc64, some days ago, and I was not able
>>> to run anything (yes, I'm stupid), So could you also update the README
>>> with some ppc64/ppc64le stuff explaining how to use kvmtool on POWER?
>> No.. I don't think anyone is stupid, may be it just doesn't work. For ppc64le
>> here are the steps. I'll write a README after this series is committed
>>
>> 1. Make sure you have this patchset
>> 2. Compile a ppc64le_defconfig kernel
>> 3. Strip the elf header from vmlinux (yes, we don't yet have an elf parser - TODO)
>> 4. lkvm run -c <cpus> -m <mem{constrained to 4G}> -k <kernel from step 3> -i <initrd> -d <diskimage> -p <args> --console hv
>>
>> There are two limitations that need to be fixed
>> 1. memory is limited to 4G because of the way RTAS is currently setup in kvmtool, I have a brute force
>>    fix for it, I'll post it after this series is merged
>> 2. HPT size is limited to 16MB, will post a patch after this series is merged

Do you know David Gibson is working on a patch series for QEMU/KVM to
change the size of the HPT while the guest is running?

http://patchwork.ozlabs.org/patch/599965/

>>
>> TODOs
>> 1. Implement an elf parser so that we don't have to do step 3
>>
>>
>>> Or give me a link to the information, and I'll do.
>> I hope this helps, I can do some documentation once we get the limitations and TODOs
>> resolved
>>> Thanks,
>>> Laurent
>> Thanks for looking into this
>> Balbir
> 
> Hi,

Hi,

> Did the instructions help? Any luck with running kvmtool?
> 

This is helpful but I didn't have the time to try again.

Just one more question: how do you strip the ELF header (step 3)?

Thanks,
Laurent

WARNING: multiple messages have this Message-ID (diff)
From: Laurent Vivier <lvivier@redhat.com>
To: Balbir Singh <bsingharora@gmail.com>
Cc: Will Deacon <will.deacon@arm.com>,
	kvm@vger.kernel.org, Michael Ellerman <mpe@ellerman.id.au>,
	Michael Neuling <mikey@neuling.org>,
	kvm-ppc@vger.kernel.org
Subject: Re: [PATCH 0/5] Add support for ppc64le in kvmtool
Date: Mon, 4 Apr 2016 10:41:59 +0200	[thread overview]
Message-ID: <570228D7.9010104@redhat.com> (raw)
In-Reply-To: <CAKTCnzmPBvNG=9MnGmH4FdjQCkZNCcweHdrpYek=dZ0-0WSz-g@mail.gmail.com>



On 04/04/2016 10:34, Balbir Singh wrote:
> On Fri, Apr 1, 2016 at 11:12 AM, Balbir Singh <bsingharora@gmail.com> wrote:
>>
>>
>> On 01/04/16 00:38, Laurent Vivier wrote:
>>> Hi,
>>>
>>>
>>> could you add "kvmtool" in the subject, next time, please? :)
>>> And it could be a good idea to send to kvm-ppc ML too.
>> You mean like in [kvmtool]? The cover letter does have kvmtool, I think
>> adding [kvmtool] tag helps. I'll keep it in mind
>>> On 31/03/2016 13:28, Balbir Singh wrote:
>>>> Changelog v2: Add support for running a task on all cpus by
>>>>               Michael Ellerman. Large improvements to patch 2/4
>>>>
>>>> This patchset adds support for ppc64le. As a part of the support 1/4 converts
>>>> key data structures in the fdt to big endian. 2/4 introduces h_set_mode call
>>>> to support little endian interrupt processing. This requires support to execute
>>>> and queue commands to a particular vcpu and hence a generic infrastructure
>>>> is added in patch 2/4. Patch 3/4 fixes a race condition found during exit.
>>>> Patch 4/4 adds support for fixing spapr_pci to support little endian guests
>>>> so that virtio-pci can be detected and virtio can work
>>>>
>>>> This patchset was tested on x64 (on my laptop) and on a ppc64le system.
>>>>
>>>> Balbir Singh (5):
>>>>   Add basic little endian support.
>>>>   Add basic infrastructure to run tasks on vCPUs
>>>>   Implement H_SET_MODE for ppc64le
>>>>   Fix a race during exit processing
>>>>   Implement spapr pci for little endian systems.
>>> I was trying to use kvmtool on ppc64, some days ago, and I was not able
>>> to run anything (yes, I'm stupid), So could you also update the README
>>> with some ppc64/ppc64le stuff explaining how to use kvmtool on POWER?
>> No.. I don't think anyone is stupid, may be it just doesn't work. For ppc64le
>> here are the steps. I'll write a README after this series is committed
>>
>> 1. Make sure you have this patchset
>> 2. Compile a ppc64le_defconfig kernel
>> 3. Strip the elf header from vmlinux (yes, we don't yet have an elf parser - TODO)
>> 4. lkvm run -c <cpus> -m <mem{constrained to 4G}> -k <kernel from step 3> -i <initrd> -d <diskimage> -p <args> --console hv
>>
>> There are two limitations that need to be fixed
>> 1. memory is limited to 4G because of the way RTAS is currently setup in kvmtool, I have a brute force
>>    fix for it, I'll post it after this series is merged
>> 2. HPT size is limited to 16MB, will post a patch after this series is merged

Do you know David Gibson is working on a patch series for QEMU/KVM to
change the size of the HPT while the guest is running?

http://patchwork.ozlabs.org/patch/599965/

>>
>> TODOs
>> 1. Implement an elf parser so that we don't have to do step 3
>>
>>
>>> Or give me a link to the information, and I'll do.
>> I hope this helps, I can do some documentation once we get the limitations and TODOs
>> resolved
>>> Thanks,
>>> Laurent
>> Thanks for looking into this
>> Balbir
> 
> Hi,

Hi,

> Did the instructions help? Any luck with running kvmtool?
> 

This is helpful but I didn't have the time to try again.

Just one more question: how do you strip the ELF header (step 3)?

Thanks,
Laurent

  reply	other threads:[~2016-04-04  8:41 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-31 11:28 [PATCH 0/5] Add support for ppc64le in kvmtool Balbir Singh
2016-03-31 11:28 ` [PATCH 1/5] Add basic little endian support Balbir Singh
2016-03-31 11:28 ` [PATCH 2/5] Add basic infrastructure to run tasks on vCPUs Balbir Singh
2016-04-01 10:42   ` Michael Ellerman
2016-04-01 11:29     ` Balbir Singh
2016-04-01 12:27       ` Will Deacon
2016-04-07  1:12         ` Balbir Singh
2016-03-31 11:28 ` [PATCH 3/5] Implement H_SET_MODE for ppc64le Balbir Singh
2016-03-31 11:28 ` [PATCH 4/5] Fix a race during exit processing Balbir Singh
2016-04-11 15:37   ` Will Deacon
2016-03-31 11:28 ` [PATCH 5/5] Implement spapr pci for little endian systems Balbir Singh
2016-03-31 13:38 ` [PATCH 0/5] Add support for ppc64le in kvmtool Laurent Vivier
2016-03-31 13:38   ` Laurent Vivier
2016-04-01  0:12   ` Balbir Singh
2016-04-01  0:12     ` Balbir Singh
2016-04-04  8:34     ` Balbir Singh
2016-04-04  8:34       ` Balbir Singh
2016-04-04  8:41       ` Laurent Vivier [this message]
2016-04-04  8:41         ` Laurent Vivier
2016-04-04 10:24         ` Balbir Singh
2016-04-04 10:24           ` Balbir Singh
2016-04-04 12:21           ` Laurent Vivier
2016-04-04 12:21             ` Laurent Vivier
2016-04-01 10:47 ` Michael Ellerman
2016-04-01 10:48   ` Will Deacon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=570228D7.9010104@redhat.com \
    --to=lvivier@redhat.com \
    --cc=bsingharora@gmail.com \
    --cc=kvm-ppc@vger.kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=mikey@neuling.org \
    --cc=mpe@ellerman.id.au \
    --cc=will.deacon@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.