All of lore.kernel.org
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: Alexander Graf <agraf@suse.de>
Cc: kvm-ppc@vger.kernel.org, kvm list <kvm@vger.kernel.org>,
	Avi Kivity <avi@redhat.com>,
	Marcelo Tosatti <mtosatti@redhat.com>
Subject: Re: [PATCH 08/50] KVM: PPC: Add support for explicit HIOR setting
Date: Thu, 05 Jan 2012 17:16:15 +0000	[thread overview]
Message-ID: <4F05DADF.4010403@freescale.com> (raw)
In-Reply-To: <8CF5DEF6-1200-41A4-B6C5-8C7AE68B2615@suse.de>

On 01/04/2012 08:36 PM, Alexander Graf wrote:
> 
> On 04.01.2012, at 21:12, Scott Wood wrote:
> 
>> On 01/03/2012 07:10 PM, Alexander Graf wrote:
>>> diff --git a/arch/powerpc/include/asm/kvm.h b/arch/powerpc/include/asm/kvm.h
>>> index 25964ee..fb3fddc 100644
>>> --- a/arch/powerpc/include/asm/kvm.h
>>> +++ b/arch/powerpc/include/asm/kvm.h
>>> @@ -327,4 +327,6 @@ struct kvm_book3e_206_tlb_params {
>>> 	__u32 reserved[8];
>>> };
>>>
>>> +#define KVM_ONE_REG_PPC_HIOR	KVM_ONE_REG_PPC | 0x100
>>
>> Where does 0x100 come from?
> 
> I quite frankly don't remember :). This could just as well be 0 or 1.
> 
>> There should probaly be some structure to the register space, with a
>> subarch field distinguishing between "common SPR", "book3s SPR", "book3e
>> SPR", along with others for non-SPR registers, KVM inventions, etc.
> 
> Not sure we really need this. I would very much prefer to just always
> use the textual representation. What would we do if something book3s
> specific suddenly becomes generic (like Altivec for example, or
> FPU)?

Good point... A plain enumeration should be fine.  0x100 was strange
enough that it left me wondering what the value should be for the next
register to be added -- I didn't want it to turn into something like the
booke regs->trap mess, where some exceptions re-use the classic offsets,
and other exceptions have numbers that seem to be pulled from out of
nowhere.

-Scott


WARNING: multiple messages have this Message-ID (diff)
From: Scott Wood <scottwood@freescale.com>
To: Alexander Graf <agraf@suse.de>
Cc: <kvm-ppc@vger.kernel.org>, kvm list <kvm@vger.kernel.org>,
	Avi Kivity <avi@redhat.com>,
	Marcelo Tosatti <mtosatti@redhat.com>
Subject: Re: [PATCH 08/50] KVM: PPC: Add support for explicit HIOR setting
Date: Thu, 5 Jan 2012 11:16:15 -0600	[thread overview]
Message-ID: <4F05DADF.4010403@freescale.com> (raw)
In-Reply-To: <8CF5DEF6-1200-41A4-B6C5-8C7AE68B2615@suse.de>

On 01/04/2012 08:36 PM, Alexander Graf wrote:
> 
> On 04.01.2012, at 21:12, Scott Wood wrote:
> 
>> On 01/03/2012 07:10 PM, Alexander Graf wrote:
>>> diff --git a/arch/powerpc/include/asm/kvm.h b/arch/powerpc/include/asm/kvm.h
>>> index 25964ee..fb3fddc 100644
>>> --- a/arch/powerpc/include/asm/kvm.h
>>> +++ b/arch/powerpc/include/asm/kvm.h
>>> @@ -327,4 +327,6 @@ struct kvm_book3e_206_tlb_params {
>>> 	__u32 reserved[8];
>>> };
>>>
>>> +#define KVM_ONE_REG_PPC_HIOR	KVM_ONE_REG_PPC | 0x100
>>
>> Where does 0x100 come from?
> 
> I quite frankly don't remember :). This could just as well be 0 or 1.
> 
>> There should probaly be some structure to the register space, with a
>> subarch field distinguishing between "common SPR", "book3s SPR", "book3e
>> SPR", along with others for non-SPR registers, KVM inventions, etc.
> 
> Not sure we really need this. I would very much prefer to just always
> use the textual representation. What would we do if something book3s
> specific suddenly becomes generic (like Altivec for example, or
> FPU)?

Good point... A plain enumeration should be fine.  0x100 was strange
enough that it left me wondering what the value should be for the next
register to be added -- I didn't want it to turn into something like the
booke regs->trap mess, where some exceptions re-use the classic offsets,
and other exceptions have numbers that seem to be pulled from out of
nowhere.

-Scott

  reply	other threads:[~2012-01-05 17:16 UTC|newest]

Thread overview: 180+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-04  0:58 [PULL 00/50] ppc patch queue 2012-01-04 Alexander Graf
2012-01-04  1:09 ` Alexander Graf
2012-01-04  0:58 ` [PATCH 02/50] KVM: PPC: e500: Eliminate preempt_disable in local_sid_destroy_all Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  0:58 ` [PATCH 13/50] KVM: PPC: booke: check for signals in kvmppc_vcpu_run Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-08 13:18   ` Avi Kivity
2012-01-08 13:18     ` Avi Kivity
2012-01-08 15:11     ` Alexander Graf
2012-01-08 15:11       ` Alexander Graf
2012-01-08 15:22       ` Avi Kivity
2012-01-08 15:22         ` Avi Kivity
2012-01-08 15:37         ` Alexander Graf
2012-01-08 15:37           ` Alexander Graf
2012-01-08 16:13           ` Avi Kivity
2012-01-08 16:13             ` Avi Kivity
2012-01-08 16:21             ` Alexander Graf
2012-01-08 16:21               ` Alexander Graf
2012-01-08 16:26               ` Avi Kivity
2012-01-08 16:26                 ` Avi Kivity
2012-01-08 16:41                 ` Alexander Graf
2012-01-08 16:41                   ` Alexander Graf
2012-01-08 16:45                   ` Avi Kivity
2012-01-08 16:45                     ` Avi Kivity
2012-01-08 16:54                     ` Alexander Graf
2012-01-08 16:54                       ` Alexander Graf
2012-01-04  0:58 ` [PATCH 16/50] KVM: PPC: booke: Check for MSR[WE] in prepare_to_enter Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  0:58 ` [PATCH 15/50] KVM: PPC: Move prepare_to_enter call site into subarch code Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  0:59 ` [PATCH 10/50] PPC: Fix race in mtmsr paravirt implementation Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  0:59 ` [PATCH 39/50] KVM: PPC: Implement MMIO emulation support for Book3S HV guests Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  0:59 ` [PATCH 49/50] KVM: PPC: booke: Add booke206 TLB trace Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  0:59 ` [PATCH 50/50] KVM: PPC: Use the vcpu kmem_cache when allocating new VCPUs Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  0:59 ` [PATCH 47/50] KVM: PPC: Book3S HV: Use the hardware referenced bit for kvm_age_hva Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  0:59 ` [PATCH 46/50] KVM: PPC: Book3s HV: Maintain separate guest and host views of R and C bits Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  0:59 ` [PATCH 42/50] KVM: PPC: Allow for read-only pages backing a Book3S HV guest Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  0:59 ` [PATCH 45/50] KVM: PPC: Book3S HV: Keep HPTE locked when invalidating Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  0:59 ` [PATCH 40/50] KVM: PPC: Implement MMU notifiers for Book3S HV guests Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-08 13:29   ` [PATCH 40/50] KVM: PPC: Implement MMU notifiers for Book3S HV Avi Kivity
2012-01-08 13:29     ` [PATCH 40/50] KVM: PPC: Implement MMU notifiers for Book3S HV guests Avi Kivity
2012-01-08 15:15     ` Alexander Graf
2012-01-08 15:15       ` Alexander Graf
2012-01-08 15:24       ` [PATCH 40/50] KVM: PPC: Implement MMU notifiers for Book3S HV Avi Kivity
2012-01-08 15:24         ` [PATCH 40/50] KVM: PPC: Implement MMU notifiers for Book3S HV guests Avi Kivity
2012-01-08 15:41         ` Alexander Graf
2012-01-08 15:41           ` Alexander Graf
2012-01-04  0:59 ` [PATCH 44/50] KVM: PPC: Add KVM_CAP_NR_VCPUS and KVM_CAP_MAX_VCPUS Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  0:59 ` [PATCH 43/50] KVM: PPC: Fix vcpu_create dereference before validity check Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  0:59 ` [PATCH 48/50] KVM: PPC: Book3s HV: Implement get_dirty_log using hardware changed bit Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  0:59 ` [PATCH 38/50] KVM: PPC: Maintain a doubly-linked list of guest HPTEs for each gfn Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  0:59 ` [PATCH 36/50] KVM: PPC: Allow use of small pages to back Book3S HV guests Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  0:59 ` [PATCH 34/50] KVM: PPC: Make the H_ENTER hcall more reliable Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  0:59 ` [PATCH 31/50] KVM: PPC: Keep a record of HV guest view of hashed page table entries Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  0:59 ` [PATCH 32/50] KVM: PPC: Keep page physical addresses in per-slot arrays Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  0:59 ` [PATCH 33/50] KVM: PPC: Add an interface for pinning guest pages in Book3s HV guests Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  0:59 ` [PATCH 30/50] KVM: PPC: Move kvm_vcpu_ioctl_[gs]et_one_reg down to platform-specific code Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  1:09 ` [PATCH 01/50] KVM: PPC: e500: don't translate gfn to pfn with preemption disabled Alexander Graf
2012-01-04  1:09   ` Alexander Graf
2012-01-04  1:10 ` [PATCH 03/50] KVM: PPC: e500: clear up confusion between host and guest entries Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  1:10 ` [PATCH 04/50] KVM: PPC: e500: MMU API Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-08 13:13   ` Avi Kivity
2012-01-08 13:13     ` Avi Kivity
2012-01-08 14:52     ` Alexander Graf
2012-01-08 14:52       ` Alexander Graf
2012-01-08 14:55       ` Avi Kivity
2012-01-08 14:55         ` Avi Kivity
2012-01-08 15:16         ` Alexander Graf
2012-01-08 15:16           ` Alexander Graf
2012-01-08 15:27           ` Avi Kivity
2012-01-08 15:27             ` Avi Kivity
2012-01-04  1:10 ` [PATCH 05/50] KVM: PPC: e500: tlbsx: fix tlb0 esel Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  1:10 ` [PATCH 06/50] KVM: PPC: e500: Don't hardcode PIR=0 Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-08 13:14   ` Avi Kivity
2012-01-08 13:14     ` Avi Kivity
2012-01-08 14:53     ` Alexander Graf
2012-01-08 14:53       ` Alexander Graf
2012-01-08 14:56       ` Avi Kivity
2012-01-08 14:56         ` Avi Kivity
2012-01-04  1:10 ` [PATCH 07/50] KVM: PPC: Add generic single register ioctls Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04 20:08   ` Scott Wood
2012-01-04 20:08     ` Scott Wood
2012-01-05  2:32     ` Alexander Graf
2012-01-05  2:32       ` Alexander Graf
2012-01-05  4:07       ` Alexander Graf
2012-01-05  4:07         ` Alexander Graf
2012-01-05 20:53         ` Scott Wood
2012-01-05 20:53           ` Scott Wood
2012-01-08 12:38         ` Avi Kivity
2012-01-08 12:38           ` Avi Kivity
2012-01-04  1:10 ` [PATCH 08/50] KVM: PPC: Add support for explicit HIOR setting Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04 20:12   ` Scott Wood
2012-01-04 20:12     ` Scott Wood
2012-01-05  2:36     ` Alexander Graf
2012-01-05  2:36       ` Alexander Graf
2012-01-05 17:16       ` Scott Wood [this message]
2012-01-05 17:16         ` Scott Wood
2012-01-06  2:35         ` Alexander Graf
2012-01-06  2:35           ` Alexander Graf
2012-01-06 21:12           ` Scott Wood
2012-01-06 21:12             ` Scott Wood
2012-01-07  1:14             ` Alexander Graf
2012-01-07  1:14               ` Alexander Graf
2012-01-09 19:52               ` Scott Wood
2012-01-09 19:52                 ` Scott Wood
2012-01-04  1:10 ` [PATCH 09/50] KVM: PPC: E500: Support hugetlbfs Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-08 13:16   ` Avi Kivity
2012-01-08 13:16     ` Avi Kivity
2012-01-04  1:10 ` [PATCH 11/50] Fix DEC truncation for greater than 0xffff_ffff/1000 Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  1:10 ` [PATCH 12/50] KVM: booke: Do Not start decrementer when SPRN_DEC set 0 Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  1:10 ` [PATCH 14/50] KVM: PPC: Rename deliver_interrupts to prepare_to_enter Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  1:10 ` [PATCH 17/50] KVM: PPC: booke: Fix int_pending calculation for MSR[EE] paravirt Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  1:10 ` [PATCH 18/50] KVM: PPC: booke: Paravirtualize wrtee Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  1:10 ` [PATCH 19/50] KVM: PPC: Paravirtualize SPRG4-7, ESR, PIR, MASn Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-08 13:20   ` Avi Kivity
2012-01-08 13:20     ` Avi Kivity
2012-01-04  1:10 ` [PATCH 20/50] KVM: PPC: booke: Improve timer register emulation Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  1:10 ` [PATCH 21/50] KVM: PPC: Book3s: PR: Disable preemption in vcpu_run Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  1:10 ` [PATCH 22/50] KVM: PPC: Book3s: PR: No irq_disable " Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  1:10 ` [PATCH 23/50] KVM: PPC: Use get/set for to_svcpu to help preemption Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  1:10 ` [PATCH 24/50] KVM: PPC: align vcpu_kick with x86 Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-08 13:24   ` Avi Kivity
2012-01-08 13:24     ` Avi Kivity
2012-01-08 15:14     ` Alexander Graf
2012-01-08 15:14       ` Alexander Graf
2012-01-08 15:32       ` Christoffer Dall
2012-01-08 15:32         ` Christoffer Dall
2012-01-04  1:10 ` [PATCH 25/50] KVM: PPC: Book3S: PR: Fix signal check race Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  1:10 ` [PATCH 26/50] KVM: PPC: e500: Fix TLBnCFG in KVM_CONFIG_TLB Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  1:10 ` [PATCH 27/50] KVM: PPC: e500: use hardware hint when loading TLB0 entries Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  1:10 ` [PATCH 28/50] KVM: PPC: Avoid patching paravirt template code Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  1:10 ` [PATCH 29/50] KVM: PPC: Make wakeups work again for Book3S HV guests Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  1:10 ` [PATCH 35/50] KVM: PPC: Only get pages when actually needed, not in prepare_memory_region() Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  1:10 ` [PATCH 37/50] KVM: PPC: Allow I/O mappings in memory slots Alexander Graf
2012-01-04  1:10   ` Alexander Graf
2012-01-04  1:10 ` [PATCH 41/50] KVM: Add barriers to allow mmu_notifier_retry to be used locklessly Alexander Graf
2012-01-04  1:10   ` Alexander Graf

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=4F05DADF.4010403@freescale.com \
    --to=scottwood@freescale.com \
    --cc=agraf@suse.de \
    --cc=avi@redhat.com \
    --cc=kvm-ppc@vger.kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@redhat.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.