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

Re: [Minios-devel] [UNIKRAFT PATCH v3 3/4] plat/xen/common/hypervisor: Delete unused code and comments


  • To: radunicolau102@xxxxxxxxx, minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Mon, 3 Dec 2018 14:44:35 +0200
  • Delivery-date: Mon, 03 Dec 2018 12:44:52 +0000
  • Ironport-phdr: 9a23:5x43ZB/dzL9nv/9uRHKM819IXTAuvvDOBiVQ1KB31+ocTK2v8tzYMVDF4r011RmVBdWds6oMotGVmpioYXYH75eFvSJKW713fDhBt/8rmRc9CtWOE0zxIa2iRSU7GMNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1Ifn+FpLPg8it2O2+557ebx9UiDahfLh/MAi4oQLNu8cMnIBsMLwxyhzHontJf+RZ22ZlLk+Nkhj/+8m94odt/zxftPw9+cFAV776f7kjQrxDEDsmKWE169b1uhTFUACC+2ETUmQSkhpPHgjF8BT3VYr/vyfmquZw3jSRMMvrRr42RDui9b9mRgL2hicJNzA382/ZhcJ/g61ZvB2vqAdyw5LWbYyPKPZyYq3QcNEcSGFcXshRTStBAoakYoYRCOoBJvpYr4j7p1ATqxW+GBGsBP7ywTJPmnD22rY60/ggEQHAxgAgG88OsGzJrNjuKKgSSvq5zLHVzTrYdf9WwzD95ZHOfxs8ov+MRap9fdfexEUyDQ/IjVWdpZb7Mz+L1OkBqWaW4/J9We+glmIrsQJ8rzi1yssyhITEiJgZxk3L+Clnxos+OMe2R1RhYdG+FZtdrySaN4xrTcw8W2xooyM6yqEeuZ68YSgK1Iwrxx7BZPyDdIiF+gzjVOOLLjd5gHJpYq6whw2o/Ui41+3zTdO40ExNriZdk9nMsG4C1wDL58SaRfZx412t1DWP2gzJ9O1IP0I5mbDVJpI5x74/jJsTsUDNHi/sn0X2ibebeVkj+uiz9+TnY7PmqoWYN49pkgH+L78jldCkAegiKggOQnOU9f6m1L3k5UH5WqlFjuUqkqnFt5DXPd4bqbSkDA9I1IYj6gqwDzCi0NsCgHkLMU5JdAycgojmPlHBOvH4DfOlj1uwlzdrwujMPqf9DZXVMnjDjLDhcK54605dzgozzNdf54lNBr4cPv3zRFH+tNjDAx89Mgy02PrnCM5n2oIRR22PBLWVMKTIsV+HtaoTJLyWbYMIvjf2LPws+qe211c2nFYcee+i2p5TIHW5GPVhOACVbGThhv8FEHwWpUwuQeqsj0eNAhBJYHPndKUn+jA9QKa7FZqLEouqm6CA2mG/A4VLTmtdTEiRGzHycNPXCL83dCuOL5o5wXQ/Xr+7Rtp52A==
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

Reviewed-by: Costin Lupu <costin.lupu@xxxxxxxxx>

On 11/24/18 1:23 PM, radunicolau102@xxxxxxxxx wrote:
> From: Radu Nicolau <radunicolau102@xxxxxxxxx>
> 
> Delete unused code and deprecated comments
> 
> Signed-off-by: Radu Nicolau <radunicolau102@xxxxxxxxx>
> ---
>  plat/xen/hypervisor.c                |  4 ----
>  plat/xen/include/common/hypervisor.h | 20 --------------------
>  2 files changed, 24 deletions(-)
> 
> diff --git a/plat/xen/hypervisor.c b/plat/xen/hypervisor.c
> index ca16ed6..8f8048a 100644
> --- a/plat/xen/hypervisor.c
> +++ b/plat/xen/hypervisor.c
> @@ -48,10 +48,6 @@
>  
>  int in_callback;
>  
> -#ifndef CONFIG_PARAVIRT
> -extern shared_info_t shared_info;
> -#endif /* !CONFIG_PARAVIRT */
> -
>  void do_hypervisor_callback(struct __regs *regs)
>  {
>       unsigned long l1, l2, l1i, l2i;
> diff --git a/plat/xen/include/common/hypervisor.h 
> b/plat/xen/include/common/hypervisor.h
> index 417498e..d131d6f 100644
> --- a/plat/xen/include/common/hypervisor.h
> +++ b/plat/xen/include/common/hypervisor.h
> @@ -48,30 +48,10 @@
>  #else
>  #error "Unsupported architecture"
>  #endif
> -#include <xen/hvm/hvm_op.h>
>  #include <uk/arch/lcpu.h>
>  #include <uk/plat/lcpu.h>
>  
> -#if 0 //TODO: cleanup
> -/*
> - * a placeholder for the start of day information passed up from the 
> hypervisor
> - */
> -union start_info_union {
> -     start_info_t start_info;
> -     char padding[512];
> -};
> -extern union start_info_union start_info_union;
> -#define start_info (start_info_union.start_info)
> -#else
> -int hvm_get_parameter(int idx, uint64_t *value);
> -int hvm_set_parameter(int idx, uint64_t value);
> -#endif
> -shared_info_t *map_shared_info(void *p);
> -
> -//TODO START from here on we have to cleanup/refactor/move stuff
> -/* hypervisor.c */
>  void do_hypervisor_callback(struct __regs *regs);
> -//TODO END
>  
>  extern int in_callback;
>  
> 

_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

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