qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
To: Alexey Kardashevskiy <aik@ozlabs.ru>, qemu-devel@nongnu.org
Cc: qemu-ppc@nongnu.org, aik@au1.ibm.com
Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH 1/3] spapr: add uuid/host details to device tree
Date: Thu, 12 Jun 2014 13:30:15 +0530	[thread overview]
Message-ID: <87ppieftgw.fsf@abhimanyu.in.ibm.com> (raw)
In-Reply-To: <5398118E.2020206@ozlabs.ru>

Alexey Kardashevskiy <aik@ozlabs.ru> writes:

> On 06/10/2014 05:56 PM, Nikunj A Dadhania wrote:
>> Useful for identifying the guest/host uniquely within the
>> guest. Adding following properties to the guest root node.
>> 
>> vm,uuid - uuid of the guest
>> host-model - Host model number
>> host-serial - Host machine serial number
>> hypervisor type - Tells its "kvm"
>> 
>> Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
>> ---
>>  hw/ppc/spapr.c       | 19 +++++++++++++++++++
>>  target-ppc/kvm.c     | 42 ++++++++++++++++++++++++++++++++++++++++++
>>  target-ppc/kvm_ppc.h | 12 ++++++++++++
>>  3 files changed, 73 insertions(+)
>> 
>> diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
>> index 57e9578..ff37319 100644
>> --- a/hw/ppc/spapr.c
>> +++ b/hw/ppc/spapr.c
>> @@ -313,6 +313,7 @@ static void *spapr_create_fdt_skel(hwaddr initrd_base,
>>      uint32_t interrupt_server_ranges_prop[] = {0, cpu_to_be32(smp_cpus)};
>>      int i, smt = kvmppc_smt_threads();
>>      unsigned char vec5[] = {0x0, 0x0, 0x0, 0x0, 0x0, 0x80};
>> +    char char_buf[512];
>>  
>>      fdt = g_malloc0(FDT_MAX_SIZE);
>>      _FDT((fdt_create(fdt, FDT_MAX_SIZE)));
>> @@ -331,6 +332,24 @@ static void *spapr_create_fdt_skel(hwaddr initrd_base,
>>      _FDT((fdt_property_string(fdt, "model", "IBM pSeries (emulated by qemu)")));
>>      _FDT((fdt_property_string(fdt, "compatible", "qemu,pseries")));
>>  
>> +    if(kvm_enabled()) {
>
> s/if/if / here and after.
>
> You did not run checkpatch.pl, did you? :)

Nope, will fix it.

Nikunj

      reply	other threads:[~2014-06-12  8:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-10  7:56 [Qemu-devel] [PATCH 1/3] spapr: add uuid/host details to device tree Nikunj A Dadhania
2014-06-11  8:21 ` [Qemu-devel] [Qemu-ppc] " Alexey Kardashevskiy
2014-06-12  8:00   ` Nikunj A Dadhania [this message]

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=87ppieftgw.fsf@abhimanyu.in.ibm.com \
    --to=nikunj@linux.vnet.ibm.com \
    --cc=aik@au1.ibm.com \
    --cc=aik@ozlabs.ru \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).