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

Re: [Xen-devel] [PATCH v5 6/9] xen/x86: parse Dom0 kernel for PVHv2



>>> On 27.01.17 at 18:22, <roger.pau@xxxxxxxxxx> wrote:
> On Thu, Jan 26, 2017 at 06:37:00AM -0700, Jan Beulich wrote:
>> >>> On 19.01.17 at 18:29, <roger.pau@xxxxxxxxxx> wrote:
>> > +    if ( cmdline != NULL )
>> > +    {
>> > +        rc = hvm_copy_to_guest_phys_vcpu(last_addr, cmdline,
>> > +                                         strlen(cmdline) + 1, v);
>> > +        if ( rc )
>> > +        {
>> > +            printk("Unable to copy guest command line\n");
>> > +            return rc;
>> > +        }
>> > +        start_info.cmdline_paddr = last_addr;
>> > +        last_addr += ROUNDUP(strlen(cmdline) + 1, 8);
>> 
>> Where is this 8 coming from?
> 
> So that the next struct is aligned to the cache line size? It's also done in
> xc_dom_x86.c.

How does 8 match up with cache line size?

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.