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

Re: [XEN PATCH v2] xen/emul-i8254: remove forward declarations and re-order functions


  • To: Federico Serafini <federico.serafini@xxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 25 Sep 2023 08:38:48 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/gCYLQmKUgNKczwnqBftjw/LTOOrerQNjXSk63NlhmI=; b=l53qC9yxcOXrkcp+AtIOExRsF91IL/j/VfNoED7E+euypZ/EHJ9HgL9VcR6l6pY9dwmClUtyLzKqwaL2bMhMgn4Ra2xC1vDF37nn09C7sOJ1TDNEQiuslCMfUNCqltUn5sLEDOj9dZuLTGbcn16eSfvowKjNex3DGDPCnCtcq+mYe4ba5dfOYFQ6cMX4E5ORgNrPgppVWV6mX6IvUmAAKWzcufNOS+cfRrcwKBqwF7FQBXhKWmelixsYNPnbfDXq7XxkjFVlCZWlVWX0ZW/WA+YKvL4t4KxSdfNJrH5w/GcEFJXu/Cz4439NDI+WY8xsY8s1MBIkyRlI4tnqENAf5A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nn8lFl01mAc4AZWzeeHoggn/btoW4PRVZuGXXdJ8u3wYqvFak3P4Y9B6+0KwBTV7+pgsLgliRTGS5YC3TK/r+puHDJYnVl3wgaKlhZConZaoC8SYrBpV1bxoG87ZyXJdcUkjHtnsQfsVsIyJzMut6tBhgvSO/9AtlMUSEj5qKsNpi2MkOkWBzRO6ZN0oevWiHTvkxmY4OYf0DU8UdzXKXt1ZR19V6QRIjzg2xjFn/ygn7iwkYhAYc3wOv0Zv5TH07sPuCu9OJ/BEhD7z+9F01pAENaT+liroswLDBBG+QkOBBhX7XEJvCEs5oybPbeDJnyl3s4jZoadThXNNYzHgmQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: consulting@xxxxxxxxxxx, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Mon, 25 Sep 2023 06:38:57 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 22.09.2023 17:19, Federico Serafini wrote:
> @@ -466,68 +461,7 @@ static int cf_check pit_load(struct domain *d, 
> hvm_domain_context_t *h)
>  HVM_REGISTER_SAVE_RESTORE(PIT, pit_save, pit_load, 1, HVMSR_PER_DOM);
>  #endif
>  
> -void pit_reset(struct domain *d)
> -{
> -    PITState *pit = domain_vpit(d);
> -    struct hvm_hw_pit_channel *s;
> -    int i;
> -
> -    if ( !has_vpit(d) )
> -        return;
> -
> -    if ( is_hvm_domain(d) )
> -    {
> -        TRACE_0D(TRC_HVM_EMUL_PIT_STOP_TIMER);
> -        destroy_periodic_time(&pit->pt0);
> -        pit->pt0.source = PTSRC_isa;
> -    }
> -
> -    spin_lock(&pit->lock);
> -
> -    for ( i = 0; i < 3; i++ )
> -    {
> -        s = &pit->hw.channels[i];
> -        s->mode = 0xff; /* the init mode */
> -        s->gate = (i != 2);
> -        pit_load_count(pit, i, 0);
> -    }
> -
> -    spin_unlock(&pit->lock);
> -}
> -
> -void pit_init(struct domain *d)
> -{
> -    PITState *pit = domain_vpit(d);
> -
> -    if ( !has_vpit(d) )
> -        return;
> -
> -    spin_lock_init(&pit->lock);
> -
> -    if ( is_hvm_domain(d) )
> -    {
> -        register_portio_handler(d, PIT_BASE, 4, handle_pit_io);
> -        register_portio_handler(d, 0x61, 1, handle_speaker_io);
> -    }
> -
> -    pit_reset(d);
> -}
> -
> -void pit_deinit(struct domain *d)
> -{
> -    PITState *pit = domain_vpit(d);
> -
> -    if ( !has_vpit(d) )
> -        return;
> -
> -    if ( is_hvm_domain(d) )
> -    {
> -        TRACE_0D(TRC_HVM_EMUL_PIT_STOP_TIMER);
> -        destroy_periodic_time(&pit->pt0);
> -    }
> -}
> -
> -/* the intercept action for PIT DM retval:0--not handled; 1--handled */  
> +/* the intercept action for PIT DM retval:0--not handled; 1--handled */

If you already touch this comment to remove trailing whitespace, it also
wants its style corrected. Perhaps okay to do while committing, so then:
Acked-by: Jan Beulich <jbeulich@xxxxxxxx>

Jan



 


Rackspace

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