* Guest reboot interface
@ 2011-01-07 12:08 Liu Yu-B13201
2011-01-07 12:40 ` Alexander Graf
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Liu Yu-B13201 @ 2011-01-07 12:08 UTC (permalink / raw)
To: kvm-ppc
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="windows-1254", Size: 654 bytes --]
Hi all,
When guest reboot, it's better to reset status by qemu, and then sync them back to kvm
However as you know there's no BOOKE mmu emulation in qemu,
So that qemu cannot directly reset BOOKE TLB.
Moreover a lot SPR registers also cannot be reset by qemu.
As a workaround, we need a interface that qemu can notify kvm to reset the status.
My question is, what should the interface be?
Looks like there's no alike interface in other archs.
Should we define a ioctl command number only used by BOOKE or powerpc?
Thanks,
Yu
ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¤¾oé¥ÏâØ^nr¡ö¦zË\x1aëh¨èÚ&£ûàz¿äz¹Þú+Ê+zf£¢·h§~Ûiÿÿïêÿêçz_è®\x0fæj:+v¨þ)ߣøm
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Guest reboot interface
2011-01-07 12:08 Guest reboot interface Liu Yu-B13201
@ 2011-01-07 12:40 ` Alexander Graf
2011-01-07 15:38 ` Jan Kiszka
2011-01-07 17:20 ` Scott Wood
2 siblings, 0 replies; 4+ messages in thread
From: Alexander Graf @ 2011-01-07 12:40 UTC (permalink / raw)
To: kvm-ppc
On 07.01.2011, at 13:08, Liu Yu-B13201 wrote:
>
> Hi all,
>
> When guest reboot, it's better to reset status by qemu, and then sync them back to kvm
> However as you know there's no BOOKE mmu emulation in qemu,
> So that qemu cannot directly reset BOOKE TLB.
> Moreover a lot SPR registers also cannot be reset by qemu.
>
> As a workaround, we need a interface that qemu can notify kvm to reset the status.
> My question is, what should the interface be?
> Looks like there's no alike interface in other archs.
> Should we define a ioctl command number only used by BOOKE or powerpc?
Wouldn't it make more sense to just fake-implement the registers (SPRs and unused TLB) and sync that back on reset? You don't have to implement the actual mmu logic, but that keeps things at the same place at least.
Alex
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Guest reboot interface
2011-01-07 12:08 Guest reboot interface Liu Yu-B13201
2011-01-07 12:40 ` Alexander Graf
@ 2011-01-07 15:38 ` Jan Kiszka
2011-01-07 17:20 ` Scott Wood
2 siblings, 0 replies; 4+ messages in thread
From: Jan Kiszka @ 2011-01-07 15:38 UTC (permalink / raw)
To: kvm-ppc
[-- Attachment #1: Type: text/plain, Size: 1128 bytes --]
Am 07.01.2011 13:40, Alexander Graf wrote:
>
> On 07.01.2011, at 13:08, Liu Yu-B13201 wrote:
>
>>
>> Hi all,
>>
>> When guest reboot, it's better to reset status by qemu, and then sync them back to kvm
>> However as you know there's no BOOKE mmu emulation in qemu,
>> So that qemu cannot directly reset BOOKE TLB.
>> Moreover a lot SPR registers also cannot be reset by qemu.
>>
>> As a workaround, we need a interface that qemu can notify kvm to reset the status.
>> My question is, what should the interface be?
>> Looks like there's no alike interface in other archs.
>> Should we define a ioctl command number only used by BOOKE or powerpc?
>
> Wouldn't it make more sense to just fake-implement the registers (SPRs and unused TLB) and sync that back on reset? You don't have to implement the actual mmu logic, but that keeps things at the same place at least.
>
This is how it's done on x86, and it's the preferred way. There will
never be such things as KVM_IOCTL_RESET.
BTW, isn't the TLB state relevant for vmsave/restore? Then it should be
made accessible for user space anyway.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Guest reboot interface
2011-01-07 12:08 Guest reboot interface Liu Yu-B13201
2011-01-07 12:40 ` Alexander Graf
2011-01-07 15:38 ` Jan Kiszka
@ 2011-01-07 17:20 ` Scott Wood
2 siblings, 0 replies; 4+ messages in thread
From: Scott Wood @ 2011-01-07 17:20 UTC (permalink / raw)
To: kvm-ppc
On Fri, 7 Jan 2011 16:38:35 +0100
Jan Kiszka <jan.kiszka@web.de> wrote:
> Am 07.01.2011 13:40, Alexander Graf wrote:
> >
> > On 07.01.2011, at 13:08, Liu Yu-B13201 wrote:
> >
> >>
> >> Hi all,
> >>
> >> When guest reboot, it's better to reset status by qemu, and then sync them back to kvm
> >> However as you know there's no BOOKE mmu emulation in qemu,
> >> So that qemu cannot directly reset BOOKE TLB.
> >> Moreover a lot SPR registers also cannot be reset by qemu.
> >>
> >> As a workaround, we need a interface that qemu can notify kvm to reset the status.
> >> My question is, what should the interface be?
> >> Looks like there's no alike interface in other archs.
> >> Should we define a ioctl command number only used by BOOKE or powerpc?
> >
> > Wouldn't it make more sense to just fake-implement the registers (SPRs and unused TLB) and sync that back on reset? You don't have to implement the actual mmu logic, but that keeps things at the same place at least.
> >
>
> This is how it's done on x86, and it's the preferred way. There will
> never be such things as KVM_IOCTL_RESET.
>
> BTW, isn't the TLB state relevant for vmsave/restore? Then it should be
> made accessible for user space anyway.
It'll also be helpful for debugging, and for giving Qemu more control
over how the OS is loaded -- having guest memory start somewhere other
than zero is useful when doing DMA without an IOMMU, and there'll have
to be a TLB entry pointing up there on entry.
-Scott
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-01-07 17:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-07 12:08 Guest reboot interface Liu Yu-B13201
2011-01-07 12:40 ` Alexander Graf
2011-01-07 15:38 ` Jan Kiszka
2011-01-07 17:20 ` Scott Wood
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.