Re: [kvm-unit-tests PATCH 11/14] powerpc/ppc64: add rtas_power_off

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 03.08.15 19:02, Andrew Jones wrote:
> On Mon, Aug 03, 2015 at 07:08:17PM +0200, Paolo Bonzini wrote:
>>
>>
>> On 03/08/2015 16:41, Andrew Jones wrote:
>>> Add enough RTAS support to support power-off, and apply it to
>>> exit().
>>>
>>> Signed-off-by: Andrew Jones <drjones@xxxxxxxxxx>
>>
>> Why not use virtio-mmio + testdev on ppc as well?  Similar to how we're
>> not using PSCI on ARM or ACPI on x86.
> 
> I have some longer term plans to add minimal virtio-pci support to
> kvm-unit-tests, and then we could plug virtio-serial+chr-testdev into
> that. I didn't think I could use virtio-mmio directly with spapr, but
> maybe I can? Actually, I sort of like this approach more in some

You would need to add support for the dynamic sysbus device allocation
in the spapr machine, but then I don't see why it wouldn't work.

PCI however is the more natural choice on sPAPR if you want to do virtio.

That said, if all you need is a chr transport, IIRC there should be a
way to get you additional channels on the existing "serial port" - which
really is just a simply hypercall interface. But David is the best
person to guide you to the best path forward here.


Alex

> respects though, as it doesn't require a special testdev or virtio
> support, keeping the unit test extra minimal. In fact, I was even
> thinking about posting patches (which I've already written) that
> allow chr-testdev to be optional for ARM too, now that it could use
> the exitcode snooper.
> 
> Thanks,
> drew
> 
>>
>> Paolo
>> --
>> To unsubscribe from this list: send the line "unsubscribe kvm" in
>> the body of a message to majordomo@xxxxxxxxxxxxxxx
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux